{"id":1013,"date":"2019-08-17T16:22:08","date_gmt":"2019-08-17T08:22:08","guid":{"rendered":"https:\/\/zhoushiqi.com\/?p=1013"},"modified":"2019-10-11T19:02:59","modified_gmt":"2019-10-11T11:02:59","slug":"lnmpwordpress-%e5%bb%ba%e7%ab%99%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/zhoushiqi.com\/?p=1013","title":{"rendered":"Lnmp+WordPress \u5efa\u7ad9\u6d41\u7a0b"},"content":{"rendered":"\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u6700\u8fd1\u5bf9\u6574\u4e2a\u5efa\u7ad9\u7684\u6d41\u7a0b\u53c8\u719f\u6089\u4e86\u5f88\u591a\uff0c\u8d81\u8fd8\u8bb0\u5f97\u3002\u8bb0\u5f55\u4e0b\u6765\u4e00\u4e2a\u6210\u529f\u7684\u8fc7\u7a0b\uff0c\u5982\u4e0b<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; highlight: [60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179]; title: \u70b9\u51fb\u67e5\u770b\u4ee3\u7801; notranslate\" title=\"\u70b9\u51fb\u67e5\u770b\u4ee3\u7801\">\n\\\n\\\n\\\n\\\n1\u3001\u8d2d\u4e70\u670d\u52a1\u5668\u3001\u57df\u540d\u3001\u89e3\u6790\u57df\u540d https:\/\/www.vultr.com\/?ref=8171101-4F  www.namesilo.com\n2\u3001\u542f\u52a8\u670d\u52a1\u5668\n3\u3001ssh root@yourIP\n\n4\u3001\u5b89\u88c5LNMP\u5e73\u53f0 linux  nginx  mysql  php\n  wget http:\/\/soft.vpser.net\/lnmp\/lnmp1.6.tar.gz -cO lnmp1.6.tar.gz &amp;&amp; tar zxf lnmp1.6.tar.gz &amp;&amp; cd lnmp1.6 &amp;&amp; .\/install.sh lnmp\n\n5\u3001\u5b89\u88c5\n    01 \u9009\u62e9\u6570\u636e\u5e93\u7c7b\u578b\u548c\u7248\u672c\n    02 \u8bbe\u7f6e\u6570\u636e\u5e93root\u5bc6\u7801\uff08\u5f88\u91cd\u8981\u9700\u8981\u8bb0\u4f4f\uff09\n    03 \u662f\u5426\u9700\u8981\u542f\u7528MySQL InnoDB\n    04 \u9009\u62e9php\u7248\u672c\n    05 \u9009\u62e9\u662f\u5426\u5b89\u88c5\u5185\u5b58\u4f18\u5316\n    06 \u63d0\u793a&quot;Press any key to install...or Press Ctrl+c to cancel&quot;\u540e\uff0c\u6309\u56de\u8f66\u952e\u786e\u8ba4\u5f00\u59cb\u5b89\u88c5\u3002\n       LNMP \u811a\u672c\u5c31\u4f1a\u81ea\u52a8\u5b89\u88c5\u7f16\u8bd1Nginx\u3001MySQL\u3001PHP\u3001phpMyAdmin\u7b49\u8f6f\u4ef6\u53ca\u76f8\u5173\u7684\u7ec4\u4ef6\u3002\n       \u5b89\u88c5\u65f6\u95f4\u53ef\u80fd\u4f1a\u51e0\u5341\u5206\u949f\u5230\u51e0\u4e2a\u5c0f\u65f6\u4e0d\u7b49\uff0c\u4e3b\u8981\u662f\u673a\u5668\u7684\u914d\u7f6e\u7f51\u901f\u7b49\u539f\u56e0\u4f1a\u9020\u6210\u5f71\u54cd\u3002\n    07 \u5b89\u88c5\u5b8c\u6210\u4f1a\u663e\u793a Nginx: OK\uff0cMySQL: OK\uff0cPHP: OK  Install lnmp V1.6 completed! enjoy it.\n\n6\u3001\u6dfb\u52a0\u7f51\u7ad9\uff08\u865a\u62df\u4e3b\u673a\uff09\n    01 lnmp vhost add\n       \u8f93\u5165\u8981\u6dfb\u52a0\u7684\u7f51\u7ad9\u57df\u540d \u6bd4\u5982  zhoushiqi.com\n       \u662f\u5426\u6dfb\u52a0\u66f4\u591a\u57df\u540d       zhoushiqi.com  \u53ef\u56de\u8f66\u8df3\u8fc7\n       (\u6ce8\uff1a\u5e26www\u548c\u4e0d\u5e26www\u7684\u662f\u4e0d\u540c\u7684\u57df\u540d\uff0c\u5982\u9700\u5e26www\u548c\u4e0d\u5e26\u7684www\u7684\u57df\u540d\u90fd\u8bbf\u95ee\u540c\u4e00\u4e2a\u7f51\u7ad9\u9700\u8981\u540c\u65f6\u90fd\u7ed1\u5b9a)\n       \u8bbe\u7f6e\u7f51\u7ad9\u76ee\u5f55  \u9ed8\u8ba4 \/home\/wwwroot\/zhoushiqi.com  \u53ef\u4ee5\u81ea\u5df1\u66f4\u6539 \u4e0d\u6539\u7684\u8bdd \u56de\u8f66\n       \u5176\u4f59\u7684 \u9664\u4e86ssl\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a \u90fd\u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7\n     02 \u5b89\u88c5 WordPress\n        cd \/home\/wwwroot\/zhoushiqi.com\n        wget https:\/\/cn.wordpress.org\/latest-zh_CN.zip\n        unzip latest-zh_CN.zip\n        mv wordpress\/* .\n        rm -rf wordpress latest-zh_CN.zip\n        chown -R www:www \/home\/wwwroot\/zhoushiqi.com\n        sed -i 's\/,scandir\/\/g' \/usr\/local\/php\/etc\/php.ini\n        lnmp restart\n\n7\u3001\u6dfb\u52a0\u6570\u636e\u5e93\n     lnmp database add\n     +-------------------------------------------+\n     |    Manager for LNMP, Written by Licess    |\n     +-------------------------------------------+\n     |              https:\/\/lnmp.org             |\n     +-------------------------------------------+\n     Enter current root password of Database (Password will not shown):   \uff08\u8f93\u5165\u7684\u65f6\u5019\u4e0d\u4f1a\u663e\u793a\uff0c\u8fd9\u4e2a\u5bc6\u7801\u5c31\u662f5.02\u91cc\u9762\u6570\u636e\u5e93root\u5bc6\u7801\uff09\n     OK, MySQL root password correct.\n     Enter database name: TEST \uff08\u7ed9\u7f51\u7ad9\u7528\u7684\u6570\u636e\u5e93\uff0c\u540d\u5b57\u968f\u610f\u3002\u4f46\u662f\u8981\u8bb0\u4e0b\u6765\uff09\n     Your will create a database and MySQL user with same name: TEST\n     Please enter password for mysql user TEST: 123456  \uff08\u8bbe\u7f6e\u8fd9\u4e2a\u6570\u636e\u5e93\u7684\u5bc6\u7801\uff0c\u4e5f\u91cd\u8981\uff0c\u8bb0\u4e0b\u6765\uff09\n     Your password: 123456\n     Add database Sucessfully.\n\n8\u3001\u914d\u7f6e WordPress\n     \u6253\u5f00\u6d4f\u89c8\u5668\u8f93\u5165\u57df\u540d zhoushiqi.com \u8bbf\u95ee\u7f51\u7ad9 (\u5982\u679c\u5728\u7b2c\u4e00\u6b65\u89e3\u6790\u4e86\u57df\u540d\u7684\u8bdd\uff0c\u5e94\u8be5\u53ef\u4ee5\u8bbf\u95ee\u4e86\uff0c\u5982\u679c\u4e0d\u80fd\u5219\u4f7f\u7528 IP \u8bbf\u95ee)\n     \u586b\u5199\u6570\u636e\u5e93\u540d\u3001\u7528\u6237\u540d\u3001\u5bc6\u7801  \u5bf9\u5e94\u4e0a\u4e00\u6b65\u7684 TEST TEST 123456  \u5176\u5b83\u9ed8\u8ba4 \u786e\u8ba4 \u4e0b\u4e00\u6b65\n     \u8bbe\u7f6e WordPress \u7ad9\u70b9\u6807\u9898\u3001\u7528\u6237\u540d\u3001\u5bc6\u7801 \u586b\u4e2a\u90ae\u7bb1 \u5b89\u88c5 WordPress \u5b8c\u7f8e\u3002\n\n9\u3001\u5e38\u7528\u547d\u4ee4\u548c\u8def\u5f84\u7b49\n\n     LNMP\u76f8\u5173\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55\n     Nginx \u76ee\u5f55: \/usr\/local\/nginx\/\n     MySQL \u76ee\u5f55 : \/usr\/local\/mysql\/\n     MySQL\u6570\u636e\u5e93\u6240\u5728\u76ee\u5f55\uff1a\/usr\/local\/mysql\/var\/\n     MariaDB \u76ee\u5f55 : \/usr\/local\/mariadb\/\n     MariaDB\u6570\u636e\u5e93\u6240\u5728\u76ee\u5f55\uff1a\/usr\/local\/mariadb\/var\/\n     PHP\u76ee\u5f55 : \/usr\/local\/php\/\n     \u591aPHP\u7248\u672c\u76ee\u5f55 : \/usr\/local\/php5.5\/ \u5176\u4ed6\u7248\u672c\u524d\u97625.5\u7684\u7248\u672c\u53f7\u6362\u6210\u5176\u4ed6\u5373\u53ef\n     PHPMyAdmin\u76ee\u5f55 : 0.9\u7248\u672c\u4e3a\/home\/wwwroot\/phpmyadmin\/ 1.0\u53ca\u4ee5\u540e\u7248\u672c\u4e3a \/home\/wwwroot\/default\/phpmyadmin\/ \u5f3a\u70c8\u5efa\u8bae\u5c06\u6b64\u76ee\u5f55\u91cd\u547d\u540d\u4e3a\u5176\u4e0d\u5bb9\u6613\u731c\u5230\u7684\u540d\u5b57\u3002phpmyadmin\u53ef\u81ea\u5df1\u4ece\u5b98\u7f51\u4e0b\u8f7d\u65b0\u7248\u66ff\u6362\u3002\n     \u9ed8\u8ba4\u7f51\u7ad9\u76ee\u5f55 : 0.9\u7248\u672c\u4e3a \/home\/wwwroot\/ 1.0\u53ca\u4ee5\u540e\u7248\u672c\u4e3a \/home\/wwwroot\/default\/\n     Nginx\u65e5\u5fd7\u76ee\u5f55\uff1a\/home\/wwwlogs\/\n     \/root\/vhost.sh\u6dfb\u52a0\u7684\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff1a\/usr\/local\/nginx\/conf\/vhost\/\n\n     LNMP\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e\n     Nginx\u4e3b\u914d\u7f6e(\u9ed8\u8ba4\u865a\u62df\u4e3b\u673a)\u6587\u4ef6\uff1a\/usr\/local\/nginx\/conf\/nginx.conf\n     \u6dfb\u52a0\u7684\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/nginx\/conf\/vhost\/\u57df\u540d.conf\n     MySQL\u914d\u7f6e\u6587\u4ef6\uff1a\/etc\/my.cnf\n     PHP\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/php\/etc\/php.ini\n     php-fpm\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/php\/etc\/php-fpm.conf\n\n     LNMP\u72b6\u6001\u7ba1\u7406\u547d\u4ee4\uff1a\n     LNMP 1.2+\u72b6\u6001\u7ba1\u7406: lnmp {start|stop|reload|restart|kill|status}\n     LNMP 1.2+\u5404\u4e2a\u7a0b\u5e8f\u72b6\u6001\u7ba1\u7406: lnmp {nginx|mysql|mariadb|php-fpm|pureftpd} {start|stop|reload|restart|kill|status}\n     Nginx\u72b6\u6001\u7ba1\u7406\uff1a\/etc\/init.d\/nginx {start|stop|reload|restart}\n     MySQL\u72b6\u6001\u7ba1\u7406\uff1a\/etc\/init.d\/mysql {start|stop|restart|reload|force-reload|status}\n     PHP-FPM\u72b6\u6001\u7ba1\u7406\uff1a\/etc\/init.d\/php-fpm {start|stop|quit|restart|reload|logrotate}\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5bf9\u6574\u4e2a\u5efa\u7ad9\u7684\u6d41\u7a0b\u53c8\u719f\u6089\u4e86\u5f88\u591a\uff0c\u8d81\u8fd8\u8bb0\u5f97\u3002\u8bb0\u5f55\u4e0b\u6765\u4e00\u4e2a\u6210\u529f\u7684\u8fc7\u7a0b\uff0c\u5982\u4e0b<\/p>\n","protected":false},"author":1,"featured_media":1015,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[21],"tags":[],"jetpack_featured_media_url":"https:\/\/i2.wp.com\/zhoushiqi.com\/wp-content\/uploads\/2019\/08\/linux.jpg?fit=1920%2C1080&ssl=1","_links":{"self":[{"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/posts\/1013"}],"collection":[{"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1013"}],"version-history":[{"count":19,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/posts\/1013\/revisions"}],"predecessor-version":[{"id":1053,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/posts\/1013\/revisions\/1053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=\/wp\/v2\/media\/1015"}],"wp:attachment":[{"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhoushiqi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}