{"id":44702,"date":"2025-06-20T16:30:49","date_gmt":"2025-06-20T08:30:49","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/44702.html"},"modified":"2025-06-20T16:30:49","modified_gmt":"2025-06-20T08:30:49","slug":"%e5%9f%ba%e4%ba%8e-alibaba-linux-%e9%83%a8%e7%bd%b2%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%b9%b6%e9%80%9a%e8%bf%87%e5%9f%9f%e5%90%8d%e8%ae%bf%e9%97%ae%e7%bd%91%e9%a1%b5%e7%9a%84%e8%af%a6%e7%bb%86%e6%93%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/44702.html","title":{"rendered":"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4"},"content":{"rendered":"<p>\u5728\u4f7f\u7528\u672c\u6559\u7a0b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u60a8\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u662f\u64cd\u4f5c\u7cfb\u7edf\u662f Alibaba Linux&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8e CentOS \u7684\u7cfb\u7edf&#xff0c;\u4f7f\u7528\u7684\u662f yum \u5305\u7ba1\u7406\u5de5\u5177&#xff0c;\u800c\u4e0d\u662f apt\u3002\u4ee5\u4e0b\u662f\u57fa\u4e8e Alibaba Linux \u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4&#xff0c;\u5e2e\u52a9\u4f60\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u81ea\u5df1\u5236\u4f5c\u7684\u7f51\u9875\u3002<\/p>\n<hr \/>\n<h2>\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4<\/h2>\n<h4>\u6b65\u9aa4 1&#xff1a;\u57df\u540d\u89e3\u6790<\/h4>\n<p>\u57df\u540d\u89e3\u6790\u662f\u5c06\u57df\u540d&#xff08;\u5982www.example.com&#xff09;\u6307\u5411\u670d\u52a1\u5668\u7684IP\u5730\u5740&#xff0c;\u8ba9\u6d4f\u89c8\u5668\u77e5\u9053\u8be5\u57df\u540d\u5bf9\u5e94\u7684\u670d\u52a1\u5668\u4f4d\u7f6e\u3002<\/p>\n<h5>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u767b\u5f55\u963f\u91cc\u4e91\u63a7\u5236\u53f0&#xff1a;<\/p>\n<ul>\n<li>\u8fdb\u5165\u963f\u91cc\u4e91\u5b98\u7f51&#xff0c;\u767b\u5f55\u63a7\u5236\u53f0\u3002<\/li>\n<li>\u627e\u5230 \u201c\u57df\u540d\u89e3\u6790\u201d \u6216 \u201c\u4e91\u89e3\u6790DNS\u201d \u670d\u52a1\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u89e3\u6790\u8bb0\u5f55&#xff1a;<\/p>\n<ul>\n<li>\u5728\u57df\u540d\u89e3\u6790\u9875\u9762&#xff0c;\u9009\u62e9\u4f60\u7684\u57df\u540d\u3002<\/li>\n<li>\u6dfb\u52a0\u89e3\u6790\u8bb0\u5f55&#xff0c;\u901a\u5e38\u9700\u8981\u4ee5\u4e0b\u4fe1\u606f&#xff1a;\n<ul>\n<li>\u8bb0\u5f55\u7c7b\u578b&#xff1a;\u9009\u62e9 A \u8bb0\u5f55&#xff08;IPv4\u5730\u5740&#xff09;\u3002<\/li>\n<li>\u4e3b\u673a\u8bb0\u5f55&#xff1a;\u586b\u5199 &#064;&#xff08;\u8868\u793a\u4e3b\u57df\u540d&#xff09;\u6216 www&#xff08;\u8868\u793awww.\u57df\u540d&#xff09;\u3002<\/li>\n<li>\u8bb0\u5f55\u503c&#xff1a;\u586b\u5199\u4f60\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740\u3002<\/li>\n<li>TTL&#xff1a;\u53ef\u4ee5\u4f7f\u7528\u9ed8\u8ba4\u503c&#xff08;\u598210\u5206\u949f&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u6216\u201c\u6dfb\u52a0\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620083045-68551c3513466.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620083046-68551c36333fb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620083047-68551c3743079.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\u7b49\u5f85\u89e3\u6790\u751f\u6548&#xff1a;\n<ul>\n<li>\u57df\u540d\u89e3\u6790\u751f\u6548\u53ef\u80fd\u9700\u8981\u4e00\u6bb5\u65f6\u95f4&#xff08;\u901a\u5e38\u51e0\u5206\u949f\u523048\u5c0f\u65f6\u4e0d\u7b49&#xff09;&#xff0c;\u5177\u4f53\u53d6\u51b3\u4e8eDNS\u7f13\u5b58\u548c\u89e3\u6790\u670d\u52a1\u5546\u3002<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h4>\u6b65\u9aa4 2&#xff1a;\u914d\u7f6e\u670d\u52a1\u5668<\/h4>\n<p>\u786e\u4fdd\u670d\u52a1\u5668\u5141\u8bb8\u5916\u90e8\u8bbf\u95ee&#xff0c;\u5e76\u4e14\u7f51\u7ad9\u670d\u52a1\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<h5>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u767b\u5f55\u670d\u52a1\u5668&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528 SSH \u5de5\u5177&#xff08;\u5982 PuTTY \u6216\u7ec8\u7aef&#xff09;\u901a\u8fc7\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740\u767b\u5f55\u5230\u670d\u52a1\u5668\u3002<\/li>\n<li>\u793a\u4f8b\u547d\u4ee4&#xff1a;<span class=\"token function\">ssh<\/span> root&#064;your_server_ip\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5b89\u88c5 Web \u670d\u52a1\u5668&#xff1a;<\/p>\n<ul>\n<li>Alibaba Linux \u9ed8\u8ba4\u4f7f\u7528 yum \u5305\u7ba1\u7406\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5 Apache \u6216 Nginx\u3002\n<ul>\n<li>\u5b89\u88c5 Apache&#xff1a;<span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> httpd <span class=\"token parameter variable\">-y<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl start httpd<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> httpd\n <\/li>\n<li>\u5b89\u88c5 Nginx&#xff1a;<span class=\"token function\">sudo<\/span> yum <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\n <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u914d\u7f6e\u9632\u706b\u5899&#xff1a;<\/p>\n<ul>\n<li>Alibaba Linux \u9ed8\u8ba4\u4f7f\u7528 firewalld \u800c\u4e0d\u662f ufw\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5141\u8bb8 HTTP \u548c HTTPS \u6d41\u91cf&#xff1a;<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-service<span class=\"token operator\">&#061;<\/span>http<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-service<span class=\"token operator\">&#061;<\/span>https<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span>\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u914d\u7f6e Web \u670d\u52a1\u5668&#xff1a;<\/p>\n<ul>\n<li>Apache \u914d\u7f6e\u793a\u4f8b&#xff1a;\n<ul>\n<li>\u7f16\u8f91 \/etc\/httpd\/conf\/httpd.conf&#xff0c;\u786e\u4fdd DocumentRoot \u6307\u5411\u4f60\u7684\u7f51\u9875\u76ee\u5f55&#xff08;\u5982 \/var\/www\/html&#xff09;\u3002<\/li>\n<li>\u91cd\u542f Apache \u670d\u52a1&#xff1a;<span class=\"token function\">sudo<\/span> systemctl restart httpd\n <\/li>\n<\/ul>\n<\/li>\n<li>Nginx \u914d\u7f6e\u793a\u4f8b&#xff1a;\n<ul>\n<li>\u7f16\u8f91 \/etc\/nginx\/nginx.conf \u6216 \/etc\/nginx\/conf.d\/ \u4e0b\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5c06 root \u6307\u5411\u4f60\u7684\u7f51\u9875\u76ee\u5f55&#xff08;\u5982 \/usr\/share\/nginx\/html&#xff09;\u3002<\/li>\n<li>\u91cd\u542f Nginx \u670d\u52a1&#xff1a;<span class=\"token function\">sudo<\/span> systemctl restart nginx\n <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<h5>\u63a5\u4e0b\u6765\u4ee5nginx\u4e3a\u4f8b\u8bf4\u660e\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u6b65\u9aa4&#xff1a;<\/h5>\n<p>\u914d\u7f6e Nginx \u6765\u6307\u5411\u4f60\u7684\u7f51\u9875\u76ee\u5f55\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u8fc7\u7a0b\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u64cd\u4f5c\u6b65\u9aa4&#xff0c;\u5e2e\u52a9\u4f60\u5b8c\u6210 Nginx \u7684\u914d\u7f6e&#xff0c;\u4ee5\u4fbf\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u4f60\u7684\u7f51\u9875\u3002<\/p>\n<h5>1&#xff1a;\u7f16\u8f91 Nginx \u914d\u7f6e\u6587\u4ef6<\/h5>\n<p>Nginx \u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e \/etc\/nginx\/nginx.conf \u6216 \/etc\/nginx\/conf.d\/ \u76ee\u5f55\u4e0b\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u76f4\u63a5\u7f16\u8f91\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u6216\u8005\u5728 \/etc\/nginx\/conf.d\/ \u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6&#xff08;\u63a8\u8350&#xff09;\u3002<\/p>\n<h6>1.1 \u6253\u5f00\u914d\u7f6e\u6587\u4ef6<\/h6>\n<li>\n<p>\u76f4\u63a5\u7f16\u8f91\u4e3b\u914d\u7f6e\u6587\u4ef6&#xff08;\u4e0d\u63a8\u8350&#xff0c;\u9664\u975e\u4f60\u719f\u6089 Nginx \u914d\u7f6e&#xff09;&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/nginx.conf<\/p>\n<p>\u6216\u8005\u4f7f\u7528\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668&#xff08;\u5982 vi \u6216 gedit&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6&#xff08;\u63a8\u8350&#xff09;&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/conf.d\/your_domain.conf<\/p>\n<p>\u5c06 your_domain.conf \u66ff\u6362\u4e3a\u4f60\u7684\u57df\u540d\u6216\u9879\u76ee\u540d\u79f0&#xff0c;\u4f8b\u5982 example.com.conf\u3002<\/p>\n<\/li>\n<p>\u5982\u679c\u7cfb\u7edf\u4e2d\u6ca1\u6709\u5b89\u88c5 nano \u7f16\u8f91\u5668&#xff0c;\u4f60\u53ef\u4ee5\u9009\u62e9\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668\u6765\u7f16\u8f91\u6587\u4ef6\u3002\u5e38\u89c1\u7684\u66ff\u4ee3\u5de5\u5177\u5305\u62ec vi \u6216 vim&#xff0c;\u5b83\u4eec\u662f\u5927\u591a\u6570 Linux \u7cfb\u7edf\u9ed8\u8ba4\u5b89\u88c5\u7684\u7f16\u8f91\u5668\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528 vi \u6216 vim \u7f16\u8f91\u5668\u7684\u7b80\u5355\u6307\u5357\u3002<\/p>\n<h5>\u4f7f\u7528 vi \u6216 vim \u7f16\u8f91\u5668<\/h5>\n<h6>** \u6253\u5f00\u6587\u4ef6**<\/h6>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u9700\u8981\u7f16\u8f91\u7684\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vi<\/span> \/etc\/nginx\/conf.d\/your_domain.conf<\/p>\n<p>\u6216\u8005&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/nginx\/conf.d\/your_domain.conf<\/p>\n<h6>** \u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f**<\/h6>\n<ul>\n<li>vi \u548c vim \u9ed8\u8ba4\u5904\u4e8e\u547d\u4ee4\u6a21\u5f0f&#xff0c;\u9700\u8981\u6309\u4e0b i \u952e\u8fdb\u5165\u63d2\u5165\u6a21\u5f0f&#xff08;\u7f16\u8f91\u6a21\u5f0f&#xff09;&#xff0c;\u624d\u80fd\u7f16\u8f91\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h6>** \u7f16\u8f91\u6587\u4ef6**<\/h6>\n<ul>\n<li>\u5728\u63d2\u5165\u6a21\u5f0f\u4e0b&#xff0c;\u4f60\u53ef\u4ee5\u50cf\u5728\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u4e00\u6837\u7f16\u8f91\u6587\u4ef6\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<h6>\u4fdd\u5b58\u5e76\u9000\u51fa<\/h6>\n<ul>\n<li>\u5b8c\u6210\u7f16\u8f91\u540e&#xff0c;\u6309\u4e0b Esc \u952e\u9000\u51fa\u63d2\u5165\u6a21\u5f0f\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa&#xff1a;:wq\n<ul>\n<li>:w \u8868\u793a\u4fdd\u5b58\u6587\u4ef6\u3002<\/li>\n<li>q \u8868\u793a\u9000\u51fa\u7f16\u8f91\u5668\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h6>\u5f3a\u5236\u9000\u51fa&#xff08;\u5982\u679c\u9700\u8981&#xff09;<\/h6>\n<ul>\n<li>\u5982\u679c\u4f60\u4e0d\u60f3\u4fdd\u5b58\u66f4\u6539&#xff0c;\u53ef\u4ee5\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5f3a\u5236\u9000\u51fa&#xff1a;:q<span class=\"token operator\">!<\/span>\n <\/li>\n<\/ul>\n<hr \/>\n<h5>\u5176\u4ed6\u6587\u672c\u7f16\u8f91\u5668<\/h5>\n<p>\u5982\u679c\u4f60\u66f4\u559c\u6b22\u56fe\u5f62\u754c\u9762\u7684\u7f16\u8f91\u5668&#xff0c;\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5176\u4ed6\u5de5\u5177&#xff0c;\u4f8b\u5982 gedit \u6216 nano\u3002<\/p>\n<h6>\u5b89\u88c5 nano<\/h6>\n<p>\u5982\u679c\u4f60\u5e0c\u671b\u4f7f\u7528 nano&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> <span class=\"token function\">nano<\/span> <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u5c31\u53ef\u4ee5\u4f7f\u7528 nano \u7f16\u8f91\u6587\u4ef6\u4e86\u3002<\/p>\n<h6>\u5b89\u88c5 gedit<\/h6>\n<p>\u5982\u679c\u4f60\u66f4\u559c\u6b22\u56fe\u5f62\u754c\u9762\u7684\u7f16\u8f91\u5668&#xff0c;\u53ef\u4ee5\u5b89\u88c5 gedit&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> gedit <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u6587\u4ef6&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> gedit \/etc\/nginx\/conf.d\/your_domain.conf<\/p>\n<hr \/>\n<h5>\u7f16\u8f91\u5668\u5c0f\u7ed3<\/h5>\n<ul>\n<li>\u5982\u679c\u7cfb\u7edf\u4e2d\u6ca1\u6709 nano&#xff0c;\u53ef\u4ee5\u4f7f\u7528 vi \u6216 vim \u7f16\u8f91\u5668\u3002<\/li>\n<li>\u5982\u679c\u4f60\u66f4\u559c\u6b22\u5176\u4ed6\u7f16\u8f91\u5668&#xff0c;\u53ef\u4ee5\u901a\u8fc7 yum \u5b89\u88c5\u5b83\u4eec\u3002<\/li>\n<li>\u638c\u63e1 vi \u6216 vim \u7684\u57fa\u672c\u64cd\u4f5c\u662f\u5f88\u6709\u7528\u7684&#xff0c;\u56e0\u4e3a\u5b83\u4eec\u51e0\u4e4e\u5728\u6240\u6709 Linux \u7cfb\u7edf\u4e0a\u90fd\u9ed8\u8ba4\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<hr \/>\n<h5>\u6b65\u9aa4 2&#xff1a;\u914d\u7f6e Nginx<\/h5>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d&#xff0c;\u4f60\u9700\u8981\u6307\u5b9a server \u5757&#xff0c;\u5b9a\u4e49\u4f60\u7684\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\u3001\u76d1\u542c\u7aef\u53e3\u3001\u57df\u540d\u7b49\u4fe1\u606f\u3002<\/p>\n<h6>2.1 \u793a\u4f8b\u914d\u7f6e<\/h6>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5178\u578b\u7684 Nginx \u914d\u7f6e\u793a\u4f8b&#xff0c;\u5047\u8bbe\u4f60\u7684\u7f51\u9875\u6587\u4ef6\u5b58\u653e\u5728 \/usr\/share\/nginx\/html \u76ee\u5f55\u4e0b&#xff1a;<\/p>\n<p>server {<br \/>\n    listen 80;                # \u76d1\u542c HTTP \u7aef\u53e3<br \/>\n    server_name your_domain;  # \u66ff\u6362\u4e3a\u4f60\u7684\u57df\u540d&#xff0c;\u5982 example.com \u6216 www.example.com<br \/>\n    root \/usr\/share\/nginx\/html;  # \u7f51\u9875\u6587\u4ef6\u5b58\u653e\u7684\u76ee\u5f55<br \/>\n    index index.html index.htm;  # \u9ed8\u8ba4\u7684\u9996\u9875\u6587\u4ef6<\/p>\n<p>    # \u914d\u7f6e\u9759\u6001\u6587\u4ef6\u7684\u8bbf\u95ee\u89c4\u5219<br \/>\n    location \/ {<br \/>\n        try_files $uri $uri\/ &#061;404;<br \/>\n    }<\/p>\n<p>    # \u53ef\u9009&#xff1a;\u914d\u7f6e\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84<br \/>\n    access_log \/var\/log\/nginx\/your_domain.access.log;<br \/>\n    error_log \/var\/log\/nginx\/your_domain.error.log;<br \/>\n}<\/p>\n<h6>2.2 \u8bf4\u660e<\/h6>\n<ul>\n<li>listen 80;&#xff1a;\u8868\u793a Nginx \u76d1\u542c 80 \u7aef\u53e3&#xff08;HTTP&#xff09;\u3002<\/li>\n<li>server_name&#xff1a;\u586b\u5199\u4f60\u7684\u57df\u540d\u6216 IP \u5730\u5740&#xff0c;\u5982\u679c\u6709\u591a\u4e2a\u57df\u540d&#xff0c;\u53ef\u4ee5\u7528\u7a7a\u683c\u5206\u9694\u3002<\/li>\n<li>root&#xff1a;\u6307\u5b9a\u4f60\u7684\u7f51\u9875\u6587\u4ef6\u5b58\u653e\u7684\u76ee\u5f55\u3002<\/li>\n<li>index&#xff1a;\u6307\u5b9a\u9ed8\u8ba4\u7684\u9996\u9875\u6587\u4ef6&#xff0c;\u4f8b\u5982 index.html\u3002<\/li>\n<li>location \/&#xff1a;\u5b9a\u4e49\u8bbf\u95ee\u7f51\u7ad9\u6839\u8def\u5f84\u65f6\u7684\u884c\u4e3a&#xff0c;try_files \u7528\u4e8e\u5c1d\u8bd5\u52a0\u8f7d\u6587\u4ef6&#xff0c;\u5982\u679c\u627e\u4e0d\u5230\u5219\u8fd4\u56de 404 \u9519\u8bef\u3002<\/li>\n<\/ul>\n<hr \/>\n<h5>\u6b65\u9aa4 3&#xff1a;\u4fdd\u5b58\u5e76\u6d4b\u8bd5\u914d\u7f6e<\/h5>\n<li>\n<p>\u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f nano&#xff0c;\u6309 Ctrl &#043; X&#xff0c;\u7136\u540e\u6309 Y \u4fdd\u5b58&#xff0c;\u6700\u540e\u6309 Enter\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u68c0\u67e5 Nginx \u914d\u7f6e\u6587\u4ef6\u8bed\u6cd5\u662f\u5426\u6b63\u786e&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> nginx <span class=\"token parameter variable\">-t<\/span><\/p>\n<p>\u5982\u679c\u8f93\u51fa\u663e\u793a syntax is ok \u548c test is successful&#xff0c;\u8bf4\u660e\u914d\u7f6e\u6587\u4ef6\u6ca1\u6709\u8bed\u6cd5\u9519\u8bef\u3002<\/p>\n<\/li>\n<li>\n<p>\u91cd\u65b0\u52a0\u8f7d Nginx \u4ee5\u5e94\u7528\u914d\u7f6e&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> systemctl reload nginx\n <\/li>\n<hr \/>\n<h5>\u6b65\u9aa4 4&#xff1a;\u4e0a\u4f20\u7f51\u9875\u6587\u4ef6<\/h5>\n<p>\u5c06\u4f60\u7684\u7f51\u9875\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684 \/usr\/share\/nginx\/html \u76ee\u5f55\u4e0b\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528 SCP \u547d\u4ee4&#xff1a;<span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> \/path\/to\/your\/webpage root&#064;your_server_ip:\/usr\/share\/nginx\/html\n <\/li>\n<li>\u4f7f\u7528 FTP \u5de5\u5177&#xff08;\u5982 FileZilla&#xff09;&#xff1a;\n<ul>\n<li>\u8fde\u63a5\u5230\u670d\u52a1\u5668&#xff0c;\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230 \/usr\/share\/nginx\/html \u76ee\u5f55\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h5>\u6b65\u9aa4 5&#xff1a;\u6d4b\u8bd5\u8bbf\u95ee<\/h5>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8f93\u5165\u4f60\u7684\u57df\u540d&#xff08;\u5982 www.example.com&#xff09;&#xff0c;\u67e5\u770b\u7f51\u9875\u662f\u5426\u6b63\u5e38\u663e\u793a\u3002<\/p>\n<h6>\u5982\u679c\u7f51\u9875\u65e0\u6cd5\u663e\u793a<\/h6>\n<li>\u786e\u4fdd\u57df\u540d\u89e3\u6790\u751f\u6548\u3002<\/li>\n<li>\u786e\u4fdd\u670d\u52a1\u5668\u9632\u706b\u5899\u548c\u5b89\u5168\u7ec4\u89c4\u5219\u5141\u8bb8 HTTP \u6d41\u91cf&#xff08;80 \u7aef\u53e3&#xff09;\u3002<\/li>\n<li>\u68c0\u67e5 Nginx \u7684\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/nginx\/error.log<br \/>\n \u6839\u636e\u65e5\u5fd7\u4fe1\u606f\u6392\u67e5\u95ee\u9898\u3002<\/li>\n<hr \/>\n<h4>\u6b65\u9aa4 3&#xff1a;\u90e8\u7f72\u7f51\u9875<\/h4>\n<p>\u5c06\u4f60\u7684\u7f51\u9875\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u6307\u5b9a\u76ee\u5f55\u3002<\/p>\n<h5>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\n<p>\u4e0a\u4f20\u7f51\u9875\u6587\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u4f7f\u7528 FTP \u5de5\u5177&#xff08;\u5982 FileZilla&#xff09;\u6216 SCP \u547d\u4ee4\u5c06\u7f51\u9875\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684\u7f51\u9875\u76ee\u5f55&#xff08;\u5982 \/var\/www\/html \u6216 \/usr\/share\/nginx\/html&#xff09;\u3002<\/li>\n<li>\u793a\u4f8b\u547d\u4ee4&#xff1a;<span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> \/path\/to\/your\/webpage root&#064;your_server_ip:\/var\/www\/html\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650&#xff1a;<\/p>\n<ul>\n<li>\u786e\u4fdd\u7f51\u9875\u6587\u4ef6\u7684\u6743\u9650\u6b63\u786e&#xff0c;Web \u670d\u52a1\u5668\u53ef\u4ee5\u8bbf\u95ee\u5b83\u4eec\u3002<\/li>\n<li>\u793a\u4f8b\u547d\u4ee4&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> apache:apache \/var\/www\/html    <span class=\"token comment\"># \u5bf9\u4e8e Apache<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> nginx:nginx \/usr\/share\/nginx\/html    <span class=\"token comment\"># \u5bf9\u4e8e Nginx<\/span><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\/html    <span class=\"token comment\"># \u6216 \/usr\/share\/nginx\/html<\/span>\n <\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h4>\u6b65\u9aa4 4&#xff1a;\u6d4b\u8bd5\u8bbf\u95ee<\/h4>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u4f60\u7684\u57df\u540d&#xff0c;\u67e5\u770b\u7f51\u9875\u662f\u5426\u6b63\u5e38\u663e\u793a\u3002<\/p>\n<h5>\u6d4b\u8bd5\u65b9\u6cd5&#xff1a;<\/h5>\n<li>\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\u4f60\u7684\u57df\u540d&#xff08;\u5982 www.example.com&#xff09;\u3002<\/li>\n<li>\u5982\u679c\u7f51\u9875\u6b63\u5e38\u663e\u793a&#xff0c;\u8bf4\u660e\u914d\u7f6e\u6210\u529f\u3002<\/li>\n<li>\u5982\u679c\u65e0\u6cd5\u8bbf\u95ee&#xff0c;\u68c0\u67e5\u4ee5\u4e0b\u5185\u5bb9&#xff1a;\n<ul>\n<li>\u57df\u540d\u89e3\u6790\u662f\u5426\u751f\u6548\u3002<\/li>\n<li>\u670d\u52a1\u5668\u9632\u706b\u5899\u662f\u5426\u5141\u8bb8 HTTP\/HTTPS \u6d41\u91cf\u3002<\/li>\n<li>Web \u670d\u52a1\u5668\u914d\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/li>\n<li>\u7f51\u9875\u6587\u4ef6\u662f\u5426\u6b63\u786e\u4e0a\u4f20\u5230\u6307\u5b9a\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h4>\u6b65\u9aa4 5&#xff1a;\u786e\u4fdd\u5b89\u5168\u7ec4\u89c4\u5219\u5141\u8bb8\u6d41\u91cf<\/h4>\n<p>\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u4e2d&#xff0c;\u786e\u4fdd\u670d\u52a1\u5668\u7684\u5b89\u5168\u7ec4\u89c4\u5219\u5141\u8bb8 HTTP&#xff08;80\u7aef\u53e3&#xff09;\u548c HTTPS&#xff08;443\u7aef\u53e3&#xff09;\u6d41\u91cf\u3002<\/p>\n<h5>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/h5>\n<li>\u767b\u5f55\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u3002<\/li>\n<li>\u8fdb\u5165 \u201cECS&#xff08;Elastic Compute Service&#xff09;\u201d \u670d\u52a1\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u83dc\u5355\u4e2d\u9009\u62e9 \u201c\u5b89\u5168\u7ec4\u201d\u3002<\/li>\n<li>\u627e\u5230\u4f60\u7684\u670d\u52a1\u5668\u6240\u5c5e\u7684\u5b89\u5168\u7ec4&#xff0c;\u70b9\u51fb\u201c\u914d\u7f6e\u89c4\u5219\u201d\u3002<\/li>\n<li>\u5728\u201c\u5165\u65b9\u5411\u201d\u89c4\u5219\u4e2d&#xff0c;\u6dfb\u52a0\u4ee5\u4e0b\u89c4\u5219&#xff1a;\n<ul>\n<li>\u534f\u8bae\u7c7b\u578b&#xff1a;TCP<\/li>\n<li>\u7aef\u53e3\u8303\u56f4&#xff1a;80&#xff08;HTTP&#xff09;\u548c443&#xff08;HTTPS&#xff09;<\/li>\n<li>\u6388\u6743\u5bf9\u8c61&#xff1a;0.0.0.0\/0&#xff08;\u5141\u8bb8\u6240\u6709IP\u8bbf\u95ee&#xff0c;\u751f\u4ea7\u73af\u5883\u4e2d\u5efa\u8bae\u9650\u5236\u4e3a\u7279\u5b9aIP\u8303\u56f4&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<hr \/>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u4f60\u53ef\u4ee5\u5b8c\u6210\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668\u914d\u7f6e\u3001\u7f51\u7ad9\u90e8\u7f72\u548c\u8bbf\u95ee\u6d4b\u8bd5\u3002\u5982\u679c\u5728\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898&#xff0c;\u53ef\u4ee5\u53c2\u8003\u963f\u91cc\u4e91\u7684\u5b98\u65b9\u6587\u6863\u6216\u8054\u7cfb\u6280\u672f\u652f\u6301\u83b7\u53d6\u5e2e\u52a9\u3002<\/p>\n<h2>\u53ef\u80fd\u51fa\u73b0\u7684\u95ee\u9898\u4ee5\u53ca\u89e3\u51b3\u65b9\u6848&#xff1a;<\/h2>\n<h3>\u9632\u706b\u5899\u914d\u7f6e\u65f6\u663e\u793aFirewallD is not running<\/h3>\n<p>\u5982\u679c\u5728 Alibaba Linux \u7cfb\u7edf\u4e2d\u9047\u5230\u201cFirewallD is not running\u201d\u9519\u8bef&#xff0c;\u8bf4\u660e\u9632\u706b\u5899\u670d\u52a1\u672a\u542f\u52a8\u3002\u4ee5\u4e0b\u662f\u89e3\u51b3\u65b9\u6cd5&#xff1a;<\/p>\n<h4>1. \u68c0\u67e5\u9632\u706b\u5899\u662f\u5426\u5df2\u5b89\u88c5<\/h4>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5 firewalld \u662f\u5426\u5df2\u5b89\u88c5&#xff1a;<\/p>\n<p>firewall-cmd <span class=\"token parameter variable\">&#8211;version<\/span><\/p>\n<p>\u5982\u679c\u8fd4\u56de\u7248\u672c\u4fe1\u606f&#xff0c;\u5219\u8868\u793a\u5df2\u5b89\u88c5&#xff1b;\u5982\u679c\u63d0\u793a\u547d\u4ee4\u672a\u627e\u5230&#xff0c;\u9700\u8981\u5148\u5b89\u88c5\u9632\u706b\u5899\u3002<\/p>\n<h4>2. \u5b89\u88c5 firewalld<\/h4>\n<p>\u5982\u679c\u672a\u5b89\u88c5&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> firewalld <span class=\"token parameter variable\">-y<\/span><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u5373\u53ef\u542f\u52a8\u9632\u706b\u5899\u3002<\/p>\n<h4>3. \u542f\u52a8\u9632\u706b\u5899<\/h4>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 firewalld&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start firewalld<\/p>\n<p>\u5982\u679c\u9700\u8981\u5728\u6bcf\u6b21\u5f00\u673a\u65f6\u81ea\u52a8\u542f\u52a8\u9632\u706b\u5899&#xff0c;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> firewalld<\/p>\n<h4>4. \u68c0\u67e5\u9632\u706b\u5899\u72b6\u6001<\/h4>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u9632\u706b\u5899\u662f\u5426\u5df2\u6210\u529f\u542f\u52a8&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status firewalld<\/p>\n<p>\u5982\u679c\u72b6\u6001\u663e\u793a\u4e3a\u201cactive (running)\u201d&#xff0c;\u5219\u8868\u793a\u9632\u706b\u5899\u5df2\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<h4>5. \u914d\u7f6e\u9632\u706b\u5899\u89c4\u5219<\/h4>\n<p>\u5982\u679c\u9632\u706b\u5899\u5df2\u542f\u52a8&#xff0c;\u4f46\u9700\u8981\u6dfb\u52a0\u89c4\u5219&#xff08;\u5982\u5141\u8bb8 HTTP \u6216 HTTPS \u6d41\u91cf&#xff09;&#xff0c;\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">&#061;<\/span>public &#8211;add-service<span class=\"token operator\">&#061;<\/span>http <span class=\"token parameter variable\">&#8211;permanent<\/span><br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;zone<\/span><span class=\"token operator\">&#061;<\/span>public &#8211;add-service<span class=\"token operator\">&#061;<\/span>https <span class=\"token parameter variable\">&#8211;permanent<\/span><br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/p>\n<p>\u8fd9\u4e9b\u547d\u4ee4\u4f1a\u6c38\u4e45\u5141\u8bb8 HTTP \u548c HTTPS \u6d41\u91cf&#xff0c;\u5e76\u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899\u914d\u7f6e\u3002<\/p>\n<h4>6. \u5982\u679c\u95ee\u9898\u4ecd\u672a\u89e3\u51b3<\/h4>\n<ul>\n<li>\u786e\u4fdd\u7cfb\u7edf\u5df2\u6b63\u786e\u5b89\u88c5 firewalld\u3002<\/li>\n<li>\u68c0\u67e5\u662f\u5426\u6709\u5176\u4ed6\u9632\u706b\u5899\u5de5\u5177&#xff08;\u5982 iptables&#xff09;\u51b2\u7a81\u3002<\/li>\n<li>\u5982\u679c\u4e0d\u9700\u8981\u9632\u706b\u5899&#xff0c;\u53ef\u4ee5\u9009\u62e9\u5173\u95ed\u5b83&#xff1a;<span class=\"token function\">sudo<\/span> systemctl stop firewalld<br \/>\n<span class=\"token function\">sudo<\/span> systemctl disable firewalld\n <\/li>\n<\/ul>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e&#xff0c;\u9632\u706b\u5899\u5e94\u8be5\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c&#xff0c;\u5e76\u5141\u8bb8\u4f60\u8bbe\u7f6e\u7684\u6d41\u91cf\u901a\u8fc7\u3002<\/p>\n<h3>\u6784\u9020scp\u547d\u4ee4\u5c06\u672c\u5730\u7f51\u9875\u6587\u4ef6\u4e0a\u4f20\u81f3\u670d\u52a1\u5668<\/h3>\n<p>\u4f7f\u7528 scp \u547d\u4ee4\u5c06\u672c\u5730\u7684\u7f51\u9875\u6587\u4ef6\u4e0a\u4f20\u5230\u963f\u91cc\u4e91\u670d\u52a1\u5668\u7684 \/usr\/share\/nginx\/html \u76ee\u5f55\u65f6&#xff0c;\u4f60\u9700\u8981\u660e\u786e\u4ee5\u4e0b\u51e0\u70b9&#xff1a;<\/p>\n<li>\u672c\u5730\u7f51\u9875\u6587\u4ef6\u7684\u8def\u5f84&#xff1a;\u8fd9\u662f\u4f60\u672c\u5730\u8ba1\u7b97\u673a\u4e0a\u5b58\u653e\u7f51\u9875\u6587\u4ef6\u7684\u76ee\u5f55\u8def\u5f84\u3002<\/li>\n<li>\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740&#xff1a;\u8fd9\u662f\u4f60\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u4e2d\u5206\u914d\u7ed9\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740\u3002<\/li>\n<li>\u670d\u52a1\u5668\u7684\u7528\u6237\u540d&#xff1a;\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Alibaba Linux \u7684\u7528\u6237\u540d\u53ef\u80fd\u662f root&#xff0c;\u4f46\u4e5f\u53ef\u80fd\u662f\u5176\u4ed6\u7528\u6237&#xff08;\u5982 ec2-user \u6216 centos&#xff0c;\u53d6\u51b3\u4e8e\u4f60\u7684\u7cfb\u7edf\u8bbe\u7f6e&#xff09;\u3002<\/li>\n<p>\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u547d\u4ee4\u683c\u5f0f\u548c\u6b65\u9aa4&#xff1a;<\/p>\n<hr \/>\n<h4>1. \u786e\u5b9a\u672c\u5730\u7f51\u9875\u6587\u4ef6\u8def\u5f84<\/h4>\n<p>\u5047\u8bbe\u4f60\u7684\u672c\u5730\u7f51\u9875\u6587\u4ef6\u5b58\u653e\u5728\u4ee5\u4e0b\u8def\u5f84&#xff1a;<\/p>\n<ul>\n<li>Windows&#xff1a;C:\\\\Users\\\\\u4f60\u7684\u7528\u6237\u540d\\\\Documents\\\\my_website<\/li>\n<li>Mac\/Linux&#xff1a;\/home\/\u4f60\u7684\u7528\u6237\u540d\/my_website<\/li>\n<\/ul>\n<p>\u5c06\u8def\u5f84\u4e2d\u7684\u7a7a\u683c\u66ff\u6362\u4e3a \\\\ &#xff08;\u53cd\u659c\u6760\u52a0\u7a7a\u683c&#xff09;&#xff0c;\u6216\u8005\u7528\u5f15\u53f7\u62ec\u8d77\u6765&#xff0c;\u4ee5\u907f\u514d\u8def\u5f84\u89e3\u6790\u9519\u8bef\u3002<\/p>\n<hr \/>\n<h4>2. \u786e\u5b9a\u670d\u52a1\u5668\u4fe1\u606f<\/h4>\n<ul>\n<li>\u670d\u52a1\u5668\u7684\u516c\u7f51IP\u5730\u5740&#xff1a;\u4f8b\u5982 192.168.1.1&#xff08;\u66ff\u6362\u4e3a\u4f60\u7684\u5b9e\u9645IP\u5730\u5740&#xff09;\u3002<\/li>\n<li>\u670d\u52a1\u5668\u7684\u7528\u6237\u540d&#xff1a;\u901a\u5e38\u662f root&#xff0c;\u4f46\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u662f Alibaba Linux&#xff0c;\u4e5f\u53ef\u80fd\u662f ec2-user \u6216\u5176\u4ed6\u7528\u6237\u540d\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>3. \u6784\u9020 scp \u547d\u4ee4<\/h4>\n<p>\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u547d\u4ee4\u683c\u5f0f&#xff1a;<\/p>\n<p><span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> \/path\/to\/your\/webpage root&#064;your_server_ip:\/usr\/share\/nginx\/html<\/p>\n<h5>\u5177\u4f53\u793a\u4f8b<\/h5>\n<p>\u5047\u8bbe\u4f60\u7684\u672c\u5730\u8def\u5f84\u662f \/home\/your_username\/my_website&#xff0c;\u670d\u52a1\u5668IP\u5730\u5740\u662f 192.168.1.1&#xff0c;\u7528\u6237\u540d\u662f root&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> \/home\/your_username\/my_website root&#064;192.168.1.1:\/usr\/share\/nginx\/html<\/p>\n<h5>\u5982\u679c\u8def\u5f84\u4e2d\u6709\u7a7a\u683c<\/h5>\n<p>\u5982\u679c\u8def\u5f84\u4e2d\u6709\u7a7a\u683c&#xff0c;\u53ef\u4ee5\u7528\u5f15\u53f7\u62ec\u8d77\u6765&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#034;\/home\/your_username\/my website&#034;<\/span> root&#064;192.168.1.1:\/usr\/share\/nginx\/html<\/p>\n<h5>Windows \u7528\u6237<\/h5>\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f Windows \u7cfb\u7edf&#xff0c;\u8def\u5f84\u683c\u5f0f\u9700\u8981\u8c03\u6574\u4e3a Linux \u98ce\u683c&#xff08;\u5373\u4f7f\u5728 Windows \u4e0a\u8fd0\u884c\u547d\u4ee4&#xff09;\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p><span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> <span class=\"token string\">&#034;C:\/Users\/\u4f60\u7684\u7528\u6237\u540d\/Documents\/my_website&#034;<\/span> root&#064;192.168.1.1:\/usr\/share\/nginx\/html<\/p>\n<hr \/>\n<h4>4. \u8f93\u5165\u670d\u52a1\u5668\u5bc6\u7801<\/h4>\n<p>\u8fd0\u884c\u547d\u4ee4\u540e&#xff0c;\u7cfb\u7edf\u4f1a\u63d0\u793a\u4f60\u8f93\u5165\u670d\u52a1\u5668\u7684\u5bc6\u7801&#xff08;\u5bf9\u5e94\u4e8e root \u7528\u6237\u6216\u5176\u4ed6\u7528\u6237&#xff09;\u3002\u8f93\u5165\u5bc6\u7801\u540e&#xff0c;\u6587\u4ef6\u5c06\u5f00\u59cb\u4e0a\u4f20\u3002<\/p>\n<hr \/>\n<h4>5. \u9a8c\u8bc1\u6587\u4ef6\u662f\u5426\u4e0a\u4f20\u6210\u529f<\/h4>\n<p>\u767b\u5f55\u5230\u670d\u52a1\u5668&#xff0c;\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5df2\u6b63\u786e\u4e0a\u4f20\u5230 \/usr\/share\/nginx\/html \u76ee\u5f55&#xff1a;<\/p>\n<p><span class=\"token function\">ssh<\/span> root&#064;192.168.1.1<br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/usr\/share\/nginx\/html<br \/>\n<span class=\"token function\">ls<\/span> <span class=\"token parameter variable\">-l<\/span><\/p>\n<p>\u5982\u679c\u770b\u5230\u4f60\u7684\u7f51\u9875\u6587\u4ef6&#xff0c;\u8bf4\u660e\u4e0a\u4f20\u6210\u529f\u3002<\/p>\n<hr \/>\n<h4>\u6ce8\u610f\u4e8b\u9879<\/h4>\n<li>\n<p>\u6743\u9650\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u670d\u52a1\u5668\u4e0a\u7684 \/usr\/share\/nginx\/html \u76ee\u5f55\u6ca1\u6709\u5199\u6743\u9650&#xff0c;\u4f60\u53ef\u80fd\u9700\u8981\u5148\u767b\u5f55\u5230\u670d\u52a1\u5668\u5e76\u8bbe\u7f6e\u6b63\u786e\u7684\u6743\u9650&#xff1a;<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> \/usr\/share\/nginx\/html<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> nginx:nginx \/usr\/share\/nginx\/html\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>SSH \u5bc6\u94a5\u767b\u5f55&#xff1a;<\/p>\n<ul>\n<li>\u5982\u679c\u4f60\u4f7f\u7528 SSH \u5bc6\u94a5\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u800c\u4e0d\u662f\u5bc6\u7801&#xff0c;\u9700\u8981\u5728 scp \u547d\u4ee4\u4e2d\u6307\u5b9a\u79c1\u94a5\u6587\u4ef6\u8def\u5f84&#xff1a;<span class=\"token function\">scp<\/span> <span class=\"token parameter variable\">-r<\/span> <span class=\"token parameter variable\">-i<\/span> \/path\/to\/your_private_key.pem \/home\/your_username\/my_website root&#064;192.168.1.1:\/usr\/share\/nginx\/html\n <\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6587\u4ef6\u5939\u6743\u9650&#xff1a;<\/p>\n<ul>\n<li>\u786e\u4fdd\u4e0a\u4f20\u7684\u6587\u4ef6\u5939\u548c\u6587\u4ef6\u6743\u9650\u6b63\u786e&#xff0c;Nginx \u53ef\u4ee5\u8bbf\u95ee\u5b83\u4eec\u3002<\/li>\n<\/ul>\n<\/li>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u4f60\u5e94\u8be5\u80fd\u591f\u6210\u529f\u5c06\u672c\u5730\u7f51\u9875\u6587\u4ef6\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u7684 \/usr\/share\/nginx\/html \u76ee\u5f55\u3002<\/p>\n<hr \/>\n<h3>\u90e8\u7f72\u670d\u52a1\u5668\u4e14\u914d\u7f6e\u6ca1\u6709\u95ee\u9898&#xff0c;\u4f46\u662f\u901a\u8fc7\u57df\u540d\u4ecd\u7136\u65e0\u6cd5\u8bbf\u95ee\u60c5\u51b5<\/h3>\n<p>\u5df2\u7ecf\u786e\u8ba4\u670d\u52a1\u5668\u914d\u7f6e\u6ca1\u6709\u95ee\u9898&#xff0c;\u4f46\u4ecd\u7136\u65e0\u6cd5\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b&#xff0c;\u53ef\u80fd\u662f\u7f51\u7edc\u8fde\u63a5\u3001\u57df\u540d\u89e3\u6790\u6216\u9632\u706b\u5899\u8bbe\u7f6e\u7b49\u95ee\u9898\u5bfc\u81f4\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6392\u67e5\u548c\u89e3\u51b3\u65b9\u6cd5&#xff1a;<\/p>\n<h4>1. \u68c0\u67e5\u57df\u540d\u89e3\u6790<\/h4>\n<p>\u5373\u4f7f\u670d\u52a1\u5668\u914d\u7f6e\u6b63\u786e&#xff0c;\u5982\u679c\u57df\u540d\u89e3\u6790\u672a\u751f\u6548&#xff0c;\u4e5f\u65e0\u6cd5\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u3002<\/p>\n<ul>\n<li>\u68c0\u67e5\u57df\u540d\u89e3\u6790\u8bb0\u5f55&#xff1a;\u767b\u5f55\u963f\u91cc\u4e91\u63a7\u5236\u53f0&#xff0c;\u786e\u8ba4\u57df\u540d\u7684\u89e3\u6790\u8bb0\u5f55\u662f\u5426\u6b63\u786e&#xff0c;\u786e\u4fdd A \u8bb0\u5f55\u6307\u5411\u670d\u52a1\u5668\u7684\u516c\u7f51 IP\u3002<\/li>\n<li>\u672c\u5730\u6d4b\u8bd5\u57df\u540d\u89e3\u6790&#xff1a;\u5728\u672c\u5730\u7ec8\u7aef\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<span class=\"token function\">nslookup<\/span> your_domain.com<br \/>\n \u6216\u8005&#xff1a;<span class=\"token function\">ping<\/span> your_domain.com<br \/>\n \u5982\u679c\u8fd4\u56de\u7684\u662f\u670d\u52a1\u5668\u7684\u516c\u7f51 IP&#xff0c;\u5219\u8bf4\u660e\u57df\u540d\u89e3\u6790\u751f\u6548\u3002<\/li>\n<li>\u6e05\u9664\u672c\u5730 DNS \u7f13\u5b58&#xff1a;\u5728 Mac \u7cfb\u7edf\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">killall<\/span> <span class=\"token parameter variable\">-HUP<\/span> mDNSResponder<br \/>\n \u7136\u540e\u518d\u6b21\u6d4b\u8bd5\u57df\u540d\u89e3\u6790\u3002<\/li>\n<\/ul>\n<h4>2. \u68c0\u67e5\u7f51\u7edc\u8fde\u63a5<\/h4>\n<p>\u7f51\u7edc\u95ee\u9898\u53ef\u80fd\u5bfc\u81f4\u65e0\u6cd5\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u3002<\/p>\n<ul>\n<li>\u6d4b\u8bd5\u7f51\u7edc\u8fde\u901a\u6027&#xff1a;\u5728\u672c\u5730\u7ec8\u7aef\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6d4b\u8bd5\u7f51\u7edc\u8fde\u901a\u6027&#xff1a;<span class=\"token function\">ping<\/span> your_domain.com<br \/>\n \u5982\u679c\u65e0\u6cd5\u8fde\u901a&#xff0c;\u53ef\u80fd\u662f\u7f51\u7edc\u95ee\u9898\u3002<\/li>\n<li>\u68c0\u67e5\u9632\u706b\u5899\u8bbe\u7f6e&#xff1a;\u786e\u4fdd\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u548c\u5b89\u5168\u7ec4\u89c4\u5219\u5141\u8bb8 HTTP&#xff08;80 \u7aef\u53e3&#xff09;\u548c HTTPS&#xff08;443 \u7aef\u53e3&#xff09;\u6d41\u91cf\u3002<\/li>\n<\/ul>\n<h4>3. \u68c0\u67e5\u670d\u52a1\u5668\u72b6\u6001<\/h4>\n<p>\u5373\u4f7f\u670d\u52a1\u5668\u914d\u7f6e\u6b63\u786e&#xff0c;\u670d\u52a1\u672a\u542f\u52a8\u6216\u7aef\u53e3\u672a\u6b63\u786e\u76d1\u542c\u4e5f\u4f1a\u5bfc\u81f4\u65e0\u6cd5\u8bbf\u95ee\u3002<\/p>\n<ul>\n<li>\u68c0\u67e5 Nginx \u670d\u52a1\u72b6\u6001&#xff1a;\u767b\u5f55\u5230\u670d\u52a1\u5668&#xff0c;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<span class=\"token function\">sudo<\/span> systemctl status nginx<br \/>\n \u5982\u679c\u670d\u52a1\u672a\u8fd0\u884c&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8&#xff1a;<span class=\"token function\">sudo<\/span> systemctl start nginx\n <\/li>\n<li>\u68c0\u67e5\u76d1\u542c\u7aef\u53e3&#xff1a;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u786e\u8ba4 Nginx \u662f\u5426\u76d1\u542c\u4e86 80 \u548c 443 \u7aef\u53e3&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-tuln<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> :80<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">netstat<\/span> <span class=\"token parameter variable\">-tuln<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> :443\n <\/li>\n<\/ul>\n<h4>4. \u68c0\u67e5\u672c\u5730\u7f51\u7edc\u73af\u5883<\/h4>\n<p>\u672c\u5730\u7f51\u7edc\u73af\u5883&#xff08;\u5982 DNS \u914d\u7f6e\u6216\u9632\u706b\u5899&#xff09;\u53ef\u80fd\u963b\u6b62\u57df\u540d\u8bbf\u95ee\u3002<\/p>\n<ul>\n<li>\u66f4\u6362 DNS \u670d\u52a1&#xff1a;\u5c1d\u8bd5\u4f7f\u7528\u5176\u4ed6 DNS \u670d\u52a1&#xff08;\u5982 Google \u7684 8.8.8.8 \u6216\u56fd\u5185\u7684 114.114.114.114&#xff09;&#xff0c;\u4ee5\u6392\u9664\u672c\u5730 DNS \u95ee\u9898\u3002<\/li>\n<li>\u68c0\u67e5\u672c\u5730\u9632\u706b\u5899&#xff1a;\u786e\u4fdd\u672c\u5730\u9632\u706b\u5899\u672a\u963b\u6b62\u5bf9\u670d\u52a1\u5668\u7684 HTTP\/HTTPS \u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<h4>5. \u5f3a\u5236\u672c\u5730\u89e3\u6790<\/h4>\n<p>\u5982\u679c\u57df\u540d\u89e3\u6790\u4ecd\u7136\u6709\u95ee\u9898&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u672c\u5730 \/etc\/hosts \u6587\u4ef6\u5f3a\u5236\u89e3\u6790\u57df\u540d\u5230\u670d\u52a1\u5668 IP\u3002<\/p>\n<ul>\n<li>\u7f16\u8f91 \/etc\/hosts \u6587\u4ef6&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/hosts\n <\/li>\n<li>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4e00\u884c&#xff0c;\u683c\u5f0f\u4e3a&#xff1a;\u670d\u52a1\u5668\u516c\u7f51IP your_domain.com<br \/>\n \u4f8b\u5982&#xff1a;192.168.1.1 your_domain.com\n <\/li>\n<li>\u4fdd\u5b58\u5e76\u9000\u51fa\u540e&#xff0c;\u518d\u6b21\u5c1d\u8bd5\u8bbf\u95ee\u57df\u540d\u3002<\/li>\n<\/ul>\n<h4>6. \u68c0\u67e5\u670d\u52a1\u5668\u65e5\u5fd7<\/h4>\n<p>\u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u4ecd\u672a\u89e3\u51b3\u95ee\u9898&#xff0c;\u5efa\u8bae\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7\u6587\u4ef6\u4ee5\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<ul>\n<li>\u67e5\u770b Nginx \u9519\u8bef\u65e5\u5fd7&#xff1a;<span class=\"token function\">sudo<\/span> <span class=\"token function\">tail<\/span> <span class=\"token parameter variable\">-f<\/span> \/var\/log\/nginx\/error.log\n <\/li>\n<li>\u67e5\u770b\u7cfb\u7edf\u9632\u706b\u5899\u65e5\u5fd7&#xff08;\u5982\u679c\u4f7f\u7528 firewalld&#xff09;&#xff1a;<span class=\"token function\">sudo<\/span> journalctl <span class=\"token parameter variable\">-u<\/span> firewalld\n <\/li>\n<\/ul>\n<p>\u5982\u679c\u95ee\u9898\u4ecd\u672a\u89e3\u51b3&#xff0c;\u5efa\u8bae\u8054\u7cfb\u963f\u91cc\u4e91\u6280\u672f\u652f\u6301\u6216\u8fdb\u4e00\u6b65\u6392\u67e5\u670d\u52a1\u5668\u914d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb619\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5b8c\u6210\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668\u914d\u7f6e\u3001\u7f51\u7ad9\u90e8\u7f72\u548c\u8bbf\u95ee\u6d4b\u8bd5\u3002\u5982\u679c\u5728\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u963f\u91cc\u4e91\u7684\u5b98\u65b9\u6587\u6863\u6216\u8054\u7cfb\u6280\u672f\u652f\u6301\u83b7\u53d6\u5e2e\u52a9\u3002<\/p>\n","protected":false},"author":2,"featured_media":44699,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-44702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4 - \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\/44702.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb619\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5b8c\u6210\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668\u914d\u7f6e\u3001\u7f51\u7ad9\u90e8\u7f72\u548c\u8bbf\u95ee\u6d4b\u8bd5\u3002\u5982\u679c\u5728\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u963f\u91cc\u4e91\u7684\u5b98\u65b9\u6587\u6863\u6216\u8054\u7cfb\u6280\u672f\u652f\u6301\u83b7\u53d6\u5e2e\u52a9\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/44702.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-20T08:30:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620083045-68551c3513466.png\" \/>\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\/44702.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/44702.html\",\"name\":\"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-06-20T08:30:49+00:00\",\"dateModified\":\"2025-06-20T08:30:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/44702.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/44702.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/44702.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4\"}]},{\"@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":"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4 - \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\/44702.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb619\u6b21\uff0c\u70b9\u8d5e30\u6b21\uff0c\u6536\u85cf28\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5b8c\u6210\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668\u914d\u7f6e\u3001\u7f51\u7ad9\u90e8\u7f72\u548c\u8bbf\u95ee\u6d4b\u8bd5\u3002\u5982\u679c\u5728\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003\u963f\u91cc\u4e91\u7684\u5b98\u65b9\u6587\u6863\u6216\u8054\u7cfb\u6280\u672f\u652f\u6301\u83b7\u53d6\u5e2e\u52a9\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/44702.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-06-20T08:30:49+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/06\/20250620083045-68551c3513466.png"}],"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\/44702.html","url":"https:\/\/www.wsisp.com\/helps\/44702.html","name":"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-06-20T08:30:49+00:00","dateModified":"2025-06-20T08:30:49+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/44702.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/44702.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/44702.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e Alibaba Linux \u90e8\u7f72\u670d\u52a1\u5668\u5e76\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u7f51\u9875\u7684\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4"}]},{"@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\/44702","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=44702"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/44702\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/44699"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=44702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=44702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=44702"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=44702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}