import{_ as r}from"./plugin-vue_export-helper.21dcd24c.js";import{r as b,o as p,c as i,a as e,b as o,e as t,d as n}from"./app.615e41d8.js";const c={},l=t(`
\u4ECA\u5929\u6765\u7ED9\u5927\u5BB6\u63A8\u8350\u4E00\u6B3E\u73A9\u8F6C\u4E91\u670D\u52A1\u5668\u7684\u795E\u5668\u2014\u2014\u5B9D\u5854\u9762\u677F\uFF0C\u6709\u4E86\u8FD9\u73A9\u610F\uFF0C\u670D\u52A1\u5668\u80FD\u73A9\u4E00\u6574\u5E74\uFF0C\u751A\u81F3\u4F59\u751F\uFF01
--------\u5F00\u59CB\u4FDD\u59C6\u7EA7\u6F14\u793A\u5982\u4F55\u5B89\u88C5\u5B9D\u5854\u9762\u677F-------
\u4E3A\u4E86\u7ED9\u5927\u5BB6\u5448\u73B0\u51FA\u4FDD\u59C6\u7EA7\u7684\u6559\u7A0B\uFF0C\u6211\u81EA\u5DF1\u65B0\u4E0B\u5355\u4E86\u4E00\u6B3E\u8F7B\u91CF\u5E94\u7528\u670D\u52A1\u5668\u3002\u767B\u5F55\u963F\u91CC\u4E91\u670D\u52A1\u5668\u540E\u53F0\uFF0C\u53EF\u4EE5\u770B\u5230\u8FD9\u53F0\u670D\u52A1\u5668\u6B63\u5728\u8FD0\u884C\u5F53\u4E2D\u3002
\u70B9\u51FB\u300C\u8FDC\u7A0B\u94FE\u63A5\u300D\u7684\u5C0F\u56FE\u6807\uFF0C\u7B2C\u4E00\u6B21\u9700\u8981\u624B\u673A\u9A8C\u8BC1\u7801\uFF0C\u4E4B\u540E\u8FDB\u5165\u5230\u5728\u7EBF\u7248\u7684\u7EC8\u7AEF\u7A97\u53E3\u3002
\u53EF\u4EE5\u6309\u7167\u63D0\u793A\u8F93\u5165 sudo su root
\u547D\u4EE4\u5207\u6362\u5230 root \u8D26\u6237\u3002
\u5207\u6362\u5230\u5B9D\u5854Linux \u9762\u677F\u9875\uFF0C\u53EF\u4EE5\u770B\u5230\u5BF9\u5E94\u7684\u5B89\u88C5\u547D\u4EE4\uFF0C\u5982\u4E0B\u56FE\u6240\u793A\uFF1A
\u6211\u7684\u4E91\u670D\u52A1\u5668\u955C\u50CF\u9009\u62E9\u7684\u662F CentOS\uFF0C\u6240\u4EE5\u53EF\u4EE5\u76F4\u63A5\u590D\u5236 yum \u547D\u4EE4
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
\u5230\u4E91\u670D\u52A1\u5668\u7684\u300C\u7EC8\u7AEF\u300D\u4E0B\u8FDB\u884C\u5728\u7EBF\u5B89\u88C5\u3002
yum \u547D\u4EE4\u662F CentOS \u7684\u4F18\u52BF\uFF0C\u53EF\u4EE5\u5728\u7EBF\u5B89\u88C5\u548C\u5347\u7EA7\u8F6F\u4EF6\u3002\u5F53\u51FA\u73B0\u4E0A\u56FE\u63D0\u793A\u7684\u5185\u5BB9\uFF08\u5916\u7F51\u9762\u677F\u5730\u5740\u3001\u7528\u6237\u540D\u548C\u5BC6\u7801\uFF09\u540E\u5C31\u8868\u793A\u5B9D\u5854\u9762\u677F\u5B89\u88C5\u6210\u529F\u4E86\uFF01
\u524D\u540E\u5927\u6982 2 \u5206\u949F\u5DE6\u53F3\u7684\u65F6\u95F4\uFF0C\u8FD8\u662F\u6BD4\u8F83\u5FEB\u7684\u3002\u8BB0\u4F4F\u5916\u7F51\u9762\u677F\u5730\u5740\u3001\u7528\u6237\u540D\u548C\u5BC6\u7801\uFF0C\u5C31\u53EF\u4EE5\u901A\u8FC7\u5B9D\u5854\u9762\u677F\u8BBF\u95EE\u4E91\u670D\u52A1\u5668\u4E86\u3002
\u5982\u679C\u65E0\u6CD5\u8BBF\u95EE\uFF0C\u8868\u793A\u670D\u52A1\u5668\u6CA1\u6709\u5F00\u653E 8888 \u7AEF\u53E3\u3002\u9009\u62E9\u6211\u7684\u8F7B\u91CF\u670D\u52A1\u5668\uFF0C\u9009\u62E9\u9632\u706B\u5899\uFF0C\u9009\u62E9\u300C\u6DFB\u52A0\u89C4\u5219\u300D\u3002
\u80FD\u770B\u5230\u76EE\u524D\u670D\u52A1\u5668\u53EA\u5F00\u653E\u4E86 HTTP\u3001HTTPS \u548C SSH \u7684\u7AEF\u53E3\uFF0C8888 \u7AEF\u53E3\u8FD8\u6CA1\u6709\u653E\u884C\u3002
\u518D\u6B21\u8BBF\u95EE\u5916\u7F51\u9762\u677F\u5730\u5740\uFF0C\u5C31\u53EF\u4EE5\u770B\u5230\u767B\u5F55\u9875\u9762\u4E86\u3002
\u767B\u5F55\u6210\u529F\u540E\uFF08\u8BA9\u6D4F\u89C8\u5668\u5E2E\u4F60\u8BB0\u4F4F\u8D26\u53F7\u548C\u5BC6\u7801\uFF09\uFF0C\u5982\u679C\u4E4B\u524D\u6709\u5B9D\u5854\u5B98\u65B9\u8D26\u53F7\uFF0C\u53EF\u4EE5\u9009\u62E9\u7ED1\u5B9A\uFF0C\u5982\u679C\u6CA1\u6709\u7684\u8BDD\uFF0C\u6CE8\u518C\u4E00\u4E2A\u3002\u4E4B\u540E\u5C31\u53EF\u4EE5\u770B\u5230\u5B9D\u5854\u9762\u677F\u63A8\u8350\u6211\u4EEC\u5B89\u88C5\u7684\u670D\u52A1\u5668\u8F6F\u4EF6\u4E86\u3002
\u901A\u5E38\u6765\u8BF4\uFF0C\u76F4\u63A5\u5B89\u88C5 LNMP \u7EC4\u5408\u5305\u5C31\u53EF\u4EE5\u4E86\uFF0C\u5305\u62EC\u53EF\u4EE5\u4E00\u952E\u5B89\u88C5\u5230 Linux \u73AF\u5883\u7684 Nginx\u3001MySQL\u3001PHP \u7B49\u6210\u5458\u3002
LNMP \u4E00\u952E\u5B89\u88C5\u5305\u80FD\u4E3A\u4E0D\u4F1A Linux \u7684\u65B0\u624B\u63D0\u4F9B\u4E00\u4E2A\u53EF\u4EE5\u4F7F\u7528 Linux \u751F\u4EA7\u7684\u57FA\u7840\u73AF\u5883\uFF0C\u65E0\u9700\u4E00\u4E2A\u4E00\u4E2A\u7684\u8F93\u5165\u547D\u4EE4\uFF0C\u65E0\u9700\u503C\u5B88\uFF0C\u65E0\u9700\u4E3A\u8F6F\u4EF6\u4E4B\u95F4\u7684\u4F9D\u8D56\u800C\u70E6\u607C\u3002
`,26),s={href:"https://lnmp.org",target:"_blank",rel:"noopener noreferrer"},m=n("https://lnmp.org"),d=t('LAMP \u548C LNMP \u7684\u5DEE\u522B\u5C31\u5728\u4E8E\u524D\u8005\u63D0\u4F9B\u7684\u662F Apache \u7684 Web \u670D\u52A1\u5668\uFF0C\u540E\u6765\u662F Nginx\u3002Nginx \u7531 Igor Sysoev \u4E3A\u4FC4\u7F57\u65AF\u8BBF\u95EE\u91CF\u7B2C\u4E8C\u7684 Rambler.ru \u7AD9\u70B9\u5F00\u53D1\u7684 Web\u670D\u52A1\u5668\u8F6F\u4EF6\uFF0C\u56FD\u5185\u5916\u7684\u95E8\u6237\u7F51\u7AD9\u3001\u884C\u4E1A\u7F51\u7AD9\u4E5F\u90FD\u5728\u4F7F\u7528Nginx\uFF0C\u76F8\u5F53\u7684\u7A33\u5B9A\u3002
MySQL \u57FA\u672C\u4E0A\u662F\u4E2D\u5C0F\u578B\u670D\u52A1\u5668\u5FC5\u5907\u7684\u5173\u7CFB\u578B\u6570\u636E\u5E93\u8F6F\u4EF6\uFF1BPHP \u867D\u7136\u6CA1\u843D\u4E86\uFF0C\u4F46\u4ECD\u7136\u662F\u5F88\u591A\u670D\u52A1\u5668\u8F6F\u4EF6\u7684\u524D\u7F6E\u73AF\u5883\uFF0C\u6BD4\u5982\u8BF4\u6700\u53D7\u6B22\u8FCE\u7684\u670D\u52A1\u5668\u5EFA\u7AD9\u5DE5\u5177 WordPress\u3002
\u70B9\u51FB\u300C\u4E00\u952E\u5B89\u88C5\u300D\uFF0C\u5B9D\u5854\u9762\u677F\u5C31\u4F1A\u5E2E\u6211\u4EEC\u81EA\u52A8\u5B89\u6392\u4E0A\u4E86\u3002
\u5230\u6B64\u4E3A\u6B62\uFF0C\u5B9D\u5854\u9762\u677F\u7684\u57FA\u7840\u73AF\u5883\u5C31\u51C6\u5907\u5B8C\u6210\u4E86\u3002\u53EF\u4EE5\u5728\u4E0A\u9762\u6309\u7167\u5DE6\u4FA7\u7684\u83DC\u5355\u9879\u76EE\u5BF9\u670D\u52A1\u5668\u8FDB\u884C\u64CD\u4F5C\u4E86\uFF0C\u6BD4\u5982\u8BF4\uFF1A
\u8FD9\u91CC\u5148\u8BF4\u4E00\u4E0B\u7EC8\u7AEF\uFF0C\u7B2C\u4E00\u6B21\u8FDB\u6765\u7684\u65F6\u5019\u9700\u8981\u8FDB\u884C SSH \u8D26\u53F7\u9A8C\u8BC1\u3002
\u5BC6\u7801\u4ECE\u54EA\u91CC\u6765\u7684\u5462\uFF1F
\u5728\u300C\u670D\u52A1\u5668\u8FD0\u7EF4\u300D\u4E2D\u9009\u62E9\u300C\u8FDC\u7A0B\u94FE\u63A5\u300D\u9875\u9762\u4E0B\u3002\u6709 3 \u79CD\u65B9\u5F0F\uFF0C\u7B2C\u4E00\u79CD\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u6D4F\u89C8\u5668\uFF0C\u7B2C\u4E8C\u79CD\u4F7F\u7528\u5BC6\u94A5\uFF0C\u7B2C\u4E09\u79CD\u4F7F\u7528\u8D26\u6237\u548C\u5BC6\u7801\u3002
\u4E3A\u4E86\u65B9\u4FBF\u6F14\u793A\uFF0C\u8FD9\u91CC\u9009\u62E9\u9009\u62E9\u300C\u8BBE\u7F6E\u5BC6\u7801\u300D\u3002
\u8BBE\u7F6E\u5B8C\u6210\u540E\uFF0C\u91CD\u542F\u670D\u52A1\u5668\u751F\u6548\u3002\u4E4B\u540E\u5728\u5B9D\u5854\u9762\u677F\u7684\u300C\u7EC8\u7AEF\u300D\u9762\u677F\u4E0B\u586B\u5199\u5BC6\u7801\u5C31\u53EF\u4EE5\u94FE\u63A5\u4E86\u3002\u4E0D\u8FC7\u5728\u6D4F\u89C8\u5668\u7684\u7EC8\u7AEF\u91CC\u6572\u547D\u4EE4\u603B\u611F\u89C9\u6709\u70B9\u4E0D\u592A\u65B9\u4FBF\uFF0C\u6211\u4EEC\u6700\u597D\u9009\u62E9 iterm2\u3001putty\u3001xshell \u8FD9\u6837\u7684\u5BA2\u6237\u7AEF\u3002
\u518D\u8BF4\u4E00\u4E0B\u8F6F\u4EF6\u5546\u5E97\uFF0C\u6709\u4ED8\u8D39\u7684\u6709\u514D\u8D39\u7684\uFF0C\u4E0D\u8FC7\u5BF9\u4E8E\u6211\u4EEC\u4E2A\u4EBA\u670D\u52A1\u5668\u6765\u8BF4\uFF0C\u514D\u8D39\u7248\u7684\u90FD\u8DB3\u591F\u7528\u4E86\u3002\u9700\u8981\u4EC0\u4E48\u5B89\u88C5\u4EC0\u4E48\u5C31\u597D\u4E86\u3002
\u4E0A\u4F20\u4E0B\u8F7D\u6587\u4EF6\u4E5F\u975E\u5E38\u65B9\u4FBF\u3002
---\u518D\u518D\u5272\u4E00\u4E0B------
\u8BB2\u771F\uFF0C\u6709\u4E86\u5B9D\u5854\u9762\u677F\u540E\uFF0C\u64CD\u4F5C\u670D\u52A1\u5668\u662F\u771F\u7279\u4E48\u7684\u65B9\u4FBF\u554A\uFF01\u88C5\u4E86\u4EE5\u540E\u53EF\u4EE5\uFF1A