{"id":11530,"date":"2024-09-20T16:44:11","date_gmt":"2024-09-20T08:44:11","guid":{"rendered":"http:\/\/999.zuizhuai.cn\/?p=11530"},"modified":"2024-09-20T16:44:11","modified_gmt":"2024-09-20T08:44:11","slug":"%e5%88%a9%e7%94%a8%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bfdocker%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85halo%e8%bd%bb%e9%87%8f%e5%8d%9a%e5%ae%a2%e7%a8%8b%e5%ba%8f%ef%bc%88%e5%bc%80%e6%ba%90java%e5%8d%9a","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=11530","title":{"rendered":"\u5229\u7528\u5b9d\u5854\u9762\u677fDocker\u5feb\u901f\u5b89\u88c5Halo\u8f7b\u91cf\u535a\u5ba2\u7a0b\u5e8f\uff08\u5f00\u6e90Java\u535a\u5ba2\u7cfb\u7edf\uff09"},"content":{"rendered":"<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u524d\u51e0\u5929\u8001\u848b\u6709\u770b\u5230\u7f51\u53cb\u4eec\u5728\u8ba8\u8bba\u642d\u5efa\u8f7b\u91cf\u535a\u5ba2\u7a0b\u5e8fHalo\u3002Halo\u8fd9\u6b3e\u535a\u5ba2\u7cfb\u7edf\u91c7\u7528\u7684Java\u5f00\u53d1\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u8fd9\u4e9b\u8f7b\u91cf\u535a\u5ba2\u7a0b\u5e8f\u548c\u6211\u4eec\u5e38\u7528\u7684PHP+MYSQL\u7a0b\u5e8f\u4e0d\u540c\u5728\u4e8e\u975e\u5e38\u8f7b\u91cf\uff0c\u54cd\u5e94\u901f\u5ea6\u5feb\uff0c\u4f46\u662f\u642d\u5efa\u8d77\u6765\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u8001\u848b\u51c6\u5907\u501f\u52a9\u5b9d\u5854\u9762\u677f\u4e0a\u7684Docker\u8fdb\u884c\u5feb\u901f\u7684\u90e8\u7f72\u5b89\u88c5\u3002<\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><strong style=\"font-weight: bold\">\u7b2c\u4e00\u3001Docker \u90e8\u7f72Halo<\/strong><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u6211\u4eec\u524d\u9762\u8fd8\u662f\u9700\u8981\u5148\u5728\u5b9d\u5854\u9762\u677f\u73af\u5883\u4e2d\u5b89\u88c5Docker\uff0c\u4e00\u822c\u9ed8\u8ba4\u65f6\u5019\u662f\u6ca1\u6709\u5b89\u88c5\u7684\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11737\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023616965.jpeg\" width=\"733\" height=\"230\" alt=\"20240921023616965\" title=\"20240921023616965\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u8fd9\u91cc\u6211\u4eec\u5728\u5b9d\u5854\u9762\u677f\u4e2d\u7684Docker\u7ba1\u7406\u5668\u5e94\u7528\u5546\u5e97\u4e2d\u5b89\u88c5\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11738\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023616578.jpeg\" width=\"709\" height=\"489\" alt=\"20240921023616578\" title=\"20240921023616578\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u76f4\u63a5\u7b49\u5f85\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11739\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023617829.jpeg\" width=\"722\" height=\"425\" alt=\"20240921023617829\" title=\"20240921023617829\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u540e\u9762\u5728\u90e8\u7f72\u7a0b\u5e8f\u7684\u65f6\u5019\u6709\u9700\u8981\u7528\u5230\u8fd9\u91cc\u754c\u9762\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11740\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023618929.png\" width=\"722\" height=\"510\" alt=\"20240921023618929\" title=\"20240921023618929\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u8fd9\u91cc\u6211\u4eec\u5728\u3010\u955c\u50cf\u7ba1\u7406\u3011\u4e2d\uff0c\u9700\u8981\u628aHalo\u955c\u50cf\u62c9\u8fc7\u6765\u3002<\/p>\n<pre style=\"overflow: auto;padding: 10px 20px 10px 3.8em;margin: 20px 0px;border-radius: 0.3em;text-align: left;border: initial none initial\"><code style=\", monospace;font-size: inherit;padding: 0px;background: none;border-radius: 0px;text-align: left;line-height: 1.5\">ruibaby\/halo<\/code><\/pre>\n<p>Select Code<\/p>\n<p>Copy<\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u770b\u5230\u4e0a\u56fe\uff0c\u5728\u955c\u50cf\u540d\u79f0\u4e2d\u8f93\u5165\u540e\u83b7\u53d6\u955c\u50cf\u3002<\/p>\n<pre style=\"overflow: auto;padding: 10px 20px 10px 3.8em;margin: 20px 0px;border-radius: 0.3em;text-align: left;border: initial none initial\"><code style=\", monospace;font-size: inherit;padding: 0px;background: none;border-radius: 0px;text-align: left;line-height: 1.5\">docker run -it -d --name halo -p 8090:8090 -v ~\/.halo:\/root\/.halo halohub\/halo:latest<\/code><\/pre>\n<p>Select Code<\/p>\n<p>Copy<\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u7136\u540e\u6211\u4eec\u5728SSH\u8fdc\u7a0b\u8f93\u5165\u547d\u4ee4\u3002\u6216\u8005\uff1a<\/p>\n<pre style=\"overflow: auto;padding: 10px 20px 10px 3.8em;margin: 20px 0px;border-radius: 0.3em;text-align: left;border: initial none initial\"><code style=\", monospace;font-size: inherit;padding: 0px;background: none;border-radius: 0px;text-align: left;line-height: 1.5\">docker run -d --name halo -p 8090:8090 -v ~\/halo:\/root\/halo ruibaby\/halo<\/code><\/pre>\n<p>Select Code<\/p>\n<p>Copy<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11741\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023620367.png\" width=\"720\" height=\"514\" alt=\"20240921023620367\" title=\"20240921023620367\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u90e8\u7f72\u597d\u7684\u5bb9\u5668\u3002\u5982\u679c\u6211\u4eec\u6709\u670d\u52a1\u5668\u662f\u6709\u5b89\u5168\u7ec4\u7684\uff0c\u9700\u8981\u8bbe\u7f6e8090\u7aef\u53e3\u653e\u884c\u3002\u5305\u62ec\u5b9d\u5854\u9762\u677f\u7684\u5b89\u5168\u7ec4\u7aef\u53e38090\u7aef\u53e3\u4e5f\u8981\u653e\u884c\u7684\u3002<\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><strong style=\"font-weight: bold\">\u7b2c\u4e8c\u3001Halo\u535a\u5ba2\u914d\u7f6e<\/strong><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u8fd9\u91cc\uff0c\u6211\u4eec\u5148\u6253\u5f00 &#8220;ip\u5730\u5740:8090&#8243;\uff0c\u7136\u540e\u6253\u5f00\u5b89\u88c5\u5411\u5bfc\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11742\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023621448.png\" width=\"704\" height=\"828\" alt=\"20240921023621448\" title=\"20240921023621448\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u6211\u4eec\u8f93\u5165Halo\u535a\u5ba2\u4fe1\u606f\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11743\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023622582.png\" width=\"712\" height=\"376\" alt=\"20240921023622582\" title=\"20240921023622582\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u767b\u5f55\u540e\u6211\u4eec\u53ef\u4ee5\u770b\u5230Halo\u535a\u5ba2\u7684\u540e\u53f0\u754c\u9762\uff0c\u8fd9\u4e2a\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u8981\u518d\u5fae\u8c03\u3002\u8fd9\u91cc\u8001\u848b\u5c31\u4e0d\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e2a\u535a\u5ba2\u7a0b\u5e8f\uff0c\u4ee5\u540e\u6709\u673a\u4f1a\u5728\u4ecb\u7ecd\u3002\u5305\u62ec\u6211\u4eec\u4e5f\u53ef\u4ee5\u66f4\u6362\u4e3b\u9898\u3002<\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><strong style=\"font-weight: bold\">\u7b2c\u4e09\u3001\u7ed1\u5b9a\u57df\u540d<\/strong><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u5728\u4e0a\u9762\uff0c\u6211\u4eec\u662f\u4e0d\u662f\u770b\u5230\u8fd9\u4e2aHalo\u535a\u5ba2\u7a0b\u5e8f\u6ca1\u6709\u7ed1\u5b9a\u57df\u540d\u3002\u800c\u662f\u91c7\u7528\u7684IP+\u7aef\u53e3\u6a21\u5f0f\uff0c\u90a3\u80af\u5b9a\u4e0d\u884c\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11744\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023623567.png\" width=\"720\" height=\"675\" alt=\"20240921023623567\" title=\"20240921023623567\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u8fd9\u91cc\u6211\u4eec\u7ed1\u5b9a\u57df\u540d\u7a0d\u5fae\u548c\u4ee5\u524d\u5efa\u7ad9\u4e0d\u540c\uff0c\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u7ad9\u70b9\u3002\u7136\u540e\u9700\u8981\u901a\u8fc7\u53cd\u5411\u7ed1\u5b9a\u6620\u5c04\u7684\u65b9\u5f0f\u7ed1\u5b9a\u57df\u540d\u3002<\/p>\n<p style=\"margin: 0px 0px 0em;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11745\" src=\"http:\/\/loc-wp-cdnimg.jiyun.net\/blogtest\/2024\/09\/20240921023624399.png\" width=\"728\" height=\"332\" alt=\"20240921023624399\" title=\"20240921023624399\" \/><\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u8fd9\u6837\u7ed1\u5b9a\u540e\uff0c\u6211\u4eec\u662f\u4e0d\u662f\u76f4\u63a5\u6253\u5f00\u57df\u540d\u5c31\u53ef\u4ee5\u5b9e\u73b0\u8bbf\u95eeHALO\u535a\u5ba2\u7a0b\u5e8f\u3002\u5982\u679c\u6211\u4eec\u4e0d\u662f\u7528\u7684\u754c\u9762\u64cd\u4f5c\u6620\u50cf\u65b9\u5f0f\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7684\u5f53\u524d\u7ad9\u70b9conf\u6587\u4ef6\u914d\u7f6e\u3002<\/p>\n<pre style=\"overflow: auto;padding: 10px 20px 10px 3.8em;margin: 20px 0px;border-radius: 0.3em;text-align: left;border: initial none initial\"><code style=\", monospace;font-size: inherit;padding: 0px;background: none;border-radius: 0px;text-align: left;line-height: 1.5\">    server {\n            listen 80;\n            server_name bt.laobuluo.com; #\u6362\u6210\u81ea\u5df1\u7684\u57df\u540d\n    \tlocation \/ {\n    \t\trewrite ^\/(.*)$ \/$1 break;\n    \t\tproxy_redirect off;\n    \t\tproxy_set_header Host $host;\n    \t\tproxy_set_header X-Real-IP $remote_addr;\n    \t\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n    \t\tproxy_pass http:\/\/127.0.0.1:8090;\n    \t}\n    }<\/code><\/pre>\n<p>Select Code<\/p>\n<p>Copy<\/p>\n<p style=\"margin: 0px 0px 25px;, helvetica, arial, sans-serif;font-size: 16px;font-style: normal;font-weight: 400;letter-spacing: normal;text-align: left;text-indent: 0px;text-transform: none\">\u603b\u7ed3\uff0c\u8fd9\u6837\u6211\u4eec\u662f\u4e0d\u662f\u5f88\u5feb\u901f\u7684\u5728\u5b9d\u5854\u9762\u677f\u5229\u7528Docker\u914d\u7f6e\u5b89\u88c5Halo\u8f7b\u91cf\u535a\u5ba2\u7cfb\u7edf\uff0c\u5982\u679c\u6211\u4eec\u6709\u9700\u8981\u914d\u7f6e\u7684\u8bdd\u4e5f\u53ef\u4ee5\u53c2\u8003\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u51e0\u5929\u8001\u848b\u6709\u770b\u5230\u7f51\u53cb\u4eec\u5728\u8ba8\u8bba\u642d\u5efa\u8f7b\u91cf\u535a\u5ba2\u7a0b\u5e8fHalo\u3002Halo\u8fd9\u6b3e\u535a\u5ba2\u7cfb\u7edf\u91c7\u7528\u7684Java\u5f00\u53d1\u7684\u5f00\u6e90\u535a\u5ba2\u7cfb\u7edf\uff0c\u8fd9\u4e9b\u8f7b\u91cf\u535a\u5ba2\u7a0b\u5e8f\u548c\u6211\u4eec\u5e38\u7528\u7684PHP+MYSQL\u7a0b\u5e8f\u4e0d\u540c\u5728\u4e8e\u975e\u5e38\u8f7b\u91cf\uff0c\u54cd\u5e94\u901f\u5ea6\u5feb\uff0c\u4f46\u662f\u642d\u5efa\u8d77\u6765\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u8001\u848b\u51c6\u5907\u501f\u52a9&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[159,220,252],"topic":[],"class_list":["post-11530","post","type-post","status-publish","format-standard","hentry","category-domain-website","tag-docker","tag-220","tag-252"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/11530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11530"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/11530\/revisions"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11530"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11530"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=11530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}