{"id":196415,"date":"2020-07-23T09:10:35","date_gmt":"2020-07-23T01:10:35","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=196415"},"modified":"2020-07-20T09:11:22","modified_gmt":"2020-07-20T01:11:22","slug":"php-docker-install","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/php-docker-install.html","title":{"rendered":"\u4f7f\u7528 Docker \u5f00\u53d1 PHP \u9879\u76ee(\u4e00)\uff1a\u5b89\u88c5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nPHP\u5373\u201c\u8d85\u6587\u672c\u9884\u5904\u7406\u5668\u201d\uff0c\u662f\u4e00\u79cd\u901a\u7528\u5f00\u6e90\u811a\u672c\u8bed\u8a00\u3002PHP\u662f\u5728\u670d\u52a1\u5668\u7aef\u6267\u884c\u7684\u811a\u672c\u8bed\u8a00\uff0c\u4e0eC\u8bed\u8a00\u7c7b\u4f3c\uff0c\u662f\u5e38\u7528\u7684\u7f51\u7ad9\u7f16\u7a0b\u8bed\u8a00\u3002PHP\u72ec\u7279\u7684\u8bed\u6cd5\u6df7\u5408\u4e86C\u3001Java\u3001Perl\u4ee5\u53ca PHP \u81ea\u521b\u7684\u8bed\u6cd5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u5b89\u88c5Docker<\/strong><\/span><\/div>\n

\u300aUbuntu\u5b89\u88c5\u548c\u914d\u7f6eDocker-CE\u955c\u50cf\u52a0\u901f\u300b<\/a><\/p>\n

\u51c6\u5907\u9879\u76ee<\/strong><\/span><\/div>\n

\u4f7f\u7528\u672c\u4eba\u7684\u9879\u76ee khs1994-docker\/lnmp \u6765\u4f5c\u4e3a LNMP \u73af\u5883\u3002<\/p>\n

\u5b89\u88c5<\/strong><\/span><\/div>\n
\r\n$ git clone --recursive https:\/\/github.com\/khs1994-docker\/lnmp.git\r\n\r\n# $ git clone --recursive git@github.com:khs1994-docker\/lnmp.git\r\n\r\n<\/pre>\n
\u4e2d\u56fd\u955c\u50cf<\/strong><\/span><\/div>\n
\r\n$ git clone --recursive https:\/\/code.aliyun.com\/khs1994-docker\/lnmp.git\r\n\r\n# $ git clone --recursive git@code.aliyun.com:khs1994-docker\/lnmp.git\r\n\r\n<\/pre>\n
\u542f\u52a8 Demo<\/strong><\/span><\/div>\n
\r\n$ cd lnmp\r\n\r\n$ .\/lnmp-docker up\r\n<\/pre>\n
Windows 10 \u6253\u5f00 PowerShell \u6267\u884c<\/strong><\/span><\/div>\n

Windows 10 PowerShell \u9ed8\u8ba4\u7981\u6b62\u6267\u884c\u811a\u672c\uff0c\u8bf7\u4ee5\u7ba1\u7406\u5458\u6253\u5f00 PowerShell \u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u89e3\u9664\u9650\u5236<\/p>\n

\r\n$ set-ExecutionPolicy RemoteSigned\r\n<\/pre>\n

\u8f93\u5165 `Y` \u786e\u8ba4<\/p>\n

\u9a8c\u8bc1\u73af\u5883<\/strong><\/span><\/div>\n
\r\n$ curl 127.0.0.1\r\n\r\nWelcome use khs1994-docker\/lnmp v18.09 x86_64 With Pull Docker Image\r\n\r\ndevelopment\r\n<\/pre>\n
Windows<\/strong><\/span><\/div>\n
\r\n$ wsl curl 127.0.0.1\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u300aUbuntu\u5b89\u88c5\u548c\u914d\u7f6eDocker-CE\u955c\u50cf\u52a0\u901f\u300b \u4f7f\u7528\u672c\u4eba\u7684\u9879\u76ee khs1994-docker\/lnmp […]<\/p>\n","protected":false},"author":1479,"featured_media":196419,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-196415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/196415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1479"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=196415"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/196415\/revisions"}],"predecessor-version":[{"id":196420,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/196415\/revisions\/196420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/196419"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=196415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=196415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=196415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}