{"id":215,"date":"2023-10-28T14:59:44","date_gmt":"2023-10-28T06:59:44","guid":{"rendered":"https:\/\/www.liaoxinghui.com\/?p=215"},"modified":"2023-10-28T14:59:45","modified_gmt":"2023-10-28T06:59:45","slug":"lnmp%e7%9b%b8%e5%85%b3%e7%9a%84%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/www.liaoxinghui.com\/?p=215","title":{"rendered":"LNMP\u76f8\u5173\u7684\u5185\u5bb9"},"content":{"rendered":"<p class=\"wp-block-paragraph\">LNMP\u662fLinux, Nginx, MySQL, PHP\u7684\u7f29\u5199\u3002\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u7f51\u7ad9\u670d\u52a1\u5668\u73af\u5883\u914d\u7f6e\u3002Linux\u662f\u64cd\u4f5c\u7cfb\u7edf\uff0cNginx\u662fweb\u670d\u52a1\u5668\uff0cMySQL\u662f\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0cPHP\u662f\u670d\u52a1\u5668\u7aef\u7684\u811a\u672c\u8bed\u8a00\u3002\u8fd9\u56db\u4e2a\u7ec4\u4ef6\u5408\u5728\u4e00\u8d77\uff0c\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u7f51\u7ad9\u670d\u52a1\u5668\u73af\u5883\u3002<\/p>\n<p class=\"wp-block-paragraph\">LNMP\u4e00\u952e\u5b89\u88c5\u5305\u7684\u5b98\u65b9\u7f51\u5740<a href=\"https:\/\/lnmp.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/lnmp.org\/<\/a><\/p>\n<p class=\"wp-block-paragraph\">\u5b98\u65b9\u7684\u8bf4\u660e<\/p>\n<p class=\"wp-block-paragraph\">LNMP\u4e00\u952e\u5b89\u88c5\u5305\u662f\u4e00\u4e2a\u7528Linux Shell\u7f16\u5199\u7684\u53ef\u4ee5\u4e3aCentOS\/RHEL\/Fedora\/Debian\/Ubuntu\/Raspbian\/Deepin\/Alibaba\/Amazon\/Mint\/Oracle\/Rocky\/Alma\/Kali\/UOS\/\u94f6\u6cb3\u9e92\u9e9f\/openEuler\/Anolis OS Linux VPS\u6216\u72ec\u7acb\u4e3b\u673a\u5b89\u88c5LNMP(Nginx\/MySQL\/PHP)\u3001LNMPA(Nginx\/MySQL\/PHP\/Apache)\u3001LAMP(Apache\/MySQL\/PHP)\u751f\u4ea7\u73af\u5883\u7684Shell\u7a0b\u5e8f\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u6709\u65f6\u5019\u81ea\u5df1\u61d2\u5f97\u7f16\u8bd1\uff0c\u4e5f\u662f\u7528\u8fd9\u4e2a\u975e\u5e38\u65b9\u4fbf\uff0c\u6211\u628a\u5176\u4e2d\u6709\u4e9b\u9700\u8981\u7ecf\u5e38\u770b\u7684\u5185\u5bb9\u653e\u5230\u7ad9\u70b9\u4e0a<\/p>\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u7684\u547d\u4ee4<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget https:\/\/soft.lnmp.com\/lnmp\/lnmp2.0.tar.gz -O lnmp2.0.tar.gz &amp;&amp; tar zxf lnmp2.0.tar.gz &amp;&amp; cd lnmp2.0 &amp;&amp; .\/install.sh lnmp<\/pre>\n<p class=\"wp-block-paragraph\"><strong>LNMP\u76f8\u5173\u8f6f\u4ef6\u5b89\u88c5\u76ee\u5f55<\/strong><br>Nginx \u76ee\u5f55: \/usr\/local\/nginx\/<br>MySQL \u76ee\u5f55 : \/usr\/local\/mysql\/<br>MySQL\u6570\u636e\u5e93\u6240\u5728\u76ee\u5f55\uff1a\/usr\/local\/mysql\/var\/<br>MariaDB \u76ee\u5f55 : \/usr\/local\/mariadb\/<br>MariaDB\u6570\u636e\u5e93\u6240\u5728\u76ee\u5f55\uff1a\/usr\/local\/mariadb\/var\/<br>PHP\u76ee\u5f55 : \/usr\/local\/php\/<br>\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<br>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<br>\u9ed8\u8ba4\u7f51\u7ad9\u76ee\u5f55 : 0.9\u7248\u672c\u4e3a \/home\/wwwroot\/ 1.0\u53ca\u4ee5\u540e\u7248\u672c\u4e3a \/home\/wwwroot\/default\/<br>Nginx\u65e5\u5fd7\u76ee\u5f55\uff1a\/home\/wwwlogs\/<br>\/root\/vhost.sh\u6dfb\u52a0\u7684\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff1a\/usr\/local\/nginx\/conf\/vhost\/<br>PureFtpd \u76ee\u5f55\uff1a\/usr\/local\/pureftpd\/<br>PureFtpd web\u7ba1\u7406\u76ee\u5f55\uff1a 0.9\u7248\u4e3a\/home\/wwwroot\/default\/ftp\/ 1.0\u7248\u4e3a \/home\/wwwroot\/default\/ftp\/<br>Proftpd \u76ee\u5f55\uff1a\/usr\/local\/proftpd\/<br>Redis \u76ee\u5f55\uff1a\/usr\/local\/redis\/<\/p>\n<p class=\"wp-block-paragraph\"><\/p>\n<p class=\"wp-block-paragraph\"><strong>LNMP\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<\/strong><br>Nginx\u4e3b\u914d\u7f6e(\u9ed8\u8ba4\u865a\u62df\u4e3b\u673a)\u6587\u4ef6\uff1a\/usr\/local\/nginx\/conf\/nginx.conf<br>\u6dfb\u52a0\u7684\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/nginx\/conf\/vhost\/\u57df\u540d.conf<br>MySQL\u914d\u7f6e\u6587\u4ef6\uff1a\/etc\/my.cnf<br>PHP\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/php\/etc\/php.ini<br>php-fpm\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/php\/etc\/php-fpm.conf<br>PureFtpd\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/pureftpd\/pure-ftpd.conf 1.3\u53ca\u66f4\u9ad8\u7248\u672c\uff1a\/usr\/local\/pureftpd\/etc\/pure-ftpd.conf<br>PureFtpd MySQL\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/pureftpd\/pureftpd-mysql.conf<br>Proftpd\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/proftpd\/etc\/proftpd.conf 1.2\u53ca\u4e4b\u524d\u7248\u672c\u4e3a\/usr\/local\/proftpd\/proftpd.conf<br>Proftpd \u7528\u6237\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/proftpd\/etc\/vhost\/\u7528\u6237\u540d.conf<br>Redis \u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/redis\/etc\/redis.conf<\/p>\n<p class=\"wp-block-paragraph\"><\/p>\n<p class=\"wp-block-paragraph\"><strong>LNMPA\u76f8\u5173\u76ee\u5f55\u6587\u4ef6\u4f4d\u7f6e<\/strong><br>Apache\u76ee\u5f55\uff1a\/usr\/local\/apache\/<br>Apache\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/apache\/conf\/httpd.conf<br>Apache\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\uff1a\/usr\/local\/apache\/conf\/vhost\/<br>Apache\u9ed8\u8ba4\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\uff1a\/usr\/local\/apache\/conf\/extra\/httpd-vhosts.conf<br>\u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6\u540d\u79f0\uff1a\/usr\/local\/apache\/conf\/vhost\/\u57df\u540d.conf<\/p>\n<h3 class=\"wp-block-heading\">\u5355\u72ec\u5b89\u88c5\u90e8\u5206\u529f\u80fd<\/h3>\n<p class=\"wp-block-paragraph\">nmp 1.5\u5f00\u59cb\u652f\u6301\u53ea\u5b89\u88c5MySQL\/MariaDB\u6570\u636e\u5e93\u6216Nginx<br>\u589e\u52a0\u5355\u72ecnginx\u5b89\u88c5\uff0c\u5b89\u88c5\u5305\u76ee\u5f55\u4e0b\u8fd0\u884c\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/install.sh nginx <\/pre>\n<p class=\"wp-block-paragraph\">\u589e\u52a0\u5355\u72ec\u6570\u636e\u5e93\u5b89\u88c5\uff0c\u5b89\u88c5\u5305\u76ee\u5f55\u4e0b\u8fd0\u884c\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/install.sh db <\/pre>","protected":false},"excerpt":{"rendered":"<p>LNMP\u662fLinux, Nginx, MySQL, PHP\u7684\u7f29\u5199\u3002\u8fd9\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u7f51\u7ad9\u670d\u52a1\u5668\u73af\u5883\u914d\u7f6e\u3002Linux\u662f\u64cd\u4f5c\u7cfb\u7edf\uff0cNginx\u662f &hellip;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,10],"tags":[41],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-linux","category-10","tag-lnmp"],"views":392,"_links":{"self":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215"}],"version-history":[{"count":4,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":219,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions\/219"}],"wp:attachment":[{"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liaoxinghui.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}