{"id":165,"date":"2021-03-19T09:55:00","date_gmt":"2021-03-19T09:55:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=3"},"modified":"2021-03-19T09:55:00","modified_gmt":"2021-03-19T09:55:00","slug":"3","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/03\/19\/3\/","title":{"rendered":"# Typecho \u7b80\u5355\u535a\u5ba2\u6846\u67b6 Docker \u5b89\u88c5\u7b14\u8bb0"},"content":{"rendered":"<h3>Typecho \u7b80\u5355\u535a\u5ba2 \u7a0b\u5e8f\u4e0b\u8f7d\u548c\u76ee\u5f55\u653e\u7f6e<\/h3>\n<pre><code>mkdir \/mnt\/typecho -p\ncd    \/mnt\/typecho\n\nwget https:\/\/typecho.org\/downloads\/1.1-17.10.30-release.tar.gz\ntar xf 1.1-17.10.30-release.tar.gz\nmv  build www\n<\/code><\/pre>\n<h3>\u5bb9\u5668 linuxserver\/nginx \u5b89\u88c5\uff0c\u5df2\u7ecf\u5305\u542bphp7.x\u652f\u6301<\/h3>\n<pre><code>docker run -d \\r\n  --name=nginx \\r\n  -e PUID=1000 \\r\n  -e PGID=1000 \\r\n  -e TZ=Europe\/London \\r\n  -p 80:80 \\r\n  -p 443:443 \\r\n  -v \/mnt\/typecho:\/config \\r\n  --restart unless-stopped \\r\n  linuxserver\/nginx\n\n\n<\/code><\/pre>\n<hr \/>\n<h3>\u5b89\u88c5\u6309\u63d0\u793a\uff0c\u6570\u636e\u5e93 \u5148 Sqlite 3.0<\/h3>\n<pre><code>Nginx\u670d\u52a1\u5668\u65e0\u6cd5\u767b\u5f55\u540e\u53f0\uff0c\u70b9\u51fb\u524d\u53f0\u94fe\u63a5\u6216\u8005\u540e\u53f0\u767b\u5f55\u65f6\u51fa\u73b0\"404, not found\"\n=============================================================\n\nhttp:\/\/docs.typecho.org\/faq\n\n\u4e00\u822c\u7684\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u65f6,nginx.conf\u91cc\u7684\u7684location\u8bbe\u7f6e\u90fd\u662f\u7c7b\u4f3c\u8fd9\u6837\n\nlocation ~ .*.php$\n\n\u8981\u652f\u6301pathinfo\uff0c\u8981\u6539\u6210\n\nlocation ~ .*.php(\/.*)*$\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Typecho \u7b80\u5355\u535a\u5ba2 \u7a0b\u5e8f\u4e0b\u8f7d\u548c\u76ee\u5f55\u653e\u7f6e mkdir \/mnt\/typecho -p cd \/m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3],"tags":[37,15],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-linux","category-default","tag-blog","tag-docker"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/165","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=165"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}