{"id":36578,"date":"2025-05-11T00:16:23","date_gmt":"2025-05-10T16:16:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36578.html"},"modified":"2025-05-11T00:16:23","modified_gmt":"2025-05-10T16:16:23","slug":"linux-%e4%b8%ad-web-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%83%a8%e7%bd%b2%e5%8f%8a%e4%bc%98%e5%8c%96%ef%bc%88%e9%99%84%e5%8a%a0%e8%af%a6%e7%bb%86%e5%ae%9e%e9%aa%8c%e6%a1%88%e4%be%8b%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36578.html","title":{"rendered":"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09"},"content":{"rendered":"<h2><span style=\"color:#0d0016\">\u4e00\u3001\u7528\u6237\u5e38\u7528\u5173\u4e8e web \u7684\u4fe1\u606f<\/span><\/h2>\n<h3><span style=\"color:#0d0016\">1.\u4ec0\u4e48\u662f www\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">www\u00a0\u662f World Wide Web \u7684\u7f29\u5199&#xff0c;\u5373\u4e07\u7ef4\u7f51&#xff0c;\u7528\u4e8e\u5168\u7403\u4fe1\u606f\u5e7f\u64ad\u3002\u4eba\u4eec\u4e0a\u7f51\u5e38\u7528 www \u67e5\u8be2\u4fe1\u606f&#xff0c;\u5b83\u80fd\u7ed3\u5408\u591a\u5a92\u4f53&#xff0c;\u4ee5\u8d85\u94fe\u63a5\u65b9\u5f0f\u901a\u8fc7 Internet \u4f20\u9012\u4fe1\u606f\u3002\u8fde\u63a5 www \u7f51\u7ad9\u65f6&#xff0c;\u5ba2\u6237\u7aef\u9700\u7528\u6d4f\u89c8\u5668\u89e3\u6790\u7f51\u7ad9\u63d0\u4f9b\u7684\u6570\u636e\u3002<\/span><\/p>\n<h3><span style=\"color:#0d0016\">2.\u7f51\u5740<\/span><\/h3>\n<p><span style=\"color:#0d0016\">URI&#xff08;\u7edf\u4e00\u8d44\u6e90\u6807\u8bc6&#xff09;&#xff1a;\u5373 Uniform Resource Identifier &#xff0c;\u5206\u4e3a URL \u548c URN\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color:#0d0016\">URN&#xff08;\u7edf\u4e00\u8d44\u6e90\u547d\u540d&#xff09;&#xff1a;Uniform Resource Naming&#xff0c;P2P \u4e0b\u8f7d\u7684\u78c1\u529b\u94fe\u63a5\u662f\u5176\u4e00\u79cd\u5b9e\u73b0&#xff0c;URN \u4ec5\u7528\u4e8e\u547d\u540d&#xff0c;\u4e0d\u6307\u5b9a\u5730\u5740\u3002<\/span><\/li>\n<li><span style=\"color:#0d0016\">URL&#xff08;\u7edf\u4e00\u8d44\u6e90\u5b9a\u4f4d\u7b26&#xff09;&#xff1a;Uniform Resorce Locator &#xff0c;\u7528\u4e8e\u63cf\u8ff0\u67d0\u670d\u52a1\u5668\u7279\u5b9a\u8d44\u6e90\u4f4d\u7f6e&#xff0c;\u53ef\u63d0\u4f9b\u67e5\u627e\u4e8b\u7269\u7684\u65b9\u6cd5\u3002<\/span><\/li>\n<\/ul>\n<h3><span style=\"color:#0d0016\">3.URL \u7ec4\u6210\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">URL\u7ec4\u6210\u673a\u6784\u5982\u4e0b&#xff1a;\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\">&lt;scheme&gt;:\/\/&lt;user&gt;:&lt;password&gt;&#064;&lt;host&gt;:&lt;port&gt;\/&lt;path&gt;:&lt;params&gt;?&lt;query&gt;#&lt;frag&gt;\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u6bcf\u90e8\u5206\u5b9a\u4e49\u4e3a&#xff1a;<\/span><\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:680px\">\n<tbody>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">scheme<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u65b9\u6848<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u8bbf\u95ee\u670d\u52a1\u5668\u4ee5\u83b7\u53d6\u8d44\u6e90\u65f6\u8981\u4f7f\u7528\u54ea\u79cd\u534f\u8bae<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">user<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u7528\u6237<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u67d0\u4e9b\u65b9\u6848\u8bbf\u95ee\u8d44\u6e90\u65f6\u9700\u8981\u7684\u7528\u6237\u540d<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">password<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u5bc6\u7801<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u7528\u6237\u5bf9\u5e94\u7684\u5bc6\u7801&#xff0c;\u4e2d\u95f4\u7528:\u5206\u9694<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">host<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u4e3b\u673a<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u8d44\u6e90\u5bbf\u4e3b\u670d\u52a1\u5668\u7684\u4e3b\u673a\u540d\u6216IP\u5730\u5740<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">port<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u7aef\u53e3<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u8d44\u6e90\u5bbf\u4e3b\u670d\u52a1\u5668\u6b63\u5728\u76d1\u542c\u7684\u7aef\u53e3\u53f7,\u5f88\u591a\u65b9\u6848\u6709\u9ed8\u8ba4\u7aef\u53e3\u53f7<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">path<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u8def\u5f84<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u670d\u52a1\u5668\u8d44\u6e90\u7684\u672c\u5730\u540d&#xff0c;\u7531\u4e00\u4e2a\/\u5c06\u5176\u4e0e\u524d\u9762\u7684URL\u7ec4\u4ef6\u5206\u9694<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">params<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u53c2\u6570<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u6307\u5b9a\u8f93\u5165\u7684\u53c2\u6570&#xff0c;\u53c2\u6570\u4e3a\u540d\/\u503c\u5bf9&#xff0c;\u591a\u4e2a\u53c2\u6570&#xff0c;\u7528;\u5206\u9694<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">query<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u67e5\u8be2<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u4f20\u9012\u53c2\u6570\u7ed9\u7a0b\u5e8f&#xff0c;\u5982\u6570\u636e\u5e93&#xff0c;\u7528?\u5206\u9694,\u591a\u4e2a\u67e5\u8be2\u7528&amp;\u5206\u9694<\/span>\n     <\/td>\n<\/tr>\n<tr>\n<td style=\"width:117px\">\n<p>     <span style=\"color:#0d0016\">frag<\/span>\n     <\/td>\n<td style=\"width:100px\">\n<p>     <span style=\"color:#0d0016\">\u7247\u6bb5<\/span>\n     <\/td>\n<td style=\"width:461px\">\n<p>     <span style=\"color:#0d0016\">\u4e00\u5c0f\u7247\u6216\u4e00\u90e8\u5206\u8d44\u6e90\u7684\u540d\u5b57&#xff0c;\u6b64\u7ec4\u4ef6\u5728\u5ba2\u6237\u7aef\u4f7f\u7528&#xff0c;\u7528#\u5206\u9694<\/span>\n     <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span style=\"color:#0d0016\">\u4e8c\u3001web \u670d\u52a1\u7684\u5b89\u88c5\u4e0e\u542f\u7528\u00a0<\/span><\/h2>\n<h3><span style=\"color:#0d0016\">1.\u5b9e\u9a8c\u73af\u5883\u8bbe\u7f6e&#xff08;\u914d\u7f6e\u8f6f\u4ef6\u4ed3\u5e93&#xff09;\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5148\u5efa\u7acb \/rhel9 \u76ee\u5f55&#xff0c;\u8fdb\u884c\u6302\u8f7d&#xff0c;\u7136\u540e\u5c06 mount \/dev\/cdrom \/rhel9 \u5199\u5165\u00a0\/etc\/rc.d\/rc.local&#xff0c;\u5e76\u7ed9 \/etc\/rc.d\/rc.local \u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"121\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161619-681f7bd3d7f2e.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5c06\u9700\u8981\u4e3b\u673a\u81ea\u52a8\u8fd0\u884c\u7684\u547d\u4ee4\u7f16\u8f91\u5230\u5f00\u673a\u81ea\u8fd0\u884c\u811a\u672c\u4e2d&#xff0c;\u5e76\u7ed9 \/etc\/rc.d\/rc.local \u6587\u4ef6\u52a0\u4e0a\u53ef\u6267\u884c\u6743\u9650&#xff0c;\u624d\u80fd\u5728\u5f00\u673a\u7684\u65f6\u5019\u8fd0\u884c\u3002\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"64\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161619-681f7bd3f3e4d.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"133\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd40ca19.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u8fdb\u5165\u5230 \/etc\/yum.repos.d\/ \u4e2d&#xff0c;\u7f16\u8f91 lxt.repo \u6587\u4ef6\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"114\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd41db9d.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"277\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd434cc5.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7f16\u5199\u811a\u672c&#xff0c;\u914d\u7f6e\u6c38\u4e45\u7f51\u7edc\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"30\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd44d365.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"446\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd45ae62.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u8bbe\u5b9a ip \u4e3a 192.168.10.200\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"529\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd4952dc.png\" width=\"900\" \/><\/span><\/p>\n<h3><span style=\"color:#0d0016\">2.web \u670d\u52a1\u7684\u5b89\u88c5\u4e0e\u542f\u7528\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5b89\u88c5 web \u670d\u52a1\u7684 nginx\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"437\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161620-681f7bd4e31d6.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#fe2c24\">firewall-cmd &#8211;permanent &#8211;add-service&#061;http&#xff1a;<\/span><span style=\"color:#0d0016\">\u6c38\u4e45\u6dfb\u52a0\u5141\u8bb8 http \u670d\u52a1\u89c4\u5219<\/span><\/p>\n<p><span style=\"color:#fe2c24\">firewall-cmd &#8211;reload&#xff1a;<\/span><span style=\"color:#0d0016\">\u91cd\u65b0\u52a0\u8f7d\u9632\u706b\u5899&#xff0c;\u5373\u4f7f\u89c4\u5219\u7acb\u5373\u751f\u6548<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u542f\u52a8 nginx&#xff0c;\u5e76\u5141\u8bb8\u00a0http \u670d\u52a1\u7684\u7f51\u7edc\u6d41\u91cf\u901a\u8fc7\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"153\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161621-681f7bd533d5e.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#fe2c24\">firewall-cmd &#8211;list-all&#xff1a;<\/span><span style=\"color:#0d0016\">\u5217\u51fa\u6240\u6709\u9632\u706b\u5899\u7684\u914d\u7f6e\u4fe1\u606f<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u53ef\u770b\u5230\u5141\u8bb8\u901a\u8fc7\u9632\u706b\u5899\u7684\u670d\u52a1\u5217\u8868\u4e2d\u6709 http \u670d\u52a1\u3002\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"329\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161621-681f7bd552a73.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#ff9900\">\/usr\/share\/nginx\/html\/&#xff1a;<\/span><span style=\"color:#0d0016\">nginx \u7684\u9ed8\u8ba4\u53d1\u5e03\/\u5171\u4eab\u76ee\u5f55&#xff08;\u628a\u76ee\u5f55\u4e2d\u7684\u5185\u5bb9\u5171\u4eab\u51fa\u53bb&#xff09;<\/span><\/p>\n<p><span style=\"color:#ff9900\">\/usr\/share\/nginx\/html\/index.html&#xff1a;<\/span><span style=\"color:#0d0016\">nginx \u7684\u9ed8\u8ba4\u53d1\u5e03\u6587\u4ef6<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5c06 123456 \u5199\u5165 index.html \u4e2d&#xff0c;\u7136\u540e\u8bbf\u95ee 129.168.10.200&#xff0c;\u4fbf\u663e\u793a\u51fa\u521a\u5199\u5165 index.html \u6587\u4ef6\u4e2d\u7684\u5185\u5bb9\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"116\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161621-681f7bd581570.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"172\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161621-681f7bd59ae67.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">web \u670d\u52a1\u9ed8\u8ba4\u4f7f\u7528\u7aef\u53e3\u4e3a 80 \u7aef\u53e3\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"97\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161621-681f7bd5ae295.png\" width=\"900\" \/><\/span><\/p>\n<\/p>\n<h2><span style=\"color:#0d0016\">\u4e09\u3001web \u670d\u52a1\u7684\u57fa\u672c\u8bbe\u7f6e\u00a0<\/span><\/h2>\n<p><span style=\"color:#ff9900\">\/etc\/nginx&#xff1a;<\/span><span style=\"color:#0d0016\">\u4e3a nginx \u7684\u914d\u7f6e\u76ee\u5f55\u00a0<\/span><\/p>\n<p><span style=\"color:#ff9900\">\/etc\/nginx\/nginx.conf&#xff1a;<\/span><span style=\"color:#0d0016\">\u4e3a\u00a0nginx \u7684\u4e3b\u914d\u7f6e\u6587\u4ef6<\/span><\/p>\n<h3><span style=\"color:#0d0016\">1.\u4fee\u6539 worker \u8fdb\u7a0b\u6570\u91cf\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">cpu \u662f 8 \u6838\u7684&#xff0c;\u6240\u4ee5 worker \u7684\u5b50\u8fdb\u7a0b\u9ed8\u8ba4\u5f00\u00a08 \u4e2a\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"532\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161621-681f7bd5c4670.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5c06 worker_processes auto \u4e2d\u7684 auto \u6539\u4e3a\u786e\u5207\u7684\u6570\u5b57&#xff0c;\u4fbf\u53ef\u4fee\u6539\u5b50\u8fdb\u7a0b\u5f00\u7684\u6570\u91cf\u3002\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd623954.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"184\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd63010f.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"136\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd64f6f7.png\" width=\"900\" \/><\/span><\/p>\n<h3><span style=\"color:#0d0016\">2.\u4fee\u6539\u9ed8\u8ba4\u7aef\u53e3\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5c06\u7aef\u53e3\u6539\u4e3a 8080&#xff0c;\u8bbf\u95ee 192.168.10.200 \u65f6\u9700\u5728\u540e\u9762\u6dfb\u52a0 :8080&#xff0c;\u624d\u80fd\u8bbf\u95ee\u6210\u529f\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd623954.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"110\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd66ca7a.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"113\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd6837a5.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u9632\u706b\u5899\u653e\u884c 8080 \u7aef\u53e3&#xff0c;\u624d\u80fd\u6210\u529f\u8bbf\u95ee 192.168.20.200\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"83\" src=\"2025-05-11kmo2qtmpgjm.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"138\" src=\"2025-05-11yxy3tympamm.png\" width=\"900\" \/><\/span><\/p>\n<h3><span style=\"color:#0d0016\">3.\u4fee\u6539\u9ed8\u8ba4\u53d1\u5e03\u6587\u4ef6<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u968f\u540e\u5c06\u7aef\u53e3\u6539\u56de 80 \u7aef\u53e3&#xff0c;\u5e76\u5c06\u9ed8\u8ba4\u53d1\u5e03\u6587\u4ef6\u6539\u4e3a test.html\u3002\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd623954.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"157\" src=\"2025-05-11mqxnco5r3e2.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5728 test.html \u6587\u4ef6\u4e2d\u5199\u5165 test&#xff0c;\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"70\" src=\"2025-05-112et3arlsd1i.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#fe2c24\">nginx -t&#xff1a;<\/span><span style=\"color:#0d0016\">\u67e5\u770b\u8bed\u6cd5\u662f\u5426\u6b63\u786e\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5148\u67e5\u770b\u8bed\u6cd5\u662f\u5426\u6b63\u786e&#xff0c;\u8bed\u6cd5\u6ca1\u95ee\u9898&#xff0c;\u5219 nginx \u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u3002\u7136\u540e\u8bbf\u95ee 192.168.10.200&#xff0c;\u663e\u793a\u51fa\u6765\u7684\u5185\u5bb9\u662f test.html \u91cc\u9762\u7684 test\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"95\" src=\"2025-05-112f3en2hm35k.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"168\" src=\"2025-05-11yu353qdndcp.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u53ef\u4ee5\u6307\u5b9a\u591a\u4e2a\u9ed8\u8ba4\u53d1\u5e03\u6587\u4ef6&#xff0c;\u4ee5\u524d\u9762\u7684\u6587\u4ef6\u4e3a\u5148&#xff0c;\u82e5\u7b2c\u4e00\u4e2a\u6587\u4ef6\u6d88\u5931&#xff0c;\u5219\u4f1a\u9ed8\u8ba4\u8bbf\u95ee\u7b2c\u4e8c\u4e2a\u6587\u4ef6<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161622-681f7bd623954.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"141\" src=\"2025-05-11edidnk02o55.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"168\" src=\"2025-05-11yu353qdndcp.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"81\" src=\"2025-05-11pcjg04ggylp.png\" width=\"900\" \/><\/span><\/p>\n<h3><span style=\"color:#0d0016\">4.\u4fee\u6539\u9ed8\u8ba4\u53d1\u5e03\u76ee\u5f55<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5728 \/usr\/share\/nginx \u4e2d\u5efa\u7acb \/lxt \u76ee\u5f55&#xff0c;\u5199\u5165 hahahaha \u5230 \/usr\/share\/nginx\/lxt\/index.html \u4e2d&#xff0c;\u5728 \/etc\/nginx\/nginx.conf \u4e2d\u5c06\u76ee\u5f55\u4fee\u6539\u4e3a \/usr\/share\/nginx\/lxt &#xff0c;\u91cd\u65b0\u52a0\u8f7d\u540e\u8bbf\u95ee 192.168.10.200 &#xff0c;\u663e\u793a\u51fa\u6765\u7684\u662f hahahaha\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"124\" src=\"2025-05-11swkqwn5fdqk.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"137\" src=\"2025-05-11rnujxqmsc0d.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"148\" src=\"2025-05-110fot1l0rr0j.png\" width=\"900\" \/><\/span><\/p>\n<\/p>\n<h2><span style=\"color:#0d0016\">\u56db\u3001web \u670d\u52a1\u5668\u7684\u8bbf\u95ee\u63a7\u5236\u00a0<\/span><\/h2>\n<h3><span style=\"color:#0d0016\">1.\u57fa\u4e8e ip \u7684\u8bbf\u95ee\u63a7\u5236\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5728 \/usr\/share\/nginx\/html\/ \u4e2d\u5efa\u7acb lee \u5b50\u76ee\u5f55&#xff0c;\u5e76\u5199\u5165 lee \u5230 \/lee\/index.html\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"114\" src=\"2025-05-11n4k3qinje5r.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u57fa\u4e8e ip \u6dfb\u52a0\u5bf9 \/lee\/ \u5185\u5bb9\u7684\u8bbf\u95ee\u63a7\u5236&#xff0c;\u5141\u8bb8 192.168.10.200 \u8bbf\u95ee&#xff0c;\u62d2\u7edd\u6240\u6709\u7528\u6237\u8bbf\u95ee\u3002\u6709\u8bfb\u53d6\u987a\u5e8f&#xff0c;\u5148\u88ab\u8bfb\u53d6\u7684\u4f1a\u751f\u6548&#xff0c;\u540e\u8bfb\u53d6\u7684\u65e0\u6cd5\u8986\u76d6\u524d\u9762\u7684\u5185\u5bb9\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"24\" src=\"2025-05-11krp4mchplgf.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"474\" src=\"2025-05-11m4ysorinohx.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"126\" src=\"2025-05-11abv2pmfynie.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"194\" src=\"2025-05-115hgl2nooas4.png\" width=\"900\" \/><\/span><\/p>\n<h3><span style=\"color:#0d0016\">2.\u57fa\u4e8e\u7528\u6237\u8ba4\u771f\u7684\u8bbf\u95ee\u63a7\u5236<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5b89\u88c5 httpd-tools&#xff0c;\u624d\u80fd\u4f7f\u7528 htpasswd \u547d\u4ee4\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"456\" src=\"2025-05-1113azfdz2ica.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">htpasswd&#xff1a;\u751f\u6210\u914d\u7f6e\u6587\u4ef6&#xff08;\u7cfb\u7edf\u4e2d\u9ed8\u8ba4\u4e0d\u5b58\u5728&#xff09;<\/span><\/p>\n<p><span style=\"color:#0d0016\">c&#xff1a;\u5c06\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\u521b\u5efa\u51fa\u6765<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u6587\u4ef6\u4e0d\u5b58\u5728\u65f6\u9700\u8981\u52a0 c &#xff0c;\u82e5\u6587\u4ef6\u5b58\u5728&#xff0c;\u5219\u4e0d\u9700\u8981\u52a0 c &#xff0c;\u5426\u5219\u4f1a\u8986\u76d6\u539f\u672c\u7684\u4fe1\u606f<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"261\" src=\"2025-05-11z5olyfex0qz.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">auth_basic on&#xff1a;\u5f00\u542f\u529f\u80fd<\/span><\/p>\n<p><span style=\"color:#0d0016\">auth_basic_user_file \/etc\/nginx\/.htpasswd&#xff1a;\u6307\u5b9a\u8ba4\u8bc1\u6587\u4ef6<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u57fa\u4e8e\u8ba4\u8bc1\u6587\u4ef6\u6dfb\u52a0\u5bf9 \/lee\/ \u5185\u5bb9\u7684\u8bbf\u95ee\u63a7\u5236\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"103\" src=\"2025-05-115afjjzjo0ru.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"465\" src=\"2025-05-11vl4pcowlwhu.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u76f4\u63a5\u8bbf\u95ee\u662f\u4e0d\u6210\u529f\u7684&#xff0c;\u9700\u52a0\u4e0a\u7528\u6237\u540d\u548c\u5bc6\u7801\u624d\u80fd\u8bbf\u95ee\u6210\u529f\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"216\" src=\"2025-05-113i3rsprvwiw.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u00a0<\/span><\/p>\n<h2><span style=\"color:#0d0016\">\u4e94\u3001web \u670d\u52a1\u5668\u7684\u865a\u62df\u4e3b\u673a\u00a0<\/span><\/h2>\n<p><span style=\"color:#0d0016\">\u9ed8\u8ba4\u72b6\u6001\u4e0b&#xff0c;nginx \u53ea\u80fd\u53d1\u5e03\u4e00\u4e2a\u7ad9\u70b9&#xff0c;\u82e5\u901a\u8fc7\u642d\u5efa\u591a\u53f0 Nginx \u5b9e\u73b0\u591a\u7ad9\u70b9\u53d1\u5e03&#xff0c;\u4f1a\u9020\u6210\u8d44\u6e90\u6d6a\u8d39\u3002\u4e3a\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898&#xff0c;\u53ef\u542f\u7528 nginx \u7684\u865a\u62df\u4e3b\u673a\u3002\u865a\u62df\u4e3b\u673a\u6709\u4e24\u79cd\u6a21\u5f0f&#xff0c;\u57fa\u4e8e\u00a0IP\u00a0\u6216\u8005\u57fa\u4e8e\u57df\u540d\u3002<\/span><\/p>\n<h3><span style=\"color:#0d0016\">1.\u57fa\u4e8e ip \u7684\u865a\u62df\u4e3b\u673a<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u5b9e\u73b0\u8bbf\u95ee\u540c\u4e00\u4e3b\u673a\u4e0d\u540c ip \u663e\u793a\u4e0d\u540c\u7684\u5185\u5bb9\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">\u9996\u5148\u5efa\u7acb\u4e24\u4e2a ip &#xff08;192.168.10.10 \u548c 192.168.10.20&#xff09;\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"378\" src=\"2025-05-110ce4foeheur.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7136\u540e\u5728\u00a0\/usr\/share\/nginx\/ \u4e2d\u521b\u5efa virtualhost\/{news,bbs} \u4e24\u4e2a\u76ee\u5f55&#xff0c;\u5c06 192.168.10.10 \u5199\u5165 \/usr\/share\/nginx\/virtualhost\/news\/index.html&#xff0c;\u5c06 192.168.10.20 \u5199\u5165 \/usr\/share\/nginx\/virtualhost\/bbs\/index.html&#xff0c;\u4fbf\u4e8e\u8bbf\u95ee\u65f6\u533a\u5206\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"59\" src=\"2025-05-11xq1blk5qfj3.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\/etc\/nginx\/conf.d\/ \u76ee\u5f55\u91cc\u9762\u6240\u6709\u4ee5 .conf \u7ed3\u5c3e\u7684\u6587\u4ef6\u90fd\u5305\u542b\u5728\u4e3b\u914d\u7f6e\u6587\u4ef6\u91cc&#xff0c;\u6240\u4ee5\u5728\u00a0\/etc\/nginx\/conf.d\/ \u76ee\u5f55\u91cc\u521b\u5efa\u4ee5 .conf \u7ed3\u5c3e\u7684\u6587\u4ef6&#xff0c;\u5728\u91cc\u9762<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"60\" src=\"2025-05-11vwar503e2al.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u8fdb\u5165\u00a0\/etc\/nginx\/conf.d\/ \u76ee\u5f55\u4e2d&#xff0c;\u7f16\u5199 vhosts.conf \u6587\u4ef6\u3002192.168.10.10 \u7684\u76ee\u5f55\u4e3a \/usr\/share\/nginx\/virtualhost\/news&#xff0c;192.168.10.20 \u7684\u76ee\u5f55\u4e3a\u00a0\/usr\/share\/nginx\/virtualhost\/bbs\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"61\" src=\"2025-05-11nzli421am1y.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"249\" src=\"2025-05-11fheirt14ubz.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5206\u522b\u8bbf\u95ee\u4e09\u4e2a ip \u5730\u5740&#xff0c;\u8bbf\u95ee\u7684\u7ed3\u679c\u90fd\u662f\u4e0d\u540c\u7684\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"154\" src=\"2025-05-11zyj52nds31u.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"146\" src=\"2025-05-11jfibosva4m1.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"150\" src=\"2025-05-11wwrg54jxsif.png\" width=\"900\" \/><\/span><\/p>\n<h3><span style=\"color:#0d0016\">2.\u57fa\u4e8e\u57df\u540d\u7684\u865a\u62df\u4e3b\u673a\u00a0<\/span><\/h3>\n<p><span style=\"color:#0d0016\">\u4e00\u4e2a ip \u53ef\u4ee5\u53d1\u5e03\u591a\u4e2a\u7ad9\u70b9\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\">80 \u7aef\u53e3\u56e0\u662f\u9ed8\u8ba4\u7aef\u53e3&#xff0c;\u53ef\u5ffd\u7565\u3002\u57df\u540d\u5206\u522b\u4e3a news.lxt.org \u548c bbs.lxt.org\u3002\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"23\" src=\"2025-05-114z4ivbeaktg.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"290\" src=\"2025-05-11gvg4qmv4zak.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"91\" src=\"2025-05-1105hn3tkqdn2.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u7136\u540e\u5728 \/etc\/hosts \u4e2d\u5199\u5165 IP \u53ca\u5176\u57df\u540d&#xff0c;\u4fbf\u53ef\u4ee5\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u5176\u4e2d\u7684\u4fe1\u606f\u3002\u00a0<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"22\" src=\"2025-05-11v12bpagrt2y.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"101\" src=\"2025-05-112dyfir2a2lq.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"134\" src=\"2025-05-11pu5km2upk0j.png\" width=\"900\" \/><\/span><\/p>\n<p><span style=\"color:#0d0016\">\u5728 C:\\\\Windows\\\\System32\\\\drivers\\\\etc \u76ee\u5f55\u4e2d\u627e\u5230 hosts \u6587\u4ef6&#xff0c;\u7528\u8bb0\u4e8b\u672c\u7684\u65b9\u5f0f\u6253\u5f00&#xff0c;\u5199\u5165 ip \u53ca\u5176\u57df\u540d&#xff0c;\u5e76\u4fdd\u5b58\u3002 \u901a\u8fc7\u8bb0\u4e8b\u672c\u4e5f\u53ef\u8bbf\u95ee\u5176\u57df\u540d\u3002<\/span><\/p>\n<p><span style=\"color:#0d0016\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"796\" src=\"2025-05-11avxsihbaxyb.png\" width=\"900\" \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb855\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u5728 \/usr\/share\/nginx \u4e2d\u5efa\u7acb \/lxt \u76ee\u5f55\uff0c\u5199\u5165 hahahaha \u5230 \/usr\/share\/nginx\/lxt\/index.html \u4e2d\uff0c\u5728 \/etc\/nginx\/nginx.conf \u4e2d\u5c06\u76ee\u5f55\u4fee\u6539\u4e3a \/usr\/share\/nginx\/lxt \uff0c\u91cd\u65b0\u52a0\u8f7d\u540e\u8bbf\u95ee 192.168.10.200 \uff0c\u663e\u793a\u51fa\u6765\u7684\u662f hahahaha\u3002\u5728 \/usr\/share\/nginx\/html\/ \u4e2d\u5efa\u7acb lee \u5b50\u76ee\u5f55\uff0c\u5e76\u5199\u5165 lee \u5230 \/lee\/index.html\u300280 \u7aef\u53e3\u56e0\u662f\u9ed8\u8ba4\u7aef\u53e3\uff0c\u53ef\u5ffd\u7565\u3002<\/p>\n","protected":false},"author":2,"featured_media":36558,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-36578","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","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>Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09 - \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\/36578.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb855\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u5728 \/usr\/share\/nginx \u4e2d\u5efa\u7acb \/lxt \u76ee\u5f55\uff0c\u5199\u5165 hahahaha \u5230 \/usr\/share\/nginx\/lxt\/index.html \u4e2d\uff0c\u5728 \/etc\/nginx\/nginx.conf \u4e2d\u5c06\u76ee\u5f55\u4fee\u6539\u4e3a \/usr\/share\/nginx\/lxt \uff0c\u91cd\u65b0\u52a0\u8f7d\u540e\u8bbf\u95ee 192.168.10.200 \uff0c\u663e\u793a\u51fa\u6765\u7684\u662f hahahaha\u3002\u5728 \/usr\/share\/nginx\/html\/ \u4e2d\u5efa\u7acb lee \u5b50\u76ee\u5f55\uff0c\u5e76\u5199\u5165 lee \u5230 \/lee\/index.html\u300280 \u7aef\u53e3\u56e0\u662f\u9ed8\u8ba4\u7aef\u53e3\uff0c\u53ef\u5ffd\u7565\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36578.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-10T16:16:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161619-681f7bd3d7f2e.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36578.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36578.html\",\"name\":\"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-10T16:16:23+00:00\",\"dateModified\":\"2025-05-10T16:16:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36578.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36578.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36578.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09\"}]},{\"@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":"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09 - \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\/36578.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb855\u6b21\uff0c\u70b9\u8d5e21\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u5728 \/usr\/share\/nginx \u4e2d\u5efa\u7acb \/lxt \u76ee\u5f55\uff0c\u5199\u5165 hahahaha \u5230 \/usr\/share\/nginx\/lxt\/index.html \u4e2d\uff0c\u5728 \/etc\/nginx\/nginx.conf \u4e2d\u5c06\u76ee\u5f55\u4fee\u6539\u4e3a \/usr\/share\/nginx\/lxt \uff0c\u91cd\u65b0\u52a0\u8f7d\u540e\u8bbf\u95ee 192.168.10.200 \uff0c\u663e\u793a\u51fa\u6765\u7684\u662f hahahaha\u3002\u5728 \/usr\/share\/nginx\/html\/ \u4e2d\u5efa\u7acb lee \u5b50\u76ee\u5f55\uff0c\u5e76\u5199\u5165 lee \u5230 \/lee\/index.html\u300280 \u7aef\u53e3\u56e0\u662f\u9ed8\u8ba4\u7aef\u53e3\uff0c\u53ef\u5ffd\u7565\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/36578.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-10T16:16:23+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510161619-681f7bd3d7f2e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36578.html","url":"https:\/\/www.wsisp.com\/helps\/36578.html","name":"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-10T16:16:23+00:00","dateModified":"2025-05-10T16:16:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36578.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36578.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36578.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u4e2d Web \u670d\u52a1\u5668\u7684\u90e8\u7f72\u53ca\u4f18\u5316\uff08\u9644\u52a0\u8be6\u7ec6\u5b9e\u9a8c\u6848\u4f8b\uff09"}]},{"@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\/36578","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=36578"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36578\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36558"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36578"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}