{"id":834,"date":"2021-12-22T02:45:00","date_gmt":"2021-12-22T02:45:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=834"},"modified":"2021-12-22T02:45:00","modified_gmt":"2021-12-22T02:45:00","slug":"834","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/12\/22\/834\/","title":{"rendered":"\u7532\u9aa8\u6587 ARM \u670d\u52a1\u5668\u65b0\u5efa\u666e\u901a\u7528\u6237\u8fd0\u884c Docker\u5bb9\u5668"},"content":{"rendered":"<h2>\u7532\u9aa8\u6587 ARM \u670d\u52a1\u5668\u4f7f\u7528\u666e\u901a\u7528\u6237\u8fd0\u884c Docker\u5bb9\u5668<\/h2>\n<h3>\u6dfb\u52a0\u666e\u901a\u7528\u6237 nginx-php \u8fd0\u884cdocker\u5bb9\u5668<\/h3>\n<pre><code>useradd nginx-php\npasswd  nginx-php\n\nusermod -a -G docker nginx-php\nlogin nginx-php<\/code><\/pre>\n<h3>Docker\u5bb9\u5668\u50bb\u74dc\u90e8\u7f72\uff0c<code>ip<\/code> \u5bb9\u5668\u7528\u6765\u6279\u91cf\u68c0\u6d4bip<\/h3>\n<pre><code>docker run -d -p 5000:5000 --restart=always --name ip hongwenjun\/ip\n<\/code><\/pre>\n<h3>\u542f\u52a8 nginx-php-fpm7.4 \u5bb9\u5668<\/h3>\n<pre><code>docker run -d -p 80:80 -p 443:443  \\r\n    --cpus 0.8   --restart=always   \\r\n    -v \/var\/www\/html:\/var\/www\/html   \\r\n    --name  nginx-php      \\r\n    hongwenjun\/nginx-php\n<\/code><\/pre>\n<h3>\u9ed8\u8ba4\u6ca1\u6709\u5efa\u7acb\u7528\u6237home\u76ee\u5f55\uff0c\u4f7f\u7528\u547d\u4ee4\u5efa\u7acb\u548c\u6dfb\u52a0\u76ee\u5f55\u6743\u9650<\/h3>\n<pre><code>mkdir -p \/home\/nginx-php\nchown -R nginx-php  \/home\/nginx-php\n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7532\u9aa8\u6587 ARM \u670d\u52a1\u5668\u4f7f\u7528\u666e\u901a\u7528\u6237\u8fd0\u884c Docker\u5bb9\u5668 \u6dfb\u52a0\u666e\u901a\u7528\u6237 nginx-php \u8fd0\u884cdo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15],"class_list":["post-834","post","type-post","status-publish","format-standard","hentry","category-docker","tag-docker"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=834"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/834\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}