{"id":43032,"date":"2025-06-10T16:40:53","date_gmt":"2025-06-10T08:40:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/43032.html"},"modified":"2025-06-10T16:40:53","modified_gmt":"2025-06-10T08:40:53","slug":"%e9%98%bf%e9%87%8c%e4%ba%91-linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%85%a8%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f%e8%bf%90%e7%bb%b4%e6%8c%87%e5%8d%97%ef%bc%9a%e4%bb%8e%e9%83%a8%e7%bd%b2%e5%88%b0%e7%9b%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/43032.html","title":{"rendered":"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d"},"content":{"rendered":"<\/p>\n<h4>\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u524d\u8a00&#xff1a;\u4f60\u7684\u670d\u52a1\u5668&#xff0c;\u4e0d\u53ea\u662f \u201c\u4e91\u786c\u76d8\u201d<\/li>\n<li>\u4e00\u3001\u90e8\u7f72\u7bc7&#xff1a;\u4ece \u201c\u88f8\u673a\u201d \u5230 \u201c\u53ef\u7528\u73af\u5883\u201d&#xff0c;1 \u5c0f\u65f6\u642d\u597d\u751f\u4ea7\u7ea7\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>1.1 \u670d\u52a1\u5668\u9009\u8d2d\u4e0e\u521d\u59cb\u5316&#xff08;\u51b3\u5b9a\u540e\u7eed\u8fd0\u7ef4\u6210\u672c&#xff09;<\/li>\n<li>\n<ul>\n<li>1.1.1 \u5173\u952e\u521d\u59cb\u5316\u64cd\u4f5c&#xff08;\u5fc5\u505a&#xff01;&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>1.2 \u57fa\u7840\u73af\u5883\u90e8\u7f72&#xff1a;\u4ee5 LNMP&#xff08;Nginx&#043;MySQL&#043;PHP&#xff09;\u4e3a\u4f8b<\/li>\n<li>\n<ul>\n<li>1.2.1 \u5b89\u88c5 MySQL&#xff08;\u6570\u636e\u5e93&#xff09;<\/li>\n<li>1.2.2 \u5b89\u88c5 Nginx&#xff08;Web \u670d\u52a1\u5668&#xff09;<\/li>\n<li>1.2.3 \u5b89\u88c5 PHP&#xff08;\u52a8\u6001\u8bed\u8a00\u652f\u6301&#xff09;<\/li>\n<li>1.2.4 \u90e8\u7f72\u5e94\u7528&#xff08;\u4ee5 WordPress \u4e3a\u4f8b&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>1.3 \u90e8\u7f72\u9a8c\u6536&#xff1a;\u786e\u4fdd\u73af\u5883 \u201c\u53ef\u7528\u201d<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u8c03\u8bd5\u7bc7&#xff1a;\u5e94\u7528\u5d29\u6e83&#xff1f;5 \u5206\u949f\u5b9a\u4f4d\u95ee\u9898\u7684 \u201c\u8fd0\u7ef4\u5de5\u5177\u7bb1\u201d<\/li>\n<li>\n<ul>\n<li>2.1 \u5e38\u89c1\u95ee\u9898 1&#xff1a;Nginx 502 Bad Gateway&#xff08;PHP-FPM \u5d29\u6e83&#xff09;<\/li>\n<li>2.2 \u5e38\u89c1\u95ee\u9898 2&#xff1a;MySQL \u8fde\u63a5\u8d85\u65f6&#xff08;\u4e1a\u52a1\u5361\u987f&#xff09;<\/li>\n<li>2.3 \u8c03\u8bd5\u5de5\u5177\u63a8\u8350&#xff08;\u5fc5\u88c5&#xff01;&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u8fc1\u79fb\u7bc7&#xff1a;\u4e1a\u52a1\u6269\u5bb9\u6216\u642c\u8fc1&#xff0c;\u5982\u4f55\u505a\u5230 \u201c\u96f6\u505c\u673a\u201d&#xff1f;<\/li>\n<li>\n<ul>\n<li>3.1 \u573a\u666f 1&#xff1a;\u670d\u52a1\u5668\u914d\u7f6e\u5347\u7ea7&#xff08;\u5c0f\u673a\u5668\u6362\u5927\u673a\u5668&#xff09;<\/li>\n<li>3.2 \u573a\u666f 2&#xff1a;\u8de8\u53ef\u7528\u533a\u8fc1\u79fb&#xff08;\u5bb9\u707e\u9700\u6c42&#xff09;<\/li>\n<li>3.3 \u8fc1\u79fb\u6ce8\u610f\u4e8b\u9879<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u7ef4\u62a4\u7bc7&#xff1a;\u8ba9\u670d\u52a1\u5668 \u201c\u6c38\u8446\u9752\u6625\u201d \u7684\u65e5\u5e38\u64cd\u4f5c<\/li>\n<li>\n<ul>\n<li>4.1 \u7cfb\u7edf\u7ea7\u7ef4\u62a4&#xff1a;\u5b89\u5168\u4e0e\u6027\u80fd\u7684\u57fa\u77f3<\/li>\n<li>\n<ul>\n<li>4.1.1 \u5b9a\u671f\u66f4\u65b0&#xff08;\u9632\u6f0f\u6d1e&#xff09;<\/li>\n<li>4.1.2 \u5b89\u5168\u52a0\u56fa&#xff08;\u9632\u653b\u51fb&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>4.2 \u5e94\u7528\u7ea7\u7ef4\u62a4&#xff1a;\u786e\u4fdd\u4e1a\u52a1\u7a33\u5b9a\u8fd0\u884c<\/li>\n<li>\n<ul>\n<li>4.2.1 \u65e5\u5fd7\u7ba1\u7406&#xff08;\u907f\u514d\u78c1\u76d8\u7206\u4ed3&#xff09;<\/li>\n<li>4.2.2 \u5b9a\u65f6\u4efb\u52a1&#xff08;\u81ea\u52a8\u5316\u8fd0\u7ef4&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u76d1\u63a7\u7bc7&#xff1a;\u4ece \u201c\u88ab\u52a8\u6551\u706b\u201d \u5230 \u201c\u4e3b\u52a8\u9884\u9632\u201d<\/li>\n<li>\n<ul>\n<li>5.1 \u963f\u91cc\u4e91\u539f\u751f\u76d1\u63a7&#xff08;\u5f00\u7bb1\u5373\u7528&#xff09;<\/li>\n<li>\n<ul>\n<li>5.1.1 \u5173\u952e\u76d1\u63a7\u6307\u6807&#xff08;\u5fc5\u8bbe&#xff01;&#xff09;<\/li>\n<li>5.1.2 \u544a\u8b66\u8bbe\u7f6e&#xff08;\u907f\u514d\u6f0f\u62a5&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>5.2 \u81ea\u5b9a\u4e49\u76d1\u63a7&#xff08;\u9ad8\u7ea7\u73a9\u6cd5&#xff09;<\/li>\n<li>\n<ul>\n<li>5.2.1 \u5b89\u88c5 Prometheus<\/li>\n<li>5.2.2 \u5b89\u88c5 Grafana&#xff08;\u53ef\u89c6\u5316&#xff09;<\/li>\n<li>5.2.3 \u76d1\u63a7\u6548\u679c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3&#xff1a;\u8fd0\u7ef4\u7684\u672c\u8d28\u662f \u201c\u7cfb\u7edf\u5316\u601d\u7ef4\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u524d\u8a00&#xff1a;\u4f60\u7684\u670d\u52a1\u5668&#xff0c;\u4e0d\u53ea\u662f \u201c\u4e91\u786c\u76d8\u201d<\/h3>\n<p>\u5728\u4e91\u8ba1\u7b97\u666e\u53ca\u7684\u4eca\u5929&#xff0c;\u201c\u4e0a\u4e91\u201d \u65e9\u5df2\u4e0d\u662f\u4f01\u4e1a\u7684\u9009\u62e9\u9898&#xff0c;\u800c\u662f\u5fc5\u7b54\u9898\u3002\u4f46\u4f60\u662f\u5426\u9047\u5230\u8fc7\u8fd9\u4e9b\u573a\u666f&#xff1f;<\/p>\n<ul>\n<li>\u65b0\u8d2d\u7684\u963f\u91cc\u4e91 ECS \u670d\u52a1\u5668&#xff0c;\u5b89\u88c5\u73af\u5883\u65f6\u53cd\u590d\u62a5\u9519&#xff0c;\u534a\u5929\u642d\u4e0d\u597d\u4e00\u4e2a WordPress&#xff1b;<\/li>\n<li>\u5e94\u7528\u7a81\u7136\u5d29\u6e83&#xff0c;\u65e5\u5fd7\u91cc\u5168\u662f\u4e71\u7801&#xff0c;\u6839\u672c\u4e0d\u77e5\u9053\u4ece\u54ea\u67e5\u8d77&#xff1b;<\/li>\n<li>\u4e1a\u52a1\u589e\u957f\u9700\u8981\u6269\u5bb9&#xff0c;\u6570\u636e\u8fc1\u79fb\u65f6\u624b\u5fd9\u811a\u4e71&#xff0c;\u505c\u673a 3 \u5c0f\u65f6\u88ab\u8001\u677f\u9a82&#xff1b;<\/li>\n<li>\u670d\u52a1\u5668\u88ab\u653b\u51fb\u3001\u78c1\u76d8\u7a7a\u95f4\u7206\u4e86\u3001\u6570\u636e\u5e93\u6162\u67e5\u8be2\u2026\u2026 \u6bcf\u5929\u63d0\u5fc3\u540a\u80c6\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u95ee\u9898\u7684\u6838\u5fc3&#xff0c;\u5728\u4e8e\u7f3a\u4e4f\u7cfb\u7edf\u5316\u7684\u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u80fd\u529b\u3002<\/p>\n<p>\u672c\u6587\u5c06\u56f4\u7ed5\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u7684\u90e8\u7f72\u2192\u8c03\u8bd5\u2192\u8fc1\u79fb\u2192\u7ef4\u62a4\u2192\u76d1\u63a7\u5168\u6d41\u7a0b&#xff0c;\u7ed3\u5408\u771f\u5b9e\u8fd0\u7ef4\u573a\u666f&#xff0c;\u7ed9\u51fa\u53ef\u590d\u7528\u7684\u64cd\u4f5c\u6307\u5357\u3002\u65e0\u8bba\u4f60\u662f\u521a\u63a5\u89e6\u4e91\u670d\u52a1\u5668\u7684\u65b0\u624b&#xff0c;\u8fd8\u662f\u9700\u8981\u4f18\u5316\u73b0\u6709\u73af\u5883\u7684\u8fd0\u7ef4\u5de5\u7a0b\u5e08&#xff0c;\u90fd\u80fd\u4ece\u4e2d\u627e\u5230\u89e3\u51b3\u95ee\u9898\u7684 \u201c\u94a5\u5319\u201d\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001\u90e8\u7f72\u7bc7&#xff1a;\u4ece \u201c\u88f8\u673a\u201d \u5230 \u201c\u53ef\u7528\u73af\u5883\u201d&#xff0c;1 \u5c0f\u65f6\u642d\u597d\u751f\u4ea7\u7ea7\u670d\u52a1\u5668<\/h3>\n<h4>1.1 \u670d\u52a1\u5668\u9009\u8d2d\u4e0e\u521d\u59cb\u5316&#xff08;\u51b3\u5b9a\u540e\u7eed\u8fd0\u7ef4\u6210\u672c&#xff09;<\/h4>\n<p>\u963f\u91cc\u4e91 ECS \u7684\u9009\u578b\u9700\u7ed3\u5408\u4e1a\u52a1\u7c7b\u578b&#xff1a;<\/p>\n<ul>\n<li>\u535a\u5ba2 \/ \u5c0f\u7f51\u7ad9&#xff1a;1 \u6838 2G&#xff08;\u7a81\u53d1\u6027\u80fd\u5b9e\u4f8b t6&#xff09;&#043;40G \u7cfb\u7edf\u76d8 &#043; 1M \u516c\u7f51\u5e26\u5bbd&#xff08;\u8db3\u591f\u652f\u6491\u65e5\u5747 1000 \u8bbf\u95ee&#xff09;&#xff1b;<\/li>\n<li>\u4f01\u4e1a\u7ea7\u5e94\u7528&#xff08;\u5982 ERP&#xff09;&#xff1a;2 \u6838 4G&#xff08;\u901a\u7528\u578b c6&#xff09;&#043;100G \u7cfb\u7edf\u76d8 &#043; 5M \u516c\u7f51\u5e26\u5bbd&#xff08;\u9700\u8003\u8651\u6570\u636e\u5e93 IO&#xff09;&#xff1b;<\/li>\n<li>\u9ad8\u5e76\u53d1\u573a\u666f&#xff08;\u5982\u7535\u5546\u5927\u4fc3&#xff09;&#xff1a;4 \u6838 8G&#xff08;\u8ba1\u7b97\u578b g6&#xff09;&#043; \u8d1f\u8f7d\u5747\u8861 &#043; \u5f39\u6027\u4f38\u7f29&#xff08;\u6309\u9700\u6269\u5bb9&#xff09;\u3002<\/li>\n<\/ul>\n<h5>1.1.1 \u5173\u952e\u521d\u59cb\u5316\u64cd\u4f5c&#xff08;\u5fc5\u505a&#xff01;&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u6b65\u9aa41&#xff1a;SSH\u8fdc\u7a0b\u8fde\u63a5&#xff08;\u66ff\u6362\u4e3a\u516c\u7f51IP&#xff09;<\/span><br \/>\n<span class=\"token function\">ssh<\/span> root&#064;47.100.xx.xx<\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa42&#xff1a;\u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u6e90&#xff08;\u907f\u514d\u5b89\u88c5\u65e7\u7248\u672c&#xff09;<\/span><br \/>\n<span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">apt<\/span> upgrade <span class=\"token parameter variable\">-y<\/span>  <span class=\"token comment\"># Ubuntu\/Debian<\/span><br \/>\n<span class=\"token comment\"># \u6216<\/span><br \/>\nyum update <span class=\"token parameter variable\">-y<\/span>  <span class=\"token comment\"># CentOS\/Fedora<\/span><\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa43&#xff1a;\u8bbe\u7f6e hostname&#xff08;\u65b9\u4fbf\u96c6\u7fa4\u7ba1\u7406&#xff09;<\/span><br \/>\nhostnamectl set-hostname blog-server  <span class=\"token comment\"># \u66ff\u6362\u4e3a\u4f60\u7684\u670d\u52a1\u5668\u540d<\/span><\/p>\n<h4>1.2 \u57fa\u7840\u73af\u5883\u90e8\u7f72&#xff1a;\u4ee5 LNMP&#xff08;Nginx&#043;MySQL&#043;PHP&#xff09;\u4e3a\u4f8b<\/h4>\n<p>90% \u7684 Web \u5e94\u7528\u4f9d\u8d56 LNMP \u73af\u5883&#xff0c;\u4ee5\u4e0b\u662f\u6807\u51c6\u5316\u90e8\u7f72\u6d41\u7a0b&#xff08;\u4ee5 Ubuntu 22.04 \u4e3a\u4f8b&#xff09;&#xff1a;<\/p>\n<h5>1.2.1 \u5b89\u88c5 MySQL&#xff08;\u6570\u636e\u5e93&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5MySQL 8.0&#xff08;\u6700\u65b0\u7a33\u5b9a\u7248&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> mysql-server <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><span class=\"token comment\"># \u521d\u59cb\u5316\u5b89\u5168\u914d\u7f6e&#xff08;\u8bbe\u7f6eroot\u5bc6\u7801\u3001\u7981\u7528\u8fdc\u7a0broot\u767b\u5f55&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> mysql_secure_installation<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5e94\u7528\u4e13\u7528\u6570\u636e\u5e93&#xff08;\u5982blog_db&#xff09;\u548c\u7528\u6237&#xff08;blog_user&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> mysql <span class=\"token parameter variable\">-u<\/span> root <span class=\"token parameter variable\">-p<\/span> <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">EOF<br \/>\nCREATE DATABASE blog_db DEFAULT CHARSET utf8mb4;<br \/>\nCREATE USER &#039;blog_user&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;Blog&#064;2024&#039;;<br \/>\nGRANT ALL ON blog_db.* TO &#039;blog_user&#039;&#064;&#039;localhost&#039;;<br \/>\nFLUSH PRIVILEGES;<br \/>\nEOF<\/span><\/p>\n<h5>1.2.2 \u5b89\u88c5 Nginx&#xff08;Web \u670d\u52a1\u5668&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5Nginx\u5e76\u542f\u52a8<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> nginx <span class=\"token parameter variable\">-y<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl start nginx<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> nginx  <span class=\"token comment\"># \u5f00\u673a\u81ea\u542f<\/span><\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5b89\u88c5&#xff08;\u6d4f\u89c8\u5668\u8bbf\u95ee\u516c\u7f51IP&#xff0c;\u51fa\u73b0\u201cWelcome to nginx!\u201d\u5373\u6210\u529f&#xff09;<\/span><\/p>\n<h5>1.2.3 \u5b89\u88c5 PHP&#xff08;\u52a8\u6001\u8bed\u8a00\u652f\u6301&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5PHP 8.1&#xff08;\u517c\u5bb9\u4e3b\u6d41\u6846\u67b6\u5982Laravel&#xff09;\u53ca\u6269\u5c55<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> php8.1-fpm php8.1-mysql php8.1-gd php8.1-mbstring <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><span class=\"token comment\"># \u542f\u52a8PHP-FPM\u5e76\u5173\u8054Nginx<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl start php8.1-fpm<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> php8.1-fpm<\/p>\n<h5>1.2.4 \u90e8\u7f72\u5e94\u7528&#xff08;\u4ee5 WordPress \u4e3a\u4f8b&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u6b65\u9aa41&#xff1a;\u521b\u5efa\u7f51\u7ad9\u6839\u76ee\u5f55\u5e76\u8bbe\u7f6e\u6743\u9650<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/var\/www\/blog<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> www-data:www-data \/var\/www\/blog<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token number\">755<\/span> \/var\/www\/blog<\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa42&#xff1a;\u4e0b\u8f7d\u5e76\u89e3\u538bWordPress<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/var\/www\/blog<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">wget<\/span> https:\/\/cn.wordpress.org\/latest-zh_CN.tar.gz<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-zxvf<\/span> latest-zh_CN.tar.gz &#8211;strip-components<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span>  <span class=\"token comment\"># \u89e3\u538b\u5230\u5f53\u524d\u76ee\u5f55<\/span><\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa43&#xff1a;\u914d\u7f6eNginx\u865a\u62df\u4e3b\u673a&#xff08;\/etc\/nginx\/sites-available\/blog.conf&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/sites-available\/blog.conf<\/p>\n<p>Nginx \u914d\u7f6e\u6587\u4ef6\u5185\u5bb9&#xff08;\u5173\u952e\u53c2\u6570\u6ce8\u91ca&#xff09;&#xff1a;<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name your-domain.com www.your-domain.com;  # \u66ff\u6362\u4e3a\u4f60\u7684\u57df\u540d&#xff08;\u5982conkl.cn&#xff09;<br \/>\n    root \/var\/www\/blog;<br \/>\n    index index.php;<\/p>\n<p>    location \/ {<br \/>\n        try_files $uri $uri\/ \/index.php?$query_string;<br \/>\n    }<\/p>\n<p>    # PHP\u89e3\u6790&#xff08;\u5173\u952e&#xff01;&#xff09;<br \/>\n    location ~ \\\\.php$ {<br \/>\n        include snippets\/fastcgi-php.conf;<br \/>\n        fastcgi_pass unix:\/run\/php\/php8.1-fpm.sock;<br \/>\n    }<br \/>\n}<\/p>\n<h4>1.3 \u90e8\u7f72\u9a8c\u6536&#xff1a;\u786e\u4fdd\u73af\u5883 \u201c\u53ef\u7528\u201d<\/h4>\n<ul>\n<li>Nginx \u9a8c\u8bc1&#xff1a;curl http:\/\/localhost\u8fd4\u56de Nginx \u6b22\u8fce\u9875&#xff1b;<\/li>\n<li>PHP \u9a8c\u8bc1&#xff1a;\u5728\/var\/www\/blog\u521b\u5efainfo.php&#xff08;\u5185\u5bb9&lt;?php phpinfo(); ?&gt;&#xff09;&#xff0c;\u8bbf\u95eehttp:\/\/your-domain.com\/info.php\u770b\u5230 PHP \u4fe1\u606f\u9875&#xff1b;<\/li>\n<li>MySQL \u9a8c\u8bc1&#xff1a;mysql -u blog_user -p blog_db\u80fd\u6210\u529f\u767b\u5f55\u6570\u636e\u5e93\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e8c\u3001\u8c03\u8bd5\u7bc7&#xff1a;\u5e94\u7528\u5d29\u6e83&#xff1f;5 \u5206\u949f\u5b9a\u4f4d\u95ee\u9898\u7684 \u201c\u8fd0\u7ef4\u5de5\u5177\u7bb1\u201d<\/h3>\n<h4>2.1 \u5e38\u89c1\u95ee\u9898 1&#xff1a;Nginx 502 Bad Gateway&#xff08;PHP-FPM \u5d29\u6e83&#xff09;<\/h4>\n<p>\u73b0\u8c61&#xff1a;\u8bbf\u95ee PHP \u9875\u9762\u63d0\u793a 502&#xff0c;Nginx \u9519\u8bef\u65e5\u5fd7&#xff08;\/var\/log\/nginx\/error.log&#xff09;\u663e\u793a&#xff1a;<\/p>\n<p>connect() to unix:\/run\/php\/php8.1-fpm.sock failed (111: Connection refused)<\/p>\n<p>\u6392\u67e5\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u68c0\u67e5 PHP-FPM \u662f\u5426\u8fd0\u884c&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> systemctl status php8.1-fpm  <span class=\"token comment\"># \u72b6\u6001\u5e94\u4e3aactive (running)<\/span>\n <\/li>\n<li>\n<p>\u82e5\u672a\u8fd0\u884c&#xff0c;\u5c1d\u8bd5\u91cd\u542f&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> systemctl restart php8.1-fpm\n <\/li>\n<li>\n<p>\u82e5\u9891\u7e41\u5d29\u6e83&#xff0c;\u68c0\u67e5 PHP-FPM \u914d\u7f6e&#xff08;<\/p>\n<p> \/etc\/php\/8.1\/fpm\/pool.d\/www.conf<\/p>\n<p>&#xff09;&#xff1a;<\/p>\n<ul>\n<li>pm.max_children&#xff08;\u6700\u5927\u8fdb\u7a0b\u6570&#xff09;\u662f\u5426\u8fc7\u5c0f&#xff08;\u63a8\u8350&#xff1a;\u5185\u5b58 \/ 30M&#xff0c;\u5982 2G \u5185\u5b58\u8bbe\u4e3a 50&#xff09;&#xff1b;<\/li>\n<li>pm.status_path\u662f\u5426\u5f00\u542f&#xff08;\u7528\u4e8e\u76d1\u63a7\u8fdb\u7a0b\u72b6\u6001&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>2.2 \u5e38\u89c1\u95ee\u9898 2&#xff1a;MySQL \u8fde\u63a5\u8d85\u65f6&#xff08;\u4e1a\u52a1\u5361\u987f&#xff09;<\/h4>\n<p>\u73b0\u8c61&#xff1a;\u5e94\u7528\u67e5\u8be2\u6570\u636e\u5e93\u65f6\u63d0\u793a \u201cConnection timed out\u201d&#xff0c;MySQL \u6162\u67e5\u8be2\u65e5\u5fd7&#xff08;\/var\/log\/mysql\/slow.log&#xff09;\u6709\u5927\u91cf\u8d85\u65f6\u8bb0\u5f55\u3002<\/p>\n<p>\u6392\u67e5\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u68c0\u67e5 MySQL \u8fde\u63a5\u6570&#xff1a;<\/p>\n<p> mysql <span class=\"token parameter variable\">-u<\/span> root <span class=\"token parameter variable\">-p<\/span> <span class=\"token parameter variable\">-e<\/span> <span class=\"token string\">&#034;SHOW GLOBAL STATUS LIKE &#039;Threads_connected&#039;;&#034;<\/span><\/p>\n<ul>\n<li>\u82e5\u63a5\u8fd1max_connections&#xff08;\u9ed8\u8ba4 151&#xff09;&#xff0c;\u9700\u8c03\u5927\u8be5\u53c2\u6570&#xff08;\/etc\/mysql\/mysql.conf.d\/mysqld.cnf\u4e2d\u8bbe\u7f6emax_connections&#061;300&#xff09;&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4f18\u5316\u6162\u67e5\u8be2&#xff1a;<\/p>\n<ul>\n<li>\u4e3a\u67e5\u8be2\u5b57\u6bb5\u6dfb\u52a0\u7d22\u5f15&#xff08;\u5982ALTER TABLE posts ADD INDEX idx_title (title);&#xff09;&#xff1b;<\/li>\n<li>\u5f00\u542f\u67e5\u8be2\u7f13\u5b58&#xff08;query_cache_type&#061;1&#xff0c;\u4f46 MySQL 8.0 \u5df2\u5f03\u7528&#xff0c;\u63a8\u8350\u7528 Redis \u7f13\u5b58&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>2.3 \u8c03\u8bd5\u5de5\u5177\u63a8\u8350&#xff08;\u5fc5\u88c5&#xff01;&#xff09;<\/h4>\n<table>\n<tr>\u5de5\u5177\u7528\u9014\u793a\u4f8b\u547d\u4ee4<\/tr>\n<tbody>\n<tr>\n<td>telnet<\/td>\n<td>\u6d4b\u8bd5\u7aef\u53e3\u8fde\u901a\u6027&#xff08;\u5982 MySQL 3306&#xff09;<\/td>\n<td>telnet 127.0.0.1 3306<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>netstat<\/td>\n<td>\u67e5\u770b\u7aef\u53e3\u5360\u7528<\/td>\n<td>&#096;netstat -tunlp<\/td>\n<td>grep 80&#096;<\/td>\n<\/tr>\n<tr>\n<td>strace<\/td>\n<td>\u8ddf\u8e2a\u8fdb\u7a0b\u7cfb\u7edf\u8c03\u7528&#xff08;\u5b9a\u4f4d\u5d29\u6e83&#xff09;<\/td>\n<td>strace -p $(pgrep nginx)<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>htop<\/td>\n<td>\u5b9e\u65f6\u76d1\u63a7 CPU \/ \u5185\u5b58\u5360\u7528<\/td>\n<td>htop&#xff08;\u6bd4 top \u66f4\u76f4\u89c2&#xff09;<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e09\u3001\u8fc1\u79fb\u7bc7&#xff1a;\u4e1a\u52a1\u6269\u5bb9\u6216\u642c\u8fc1&#xff0c;\u5982\u4f55\u505a\u5230 \u201c\u96f6\u505c\u673a\u201d&#xff1f;<\/h3>\n<h4>3.1 \u573a\u666f 1&#xff1a;\u670d\u52a1\u5668\u914d\u7f6e\u5347\u7ea7&#xff08;\u5c0f\u673a\u5668\u6362\u5927\u673a\u5668&#xff09;<\/h4>\n<p>\u9700\u6c42&#xff1a;\u539f\u670d\u52a1\u5668 1 \u6838 2G&#xff0c;\u4e1a\u52a1\u589e\u957f\u9700\u5347\u7ea7\u5230 2 \u6838 4G\u3002<\/p>\n<p>\u8fc1\u79fb\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u6570\u636e\u5907\u4efd&#xff08;\u5173\u952e&#xff01;&#xff09;&#xff1a;\n<ul>\n<li>\u6570\u636e\u5e93&#xff1a;mysqldump -u blog_user -p blog_db &gt; blog_db.sql&#xff1b;<\/li>\n<li>\u5e94\u7528\u6587\u4ef6&#xff1a;tar -czvf \/backup\/blog.tar.gz \/var\/www\/blog&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u521b\u5efa\u65b0\u670d\u52a1\u5668&#xff1a;\u9009\u62e9 2 \u6838 4G \u914d\u7f6e&#xff0c;\u955c\u50cf\u4e0e\u539f\u670d\u52a1\u5668\u4e00\u81f4&#xff08;\u907f\u514d\u73af\u5883\u5dee\u5f02&#xff09;&#xff1b;<\/li>\n<li>\u6062\u590d\u6570\u636e&#xff1a;\n<ul>\n<li>\u4e0a\u4f20\u5907\u4efd\u6587\u4ef6\u5230\u65b0\u670d\u52a1\u5668&#xff1b;<\/li>\n<li>\u5bfc\u5165\u6570\u636e\u5e93&#xff1a;mysql -u blog_user -p blog_db &lt; blog_db.sql&#xff1b;<\/li>\n<li>\u89e3\u538b\u5e94\u7528\u6587\u4ef6\u5230\/var\/www\/blog&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u9a8c\u8bc1\u65b0\u73af\u5883&#xff08;\u540c\u4e0a\u90e8\u7f72\u9a8c\u6536\u6b65\u9aa4&#xff09;&#xff1b;<\/li>\n<li>\u5207\u6362\u57df\u540d\u89e3\u6790&#xff1a;\u5c06\u57df\u540d\u4ece\u539f\u670d\u52a1\u5668 IP \u6307\u5411\u65b0\u670d\u52a1\u5668 IP&#xff08;\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u2192\u57df\u540d\u2192\u89e3\u6790\u8bbe\u7f6e&#xff09;\u3002<\/li>\n<h4>3.2 \u573a\u666f 2&#xff1a;\u8de8\u53ef\u7528\u533a\u8fc1\u79fb&#xff08;\u5bb9\u707e\u9700\u6c42&#xff09;<\/h4>\n<p>\u9700\u6c42&#xff1a;\u539f\u670d\u52a1\u5668\u5728\u963f\u91cc\u4e91\u534e\u4e1c 1&#xff08;\u676d\u5dde&#xff09;&#xff0c;\u9700\u8fc1\u79fb\u5230\u534e\u4e1c 2&#xff08;\u4e0a\u6d77&#xff09;\u4ee5\u63d0\u5347\u5bb9\u707e\u80fd\u529b\u3002<\/p>\n<p>\u6700\u4f73\u5b9e\u8df5&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528\u963f\u91cc\u4e91\u8fc1\u79fb\u5de5\u5177&#xff08;SMC&#xff09;&#xff1a;\u652f\u6301\u5728\u7ebf\u8fc1\u79fb&#xff0c;\u65e0\u9700\u505c\u673a&#xff1b;<\/li>\n<li>\u6b65\u9aa4&#xff1a;\n<li>\u5728\u539f\u670d\u52a1\u5668\u5b89\u88c5 SMC \u5ba2\u6237\u7aef&#xff1b;<\/li>\n<li>\u5728\u76ee\u6807\u53ef\u7528\u533a\u521b\u5efa\u7a7a ECS \u5b9e\u4f8b&#xff1b;<\/li>\n<li>\u901a\u8fc7 SMC \u540c\u6b65\u539f\u670d\u52a1\u5668\u78c1\u76d8\u6570\u636e\u5230\u76ee\u6807\u5b9e\u4f8b&#xff1b;<\/li>\n<li>\u505c\u6b62\u539f\u670d\u52a1\u5668&#xff0c;\u542f\u52a8\u76ee\u6807\u5b9e\u4f8b&#xff0c;\u5207\u6362\u57df\u540d\u89e3\u6790\u3002<\/li>\n<\/li>\n<\/ul>\n<h4>3.3 \u8fc1\u79fb\u6ce8\u610f\u4e8b\u9879<\/h4>\n<ul>\n<li>\u6700\u5c0f\u5316\u505c\u673a\u65f6\u95f4&#xff1a;\u5bf9\u9ad8\u53ef\u7528\u4e1a\u52a1&#xff0c;\u53ef\u4f7f\u7528\u8d1f\u8f7d\u5747\u8861&#xff08;SLB&#xff09;\u5b9e\u73b0\u65b0\u65e7\u670d\u52a1\u5668\u6d41\u91cf\u5207\u6362&#xff1b;<\/li>\n<li>\u73af\u5883\u4e00\u81f4\u6027&#xff1a;\u65b0\u670d\u52a1\u5668\u7684\u7cfb\u7edf\u7248\u672c\u3001\u8f6f\u4ef6\u7248\u672c&#xff08;\u5982 Nginx 1.22\u21921.24 \u9700\u6d4b\u8bd5\u517c\u5bb9\u6027&#xff09;\u9700\u4e0e\u539f\u73af\u5883\u4e00\u81f4&#xff1b;<\/li>\n<li>\u6570\u636e\u6821\u9a8c&#xff1a;\u8fc1\u79fb\u540e\u5bf9\u6bd4\u539f\u670d\u52a1\u5668\u548c\u65b0\u670d\u52a1\u5668\u7684\u6587\u4ef6 MD5 \u503c&#xff08;md5sum \/var\/www\/blog\/index.php&#xff09;&#xff0c;\u786e\u4fdd\u65e0\u4e22\u5931\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u56db\u3001\u7ef4\u62a4\u7bc7&#xff1a;\u8ba9\u670d\u52a1\u5668 \u201c\u6c38\u8446\u9752\u6625\u201d \u7684\u65e5\u5e38\u64cd\u4f5c<\/h3>\n<h4>4.1 \u7cfb\u7edf\u7ea7\u7ef4\u62a4&#xff1a;\u5b89\u5168\u4e0e\u6027\u80fd\u7684\u57fa\u77f3<\/h4>\n<h5>4.1.1 \u5b9a\u671f\u66f4\u65b0&#xff08;\u9632\u6f0f\u6d1e&#xff09;<\/h5>\n<p><span class=\"token comment\"># Ubuntu\/Debian&#xff1a;\u66f4\u65b0\u7cfb\u7edf\u548c\u8f6f\u4ef6\u5305<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> upgrade <span class=\"token parameter variable\">-y<\/span><\/p>\n<p><span class=\"token comment\"># CentOS\/Fedora&#xff1a;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> yum update <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;\u5185\u6838\u66f4\u65b0&#xff08;linux-image-*&#xff09;\u9700\u8c28\u614e&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u9a71\u52a8\u4e0d\u517c\u5bb9&#xff08;\u5982\u7f51\u5361 \/ \u663e\u5361&#xff09;&#xff0c;\u5efa\u8bae\u91cd\u542f\u524d\u5907\u4efd\u3002<\/p>\n<h5>4.1.2 \u5b89\u5168\u52a0\u56fa&#xff08;\u9632\u653b\u51fb&#xff09;<\/h5>\n<ul>\n<li>\n<p>\u7981\u7528 root \u76f4\u63a5\u767b\u5f55&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/ssh\/sshd_config<br \/>\n<span class=\"token comment\"># \u4fee\u6539\u4e3a&#xff1a;PermitRootLogin no<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl restart sshd\n <\/li>\n<li>\n<p>\u542f\u7528 SSH \u5bc6\u94a5\u767b\u5f55<\/p>\n<p>&#xff08;\u66ff\u4ee3\u5bc6\u7801&#xff0c;\u9632\u66b4\u529b\u7834\u89e3&#xff09;&#xff1a;<\/p>\n<p> <span class=\"token comment\"># \u672c\u5730\u751f\u6210\u5bc6\u94a5\u5bf9&#xff08;Windows\u7528PuttyGen&#xff0c;Mac\/Linux\u7528ssh-keygen&#xff09;<\/span><br \/>\nssh-keygen <span class=\"token parameter variable\">-t<\/span> rsa <span class=\"token parameter variable\">-b<\/span> <span class=\"token number\">4096<\/span><br \/>\n<span class=\"token comment\"># \u5c06\u516c\u94a5\u4e0a\u4f20\u5230\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token function\">cat<\/span> ~\/.ssh\/id_rsa.pub <span class=\"token operator\">|<\/span> <span class=\"token function\">ssh<\/span> user&#064;server <span class=\"token string\">&#034;mkdir -p ~\/.ssh &amp;&amp; cat &gt;&gt; ~\/.ssh\/authorized_keys&#034;<\/span>\n <\/li>\n<\/ul>\n<h4>4.2 \u5e94\u7528\u7ea7\u7ef4\u62a4&#xff1a;\u786e\u4fdd\u4e1a\u52a1\u7a33\u5b9a\u8fd0\u884c<\/h4>\n<h5>4.2.1 \u65e5\u5fd7\u7ba1\u7406&#xff08;\u907f\u514d\u78c1\u76d8\u7206\u4ed3&#xff09;<\/h5>\n<ul>\n<li>\n<p>\u65e5\u5fd7\u5207\u5272&#xff1a;\u4f7f\u7528<\/p>\n<p> logrotate<\/p>\n<p>\u5b9a\u671f\u538b\u7f29\u65e7\u65e5\u5fd7&#xff08;\u914d\u7f6e\u6587\u4ef6&#xff09;&#xff1a;<\/p>\n<p> \/etc\/logrotate.d\/nginx<br \/>\n \/var\/log\/nginx\/*.log {<br \/>\n    daily          # \u6bcf\u65e5\u5207\u5272<br \/>\n    rotate 7       # \u4fdd\u75597\u5929\u65e5\u5fd7<br \/>\n    missingok      # \u65e5\u5fd7\u4e0d\u5b58\u5728\u4e0d\u62a5\u9519<br \/>\n    compress       # \u538b\u7f29\u65e7\u65e5\u5fd7<br \/>\n    delaycompress  # \u5ef6\u8fdf\u538b\u7f29&#xff08;\u907f\u514d\u5f53\u524d\u65e5\u5fd7\u88ab\u538b\u7f29&#xff09;<br \/>\n}\n <\/li>\n<li>\n<p>\u624b\u52a8\u6e05\u7406\u5927\u65e5\u5fd7&#xff1a;<\/p>\n<p> <span class=\"token comment\"># \u6e05\u7a7aNginx\u8bbf\u95ee\u65e5\u5fd7&#xff08;\u4e0d\u5220\u9664\u6587\u4ef6&#xff0c;\u907f\u514d\u670d\u52a1\u627e\u4e0d\u5230\u8def\u5f84&#xff09;<\/span><br \/>\n<span class=\"token function\">cat<\/span> \/dev\/null <span class=\"token operator\">&gt;<\/span> \/var\/log\/nginx\/access.log\n <\/li>\n<\/ul>\n<h5>4.2.2 \u5b9a\u65f6\u4efb\u52a1&#xff08;\u81ea\u52a8\u5316\u8fd0\u7ef4&#xff09;<\/h5>\n<p>\u7528crontab\u8bbe\u7f6e\u6bcf\u65e5\u6570\u636e\u5e93\u5907\u4efd&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u7f16\u8f91\u5b9a\u65f6\u4efb\u52a1<\/span><br \/>\n<span class=\"token function\">crontab<\/span> <span class=\"token parameter variable\">-e<\/span><\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff08;\u6bcf\u5929\u51cc\u66683\u70b9\u5907\u4efdblog_db\u5230\/backup&#xff09;<\/span><br \/>\n<span class=\"token number\">0<\/span> <span class=\"token number\">3<\/span> * * * mysqldump <span class=\"token parameter variable\">-u<\/span> blog_user -p<span class=\"token string\">&#039;Blog&#064;2024&#039;<\/span> blog_db <span class=\"token operator\">&gt;<\/span> \/backup\/blog_db_<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">date<\/span> &#043;<span class=\"token punctuation\">\\\\<\/span>%Y<span class=\"token punctuation\">\\\\<\/span>%m<span class=\"token punctuation\">\\\\<\/span>%d<span class=\"token variable\">)<\/span><\/span>.sql<\/p>\n<hr \/>\n<h3>\u4e94\u3001\u76d1\u63a7\u7bc7&#xff1a;\u4ece \u201c\u88ab\u52a8\u6551\u706b\u201d \u5230 \u201c\u4e3b\u52a8\u9884\u9632\u201d<\/h3>\n<h4>5.1 \u963f\u91cc\u4e91\u539f\u751f\u76d1\u63a7&#xff08;\u5f00\u7bb1\u5373\u7528&#xff09;<\/h4>\n<p>\u963f\u91cc\u4e91\u63d0\u4f9b\u4e86\u4e91\u76d1\u63a7&#xff08;CloudMonitor&#xff09;**\u548c**\u65e5\u5fd7\u670d\u52a1&#xff08;SLS&#xff09;&#xff0c;\u8986\u76d6\u670d\u52a1\u5668\u3001\u6570\u636e\u5e93\u3001\u5e94\u7528\u7684\u5168\u7ef4\u5ea6\u76d1\u63a7\u3002<\/p>\n<h5>5.1.1 \u5173\u952e\u76d1\u63a7\u6307\u6807&#xff08;\u5fc5\u8bbe&#xff01;&#xff09;<\/h5>\n<table>\n<tr>\u76d1\u63a7\u5bf9\u8c61\u6838\u5fc3\u6307\u6807\u544a\u8b66\u9608\u503c&#xff08;\u793a\u4f8b&#xff09;\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u670d\u52a1\u5668<\/td>\n<td>CPU \u4f7f\u7528\u7387<\/td>\n<td>&gt;80% \u6301\u7eed 5 \u5206\u949f<\/td>\n<td>\u9632\u6b62\u9ad8\u8d1f\u8f7d\u5bfc\u81f4\u5e94\u7528\u5361\u987f<\/td>\n<\/tr>\n<tr>\n<td>\u670d\u52a1\u5668<\/td>\n<td>\u5185\u5b58\u4f7f\u7528\u7387<\/td>\n<td>&gt;90% \u6301\u7eed 5 \u5206\u949f<\/td>\n<td>\u907f\u514d OOM&#xff08;\u5185\u5b58\u6ea2\u51fa&#xff09;\u6740\u8fdb\u7a0b<\/td>\n<\/tr>\n<tr>\n<td>\u670d\u52a1\u5668<\/td>\n<td>\u78c1\u76d8\u4f7f\u7528\u7387<\/td>\n<td>&gt;80%<\/td>\n<td>\u9632\u6b62\u65e5\u5fd7 \/ \u6570\u636e\u5e93\u5360\u6ee1\u78c1\u76d8<\/td>\n<\/tr>\n<tr>\n<td>MySQL<\/td>\n<td>\u6162\u67e5\u8be2\u6570<\/td>\n<td>&gt;10 \u6b21 \/ \u5206\u949f<\/td>\n<td>\u4f18\u5316\u67e5\u8be2\u6027\u80fd<\/td>\n<\/tr>\n<tr>\n<td>Nginx<\/td>\n<td>5xx \u9519\u8bef\u7387<\/td>\n<td>&gt;5%<\/td>\n<td>\u5b9a\u4f4d\u5e94\u7528\u5f02\u5e38<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>5.1.2 \u544a\u8b66\u8bbe\u7f6e&#xff08;\u907f\u514d\u6f0f\u62a5&#xff09;<\/h5>\n<ul>\n<li>\u901a\u77e5\u65b9\u5f0f&#xff1a;\u77ed\u4fe1 &#043; \u90ae\u4ef6 &#043; \u9489\u9489\u673a\u5668\u4eba&#xff08;\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u2192\u4e91\u76d1\u63a7\u2192\u544a\u8b66\u89c4\u5219\u2192\u901a\u77e5\u65b9\u5f0f&#xff09;&#xff1b;<\/li>\n<li>\u9608\u503c\u6821\u51c6&#xff1a;\u6839\u636e\u4e1a\u52a1\u7279\u70b9\u8c03\u6574&#xff08;\u5982\u5927\u4fc3\u671f\u95f4 CPU \u9608\u503c\u53ef\u653e\u5bbd\u5230 90%&#xff09;\u3002<\/li>\n<\/ul>\n<h4>5.2 \u81ea\u5b9a\u4e49\u76d1\u63a7&#xff08;\u9ad8\u7ea7\u73a9\u6cd5&#xff09;<\/h4>\n<p>\u5bf9\u4e8e\u9700\u8981\u66f4\u7ec6\u7c92\u5ea6\u76d1\u63a7\u7684\u573a\u666f&#xff0c;\u53ef\u642d\u5efaPrometheus&#043;Grafana\u7ec4\u5408&#xff1a;<\/p>\n<h5>5.2.1 \u5b89\u88c5 Prometheus<\/h5>\n<p><span class=\"token comment\"># \u4e0b\u8f7d\u5e76\u89e3\u538bPrometheus<\/span><br \/>\n<span class=\"token function\">wget<\/span> https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.47.0\/prometheus-2.47.0.linux-amd64.tar.gz<br \/>\n<span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-zxvf<\/span> prometheus-2.47.0.linux-amd64.tar.gz<br \/>\n<span class=\"token function\">mv<\/span> prometheus-2.47.0.linux-amd64 \/opt\/prometheus<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8Prometheus&#xff08;\u76d1\u63a7\u672c\u5730\u670d\u52a1\u5668&#xff09;<\/span><br \/>\n\/opt\/prometheus\/prometheus <span class=\"token parameter variable\">&#8211;config.file<\/span><span class=\"token operator\">&#061;<\/span>\/opt\/prometheus\/prometheus.yml<\/p>\n<h5>5.2.2 \u5b89\u88c5 Grafana&#xff08;\u53ef\u89c6\u5316&#xff09;<\/h5>\n<p><span class=\"token comment\"># \u5b89\u88c5Grafana&#xff08;Ubuntu&#xff09;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-y<\/span> adduser libfontconfig1<br \/>\n<span class=\"token function\">wget<\/span> https:\/\/dl.grafana.com\/oss\/release\/grafana_10.2.0_amd64.deb<br \/>\n<span class=\"token function\">sudo<\/span> dpkg <span class=\"token parameter variable\">-i<\/span> grafana_10.2.0_amd64.deb<br \/>\n<span class=\"token function\">sudo<\/span> systemctl start grafana-server<\/p>\n<h5>5.2.3 \u76d1\u63a7\u6548\u679c<\/h5>\n<p>\u901a\u8fc7 Grafana \u5bfc\u5165\u9884\u5b9a\u4e49\u4eea\u8868\u76d8&#xff08;\u5982 \u201cLinux Server Monitoring\u201d&#xff09;&#xff0c;\u53ef\u5b9e\u65f6\u67e5\u770b&#xff1a;<\/p>\n<ul>\n<li>CPU \u6838\u8d1f\u8f7d\u3001\u5185\u5b58\u4f7f\u7528\u8d8b\u52bf\u3001\u78c1\u76d8 IO \u541e\u5410\u91cf&#xff1b;<\/li>\n<li>Nginx \u8bf7\u6c42\u901f\u7387\u3001MySQL \u8fde\u63a5\u6570\u3001PHP-FPM \u8fdb\u7a0b\u72b6\u6001&#xff1b;<\/li>\n<li>\u81ea\u5b9a\u4e49\u544a\u8b66&#xff08;\u5982 \u201c\u78c1\u76d8\u5269\u4f59\u7a7a\u95f4 &lt; 10G \u65f6\u89e6\u53d1\u901a\u77e5\u201d&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u603b\u7ed3&#xff1a;\u8fd0\u7ef4\u7684\u672c\u8d28\u662f \u201c\u7cfb\u7edf\u5316\u601d\u7ef4\u201d<\/h3>\n<p>\u4ece\u90e8\u7f72\u65f6\u7684\u73af\u5883\u6807\u51c6\u5316&#xff0c;\u5230\u8c03\u8bd5\u65f6\u7684\u95ee\u9898\u5b9a\u4f4d&#xff0c;\u518d\u5230\u8fc1\u79fb\u65f6\u7684\u98ce\u9669\u63a7\u5236&#xff0c;\u7ef4\u62a4\u7684\u65e5\u5e38\u4f18\u5316&#xff0c;\u76d1\u63a7\u7684\u4e3b\u52a8\u9884\u9632 \u2014\u2014 \u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u7684\u8fd0\u7ef4\u4e0d\u662f\u96f6\u6563\u7684\u64cd\u4f5c&#xff0c;\u800c\u662f\u4e00\u5957\u53ef\u590d\u7528\u3001\u53ef\u6269\u5c55\u7684\u7cfb\u7edf\u5316\u6d41\u7a0b\u3002<\/p>\n<p>\u638c\u63e1\u8fd9\u5957\u6d41\u7a0b&#xff0c;\u4f60\u4e0d\u4ec5\u80fd\u89e3\u51b3\u773c\u524d\u7684\u95ee\u9898&#xff0c;\u66f4\u80fd\u6784\u5efa \u201c\u9884\u6d4b &#8211; \u9632\u5fa1 &#8211; \u4fee\u590d\u201d \u7684\u8fd0\u7ef4\u4f53\u7cfb&#xff0c;\u8ba9\u4f60\u7684\u670d\u52a1\u5668\u6210\u4e3a\u4e1a\u52a1\u589e\u957f\u7684 \u201c\u7a33\u5b9a\u57fa\u77f3\u201d\u3002\u6bd5\u7adf&#xff0c;\u6700\u597d\u7684\u8fd0\u7ef4&#xff0c;\u662f\u8ba9\u4e1a\u52a1\u65b9 \u201c\u611f\u53d7\u4e0d\u5230\u8fd0\u7ef4\u7684\u5b58\u5728\u201d\u2014\u2014 \u4f46\u4e00\u65e6\u51fa\u95ee\u9898&#xff0c;\u4f60\u80fd\u7b2c\u4e00\u65f6\u95f4 \u201c\u5316\u9669\u4e3a\u5937\u201d\u3002<\/p>\n<p>\u73b0\u5728&#xff0c;\u662f\u65f6\u5019\u52a8\u624b\u5b9e\u8df5\u4e86&#xff01;\u4ece\u4f60\u7684\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u5f00\u59cb&#xff0c;\u4e00\u6b65\u6b65\u642d\u5efa\u5c5e\u4e8e\u81ea\u5df1\u7684 \u201c\u4e91\u7aef\u6570\u5b57\u5821\u5792\u201d \u5427&#xff5e;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb989\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5728\u4e91\u8ba1\u7b97\u666e\u53ca\u7684\u4eca\u5929\uff0c\u201c\u4e0a\u4e91\u201d \u65e9\u5df2\u4e0d\u662f\u4f01\u4e1a\u7684\u9009\u62e9\u9898\uff0c\u800c\u662f\u5fc5\u7b54\u9898\u3002\u4f46\u4f60\u662f\u5426\u9047\u5230\u8fc7\u8fd9\u4e9b\u573a\u666f\uff1f\u65b0\u8d2d\u7684\u963f\u91cc\u4e91 ECS \u670d\u52a1\u5668\uff0c\u5b89\u88c5\u73af\u5883\u65f6\u53cd\u590d\u62a5\u9519\uff0c\u534a\u5929\u642d\u4e0d\u597d\u4e00\u4e2a WordPress\uff1b\u5e94\u7528\u7a81\u7136\u5d29\u6e83\uff0c\u65e5\u5fd7\u91cc\u5168\u662f\u4e71\u7801\uff0c\u6839\u672c\u4e0d\u77e5\u9053\u4ece\u54ea\u67e5\u8d77\uff1b\u4e1a\u52a1\u589e\u957f\u9700\u8981\u6269\u5bb9\uff0c\u6570\u636e\u8fc1\u79fb\u65f6\u624b\u5fd9\u811a\u4e71\uff0c\u505c\u673a 3 \u5c0f\u65f6\u88ab\u8001\u677f\u9a82\uff1b\u670d\u52a1\u5668\u88ab\u653b\u51fb\u3001\u78c1\u76d8\u7a7a\u95f4\u7206\u4e86\u3001\u6570\u636e\u5e93\u6162\u67e5\u8be2\u2026\u2026 \u6bcf\u5929\u63d0\u5fc3\u540a\u80c6\u3002\u8fd9\u4e9b\u95ee\u9898\u7684\u6838\u5fc3\uff0c\u5728\u4e8e\u7f3a\u4e4f\u7cfb\u7edf\u5316\u7684\u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u80fd\u529b\u3002\u672c\u6587\u5c06\u56f4\u7ed5\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u7684\u90e8\u7f72\u2192\u8c03\u8bd5\u2192\u8fc1\u79fb\u2192\u7ef4\u62a4\u2192\u76d1\u63a7\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,97,61,43,78,44,96],"topic":[],"class_list":["post-43032","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-97","tag-61","tag-43","tag-78","tag-44","tag-96"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/43032.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb989\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5728\u4e91\u8ba1\u7b97\u666e\u53ca\u7684\u4eca\u5929\uff0c\u201c\u4e0a\u4e91\u201d \u65e9\u5df2\u4e0d\u662f\u4f01\u4e1a\u7684\u9009\u62e9\u9898\uff0c\u800c\u662f\u5fc5\u7b54\u9898\u3002\u4f46\u4f60\u662f\u5426\u9047\u5230\u8fc7\u8fd9\u4e9b\u573a\u666f\uff1f\u65b0\u8d2d\u7684\u963f\u91cc\u4e91 ECS \u670d\u52a1\u5668\uff0c\u5b89\u88c5\u73af\u5883\u65f6\u53cd\u590d\u62a5\u9519\uff0c\u534a\u5929\u642d\u4e0d\u597d\u4e00\u4e2a WordPress\uff1b\u5e94\u7528\u7a81\u7136\u5d29\u6e83\uff0c\u65e5\u5fd7\u91cc\u5168\u662f\u4e71\u7801\uff0c\u6839\u672c\u4e0d\u77e5\u9053\u4ece\u54ea\u67e5\u8d77\uff1b\u4e1a\u52a1\u589e\u957f\u9700\u8981\u6269\u5bb9\uff0c\u6570\u636e\u8fc1\u79fb\u65f6\u624b\u5fd9\u811a\u4e71\uff0c\u505c\u673a 3 \u5c0f\u65f6\u88ab\u8001\u677f\u9a82\uff1b\u670d\u52a1\u5668\u88ab\u653b\u51fb\u3001\u78c1\u76d8\u7a7a\u95f4\u7206\u4e86\u3001\u6570\u636e\u5e93\u6162\u67e5\u8be2\u2026\u2026 \u6bcf\u5929\u63d0\u5fc3\u540a\u80c6\u3002\u8fd9\u4e9b\u95ee\u9898\u7684\u6838\u5fc3\uff0c\u5728\u4e8e\u7f3a\u4e4f\u7cfb\u7edf\u5316\u7684\u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u80fd\u529b\u3002\u672c\u6587\u5c06\u56f4\u7ed5\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u7684\u90e8\u7f72\u2192\u8c03\u8bd5\u2192\u8fc1\u79fb\u2192\u7ef4\u62a4\u2192\u76d1\u63a7\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/43032.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-10T08:40:53+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43032.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/43032.html\",\"name\":\"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-10T08:40:53+00:00\",\"dateModified\":\"2025-06-10T08:40:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/43032.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/43032.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/43032.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/43032.html","og_locale":"zh_CN","og_type":"article","og_title":"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb989\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u5728\u4e91\u8ba1\u7b97\u666e\u53ca\u7684\u4eca\u5929\uff0c\u201c\u4e0a\u4e91\u201d \u65e9\u5df2\u4e0d\u662f\u4f01\u4e1a\u7684\u9009\u62e9\u9898\uff0c\u800c\u662f\u5fc5\u7b54\u9898\u3002\u4f46\u4f60\u662f\u5426\u9047\u5230\u8fc7\u8fd9\u4e9b\u573a\u666f\uff1f\u65b0\u8d2d\u7684\u963f\u91cc\u4e91 ECS \u670d\u52a1\u5668\uff0c\u5b89\u88c5\u73af\u5883\u65f6\u53cd\u590d\u62a5\u9519\uff0c\u534a\u5929\u642d\u4e0d\u597d\u4e00\u4e2a WordPress\uff1b\u5e94\u7528\u7a81\u7136\u5d29\u6e83\uff0c\u65e5\u5fd7\u91cc\u5168\u662f\u4e71\u7801\uff0c\u6839\u672c\u4e0d\u77e5\u9053\u4ece\u54ea\u67e5\u8d77\uff1b\u4e1a\u52a1\u589e\u957f\u9700\u8981\u6269\u5bb9\uff0c\u6570\u636e\u8fc1\u79fb\u65f6\u624b\u5fd9\u811a\u4e71\uff0c\u505c\u673a 3 \u5c0f\u65f6\u88ab\u8001\u677f\u9a82\uff1b\u670d\u52a1\u5668\u88ab\u653b\u51fb\u3001\u78c1\u76d8\u7a7a\u95f4\u7206\u4e86\u3001\u6570\u636e\u5e93\u6162\u67e5\u8be2\u2026\u2026 \u6bcf\u5929\u63d0\u5fc3\u540a\u80c6\u3002\u8fd9\u4e9b\u95ee\u9898\u7684\u6838\u5fc3\uff0c\u5728\u4e8e\u7f3a\u4e4f\u7cfb\u7edf\u5316\u7684\u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u7ba1\u7406\u80fd\u529b\u3002\u672c\u6587\u5c06\u56f4\u7ed5\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u7684\u90e8\u7f72\u2192\u8c03\u8bd5\u2192\u8fc1\u79fb\u2192\u7ef4\u62a4\u2192\u76d1\u63a7\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/43032.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-10T08:40:53+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/43032.html","url":"https:\/\/www.wsisp.com\/helps\/43032.html","name":"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-10T08:40:53+00:00","dateModified":"2025-06-10T08:40:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/43032.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/43032.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/43032.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u963f\u91cc\u4e91 Linux \u670d\u52a1\u5668\u5168\u751f\u547d\u5468\u671f\u8fd0\u7ef4\u6307\u5357\uff1a\u4ece\u90e8\u7f72\u5230\u76d1\u63a7\uff0c\u4e00\u7bc7\u641e\u5b9a\u4f60\u7684\u4e91\u7aef \u201c\u6570\u5b57\u57fa\u77f3\u201d"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=43032"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/43032\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=43032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=43032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=43032"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=43032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}