{"id":81707,"date":"2026-07-25T03:43:02","date_gmt":"2026-07-24T19:43:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/81707.html"},"modified":"2026-07-25T03:43:02","modified_gmt":"2026-07-24T19:43:02","slug":"%e3%80%90devops%e3%80%91%e4%bb%8e%e9%9b%b6%e6%90%ad%e5%bb%ba%ef%bc%9a%e8%87%aa%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%85%ac%e7%bd%91-ip-%e9%83%a8%e7%bd%b2%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/81707.html","title":{"rendered":"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u4e00\u3001\u7b80\u4ecb<\/li>\n<li>\u4e8c\u3001\u6548\u679c<\/li>\n<li>\u4e09\u3001\u6b65\u9aa4<\/li>\n<li>\n<ul>\n<li>3.1\u3001\u81ea\u5efa\u670d\u52a1\u5668\u90e8\u7f72\u7f51\u9875<\/li>\n<li>\n<ul>\n<li>3.1.1\u3001\u5f00\u542f Win11 \u7684 IIS \u670d\u52a1<\/li>\n<li>3.1.2\u3001\u628a dist \u6587\u4ef6\u5939\u653e\u5230\u670d\u52a1\u5668<\/li>\n<li>3.1.3\u3001IIS \u914d\u7f6e\u7f51\u7ad9<\/li>\n<li>3.1.4\u3001\u5c40\u57df\u7f51\u8bbf\u95ee\u7f51\u7ad9<\/li>\n<\/ul>\n<\/li>\n<li>3.2\u3001\u7ed9\u81ea\u5efa\u670d\u52a1\u5668\u6574\u4e2a\u516c\u7f51IP<\/li>\n<li>\n<ul>\n<li>3.2.1\u3001\u82b1\u751f\u58f3&#xff08;\u6700\u7b80\u5355&#xff09;<\/li>\n<li>3.2.2\u3001\u516c\u7f51\u670d\u52a1\u5668 Frp \u5185\u7f51\u7a7f\u900f<\/li>\n<li>\n<ul>\n<li>3.2.2.1\u3001\u5728 Ubuntu \u516c\u7f51\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u670d\u52a1\u7aef&#xff09;<\/li>\n<li>3.2.2.2\u3001\u5728 Windows \u81ea\u5efa\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u5ba2\u6237\u7aef&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>3.3\u3001\u81ea\u5efa\u670d\u52a1\u5668\u89e3\u51b3\u201c\u8de8\u6e90\u9694\u79bb\u201d<\/li>\n<li>\n<ul>\n<li>3.3.1\u3001IIS \u56fe\u5f62\u754c\u9762\u914d\u7f6e<\/li>\n<li>3.3.2\u3001vite.config.js<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u4e00\u3001\u7b80\u4ecb<\/h2>\n<p>\u5f88\u591a\u4eba\u60f3\u628a\u81ea\u5df1\u7535\u8111\u4e0a\u8dd1\u901a\u7684\u5404\u7c7b\u670d\u52a1\u3001\u4e2a\u4eba\u7ad9\u70b9\u4e0e\u5e94\u7528\u9879\u76ee\u5bf9\u5916\u5f00\u653e&#xff0c;\u6446\u8131\u5c40\u57df\u7f51\u4ec5\u9650\u5185\u7f51\u8bbf\u95ee\u7684\u5c40\u9650\u3002\u65e0\u8bba\u662f\u81ea\u5efa\u535a\u5ba2\u3001\u7f51\u76d8\u3001\u5de5\u5177\u7bb1&#xff0c;\u8fd8\u662f\u5404\u7c7b\u81ea\u7814\u4e1a\u52a1\u670d\u52a1&#xff0c;\u90fd\u5e0c\u671b\u501f\u52a9\u516c\u7f51 IP \u5b9e\u73b0\u5168\u7f51\u53ef\u8bbf\u95ee&#xff0c;\u968f\u65f6\u968f\u5730\u8fdc\u7a0b\u8fde\u63a5\u4f7f\u7528\u3002 \u4f46\u81ea\u5efa\u670d\u52a1\u5668\u4ece\u5185\u7f51\u642d\u5efa\u5230\u516c\u7f51\u6b63\u5f0f\u4e0a\u7ebf&#xff0c;\u6d89\u53ca\u7f51\u7edc\u914d\u7f6e\u3001\u7aef\u53e3\u89c4\u5212\u3001\u5b89\u5168\u9632\u62a4\u3001\u670d\u52a1\u6620\u5c04\u7b49\u8bf8\u591a\u7ec6\u8282&#xff0c;\u7a0d\u6709\u4e0d\u614e\u5c31\u4f1a\u51fa\u73b0\u8bbf\u95ee\u5931\u8d25\u3001\u7aef\u53e3\u5360\u7528\u3001\u5b89\u5168\u66b4\u9732\u7b49\u95ee\u9898\u3002\u672c\u6587\u5c31\u4ece\u5b9e\u9645\u90e8\u7f72\u89d2\u5ea6&#xff0c;\u5b8c\u6574\u8bb0\u5f55\u4e2a\u4eba\u670d\u52a1\u5668\u642d\u8f7d\u516c\u7f51 IP\u3001\u4e1a\u52a1\u670d\u52a1\u6b63\u5f0f\u516c\u7f51\u843d\u5730\u7684\u5168\u8fc7\u7a0b\u3002<\/p>\n<h2>\u4e8c\u3001\u6548\u679c<\/h2>\n<p>\u4ee5Vue\u6253\u5305\u597d\u7684dist \u6587\u4ef6\u5939&#xff0c;\u7eaf\u51c0 Win11 \u670d\u52a1\u5668\u4e00\u952e\u90e8\u7f72\u5f00\u59cb\u5c55\u793a\u6548\u679c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194254-6a63c03e2e3f4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e09\u3001\u6b65\u9aa4<\/h2>\n<h3>3.1\u3001\u81ea\u5efa\u670d\u52a1\u5668\u90e8\u7f72\u7f51\u9875<\/h3>\n<p>\u7531\u4e8e\u6211\u662f\u5728 Windows\u670d\u52a1\u5668 \u4e0a&#xff0c;\u9009\u62e9\u6700\u8f7b\u4fbf\u7684IIS&#xff0c;\u5982\u679c\u662f\u8003\u8651\u8de8\u5e73\u53f0&#xff0c;\u5efa\u8bae\u4f7f\u7528nginx\u5f00\u6e90\u8de8\u5e73\u53f0\u5de5\u5177<\/p>\n<h4>3.1.1\u3001\u5f00\u542f Win11 \u7684 IIS \u670d\u52a1<\/h4>\n<p>\u5728\u4f60\u7684\u7eaf\u51c0 Win11 \u670d\u52a1\u5668\u4e0a\u64cd\u4f5c&#xff1a; \u6253\u5f00\u641c\u7d22 \u3010\u542f\u7528\u6216\u5173\u95ed Windows \u529f\u80fd\u3011 \u5e76\u6253\u5f00 \u52fe\u9009\u4ee5\u4e0b\u9009\u9879&#xff08;\u5fc5\u987b\u5168\u52fe&#xff09;&#xff1a; Internet Information Services \u5c55\u5f00\u5b83 \u2192 \u52fe\u9009 \u3010Web \u7ba1\u7406\u5de5\u5177\u3011 \u5c55\u5f00\u5b83 \u2192 \u52fe\u9009 \u3010\u4e07\u7ef4\u7f51\u670d\u52a1\u3011&#xff08;\u9ed8\u8ba4\u5b50\u9879\u5168\u9009&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194257-6a63c04109dcd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u70b9\u51fb \u786e\u5b9a&#xff0c;\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210 \u2192 \u91cd\u542f\u7535\u8111<\/p>\n<h4>3.1.2\u3001\u628a dist \u6587\u4ef6\u5939\u653e\u5230\u670d\u52a1\u5668<\/h4>\n<p>\u5728\u670d\u52a1\u5668\u968f\u4fbf\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939&#xff0c;\u6bd4\u5982&#xff1a;C:\\\\web\\\\vue-project \u628a\u4f60\u672c\u5730\u6253\u5305\u597d\u7684 dist \u6587\u4ef6\u5939\u6574\u4e2a\u590d\u5236\u8fdb\u53bb\u6700\u7ec8\u8def\u5f84\u793a\u4f8b&#xff1a;C:\\\\web\\\\splat\\\\dist <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194257-6a63c04152934.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>3.1.3\u3001IIS \u914d\u7f6e\u7f51\u7ad9<\/h4>\n<p>\u641c\u7d22 \u3010IIS \u7ba1\u7406\u5668\u3011 \u5e76\u6253\u5f00 \u5de6\u4fa7\u627e\u5230 \u3010\u7f51\u7ad9\u3011 \u2192 \u53f3\u952e \u3010\u6dfb\u52a0\u7f51\u7ad9\u3011 \u586b\u5199\u914d\u7f6e&#xff1a; \u7f51\u7ad9\u540d\u79f0&#xff1a;\u968f\u4fbf\u586b&#xff08;\u5982 vue-dist&#xff09; \u7269\u7406\u8def\u5f84&#xff1a;\u9009\u62e9\u4f60\u521a\u624d\u7684 dist \u6587\u4ef6\u5939\u793a\u4f8b&#xff1a;C:\\\\web\\\\splat\\\\dist \u7aef\u53e3&#xff1a;\u586b 80&#xff08;\u9ed8\u8ba4\u7f51\u9875\u7aef\u53e3&#xff09;\u6216 8080&#xff08;\u4e0d\u51b2\u7a81\u5c31\u884c&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194257-6a63c0419f1cb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u70b9\u51fb \u786e\u5b9a&#xff0c;\u7f51\u7ad9\u76f4\u63a5\u542f\u52a8<\/p>\n<h4>3.1.4\u3001\u5c40\u57df\u7f51\u8bbf\u95ee\u7f51\u7ad9<\/h4>\n<p>\u672c\u5730\u8bbf\u95ee&#xff1a;\u6d4f\u89c8\u5668\u6253\u5f00 http:\/\/localhost&#xff08;\u4f60\u8bbe\u7684\u7aef\u53e3&#xff09; \u5c40\u57df\u7f51\u5176\u4ed6\u7535\u8111\u8bbf\u95ee&#xff1a;\u67e5\u670d\u52a1\u5668 IP \u2192 \u6253\u5f00 http:\/\/\u670d\u52a1\u5668IP&#xff08;\u5343\u4e07\u8bb0\u5f97\u5173\u9632\u706b\u5899\u6216\u8005\u914d\u7f6e\u51fa\u5165\u7ad9\u89c4\u5219\u54c8&#xff01;&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194258-6a63c0425a07d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>3.2\u3001\u7ed9\u81ea\u5efa\u670d\u52a1\u5668\u6574\u4e2a\u516c\u7f51IP<\/h3>\n<h4>3.2.1\u3001\u82b1\u751f\u58f3&#xff08;\u6700\u7b80\u5355&#xff09;<\/h4>\n<p>\u5927\u90e8\u5206\u4eba\u4e0d\u613f\u610f\u82b1\u94b1&#xff0c;\u4f46\u662f\u6211\u8fd8\u662f\u63d0\u4f9b\u4e00\u4e0b\u8fd9\u79cd\u7b80\u5355\u7684\u65b9\u5f0f\u3002&#xff08;\u6211\u4e5f\u5c1d\u8bd5\u8fc7&#xff0c;\u4f46\u662f\u6ca1\u8fc7\u591a\u957f\u65f6\u95f4\u8fc7\u671f\u4e86&#xff0c;\u4e0d\u8fc7\u786e\u5b9e\u7b80\u5355&#xff09;<\/p>\n<p>\u4e0b\u8f7d Windows \u7248&#xff0c;\u5b89\u88c5\u3001\u6ce8\u518c\u3001\u767b\u5f55 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194301-6a63c04555a8c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/>2. \u6dfb\u52a0\u6620\u5c04&#xff08;\u6838\u5fc3&#xff09;<\/p>\n<p>\u6253\u5f00\u5ba2\u6237\u7aef \u2192 \u5185\u7f51\u7a7f\u900f \u2192 &#043; \u6dfb\u52a0\u6620\u5c04 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194301-6a63c04568a52.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5e94\u7528\u540d\u79f0&#xff1a;\u968f\u4fbf\u5199&#xff08;\u5982&#xff1a;Vue12345&#xff09; \u5e94\u7528\u7c7b\u578b&#xff1a;TCP&#xff08;\u6216 HTTP&#xff09; \u5185\u7f51\u4e3b\u673a&#xff1a;127.0.0.1&#xff08;\u672c\u673a&#xff09; \u5185\u7f51\u7aef\u53e3&#xff1a;12345 \u5916\u7f51\u57df\u540d&#xff1a;\u7cfb\u7edf\u5206\u914d&#xff08;\u514d\u8d39&#xff09; \u5916\u7f51\u7aef\u53e3&#xff1a;\u968f\u673a\u7aef\u53e3&#xff08;\u514d\u8d39&#xff09; \u70b9 \u786e\u5b9a \u2192 \u72b6\u6001\u663e\u793a \u5728\u7ebf \u5c31\u6210\u529f\u4e86<\/p>\n<p>\u62ff\u5230\u4f60\u7684\u5916\u7f51\u5730\u5740 \u793a\u4f8b&#xff08;\u4f60\u5b9e\u9645\u4f1a\u4e0d\u4e00\u6837&#xff09;&#xff1a; http:\/\/xxxxxx.vicp.cc:32456<\/p>\n<h4>3.2.2\u3001\u516c\u7f51\u670d\u52a1\u5668 Frp \u5185\u7f51\u7a7f\u900f<\/h4>\n<p>\u6211\u6709\u4e00\u53f0\u516c\u7f51Ubuntu\u670d\u52a1\u5668&#xff0c;\u7528 Ubuntu \u670d\u52a1\u5668\u505a Frp \u5185\u7f51\u7a7f\u900f&#xff0c;\u601d\u8def\u5982\u4e0b&#xff1a; 1.\u672c\u5730 Windows \u670d\u52a1\u5668 \u2190 \u4e3b\u52a8\u8fde\u63a5 \u2192 Ubuntu \u516c\u7f51\u670d\u52a1\u5668 2.\u5916\u754c\u8bbf\u95ee Ubuntu \u516c\u7f51 IP \u2192 \u81ea\u52a8\u8f6c\u53d1\u5230\u672c\u5730\u7684 Vue \u9879\u76ee<\/p>\n<p>&#xff01;&#xff01;&#xff01;\u6ce8\u610f&#xff1a;\u8fd9\u91cc\u4e00\u5b9a\u8981\u6ce8\u610ffrp\u7684\u670d\u52a1\u7aef\u548c\u5ba2\u6237\u7aef\u7684\u7248\u672c\u8981\u4e00\u81f4&#xff08;\u6211\u8fd9\u91cc\u7528\u76840.58.1&#xff09;<\/p>\n<h5>3.2.2.1\u3001\u5728 Ubuntu \u516c\u7f51\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u670d\u52a1\u7aef&#xff09;<\/h5>\n<p>\u767b\u5f55\u670d\u52a1\u5668<\/p>\n<p><span class=\"token comment\"># 1. \u4e0b\u8f7d frp \u670d\u52a1\u7aef<\/span><br \/>\n<span class=\"token function\">wget<\/span> https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.58.1\/frp_0.58.1_linux_amd64.tar.gz<\/p>\n<p><span class=\"token comment\"># 2. \u89e3\u538b<\/span><br \/>\n<span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-zxvf<\/span> frp_0.58.1_linux_amd64.tar.gz<br \/>\n<span class=\"token builtin class-name\">cd<\/span> frp_0.58.1_linux_amd64<\/p>\n<p><span class=\"token comment\"># 3. \u521b\u5efa\u670d\u52a1\u7aef\u914d\u7f6e<\/span><br \/>\n<span class=\"token function\">vim<\/span> frps.toml<\/p>\n<p>\u6211\u7684\u670d\u52a1\u5668frps.toml\u662f\u8fd9\u4e48\u914d\u7f6e\u7684&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194301-6a63c045785ba.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6309 ESC \u2192 \u8f93\u5165 :wq \u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p>\u542f\u52a8&#xff1a;<\/p>\n<p>.\/frps <span class=\"token parameter variable\">-c<\/span> frps.toml<\/p>\n<p>\u8fd9\u91cc\u53ef\u4ee5\u67e5\u770b\u4e0b&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194301-6a63c0457fa64.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>3.2.2.2\u3001\u5728 Windows \u81ea\u5efa\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u5ba2\u6237\u7aef&#xff09;<\/h5>\n<p>\u4e0b\u8f7dwindows \u7248 frpc&#xff1a;https:\/\/github.com\/fatedier\/frp\/releases\/download\/v0.58.1\/frp_0.58.1_windows_amd64.zip<\/p>\n<p>\u5982\u679c\u8fd9\u4e2a\u592a\u6162&#xff0c;\u53ef\u4ee5\u7528\u6211\u4e0a\u4f20\u5230csdn\u7684&#xff1a; windows0.58.1\u5ba2\u6237\u7aef&#xff1a;https:\/\/download.csdn.net\/download\/u014597198\/92835999<\/p>\n<p>\u7f16\u8f91&#xff0c;frpc.toml&#xff1a;<\/p>\n<p>serverAddr <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u4f60\u7684Ubuntu\u516c\u7f51IP&#034;<\/span><br \/>\nserverPort <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">7000<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">[<\/span>proxies<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">]<\/span><br \/>\nname <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;vue-web&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">type<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;http&#034;<\/span><br \/>\nlocalIP <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;127.0.0.1&#034;<\/span><br \/>\nlocalPort <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">12345<\/span><br \/>\ncustomDomains <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u4f60\u7684Ubuntu\u516c\u7f51IP&#034;<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p>\u53cc\u51fb\u542f\u52a8 frpc.exe\u51fa\u73b0 start proxy success \u5c31\u901a\u4e86&#xff01;<\/p>\n<p>\u6700\u7ec8\u8bbf\u95ee\u65b9\u5f0f&#xff08;\u5168\u4e16\u754c\u90fd\u80fd\u6253\u5f00&#xff09;<\/p>\n<p>https:\/\/\u4f60\u7684Ubuntu\u516c\u7f51IP:8080<\/p>\n<h3>3.3\u3001\u81ea\u5efa\u670d\u52a1\u5668\u89e3\u51b3\u201c\u8de8\u6e90\u9694\u79bb\u201d<\/h3>\n<h4>3.3.1\u3001IIS \u56fe\u5f62\u754c\u9762\u914d\u7f6e<\/h4>\n<p>\u6253\u5f00 IIS \u7ba1\u7406\u5668 \u2192 \u627e\u5230\u4f60\u90e8\u7f72 dist \u7684\u90a3\u4e2a\u7f51\u7ad9 \u4e2d\u95f4\u529f\u80fd\u89c6\u56fe\u91cc&#xff0c;\u53cc\u51fb HTTP \u54cd\u5e94\u5934 \u53f3\u4fa7 \u64cd\u4f5c \u2192 \u6dfb\u52a0&#xff0c;\u4f9d\u6b21\u52a0\u8fd9 3 \u4e2a\u5934&#xff1a;<\/p>\n<table>\n<tr>\u540d\u79f0\u503c<\/tr>\n<tbody>\n<tr>\n<td>Cross-Origin-Opener-Policy<\/td>\n<td>same-origin<\/td>\n<\/tr>\n<tr>\n<td>Cross-Origin-Embedder-Policy<\/td>\n<td>require-corp<\/td>\n<\/tr>\n<tr>\n<td>Cross-Origin-Resource-Policy<\/td>\n<td>same-origin<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u52a0\u5b8c \u76f4\u63a5\u5237\u65b0\u7f51\u9875 \u5c31\u751f\u6548&#xff08;\u4e0d\u7528\u91cd\u542f IIS \/ \u7f51\u7ad9&#xff09;<\/p>\n<h4>3.3.2\u3001vite.config.js<\/h4>\n<p>\u524d\u7aef\u65b9\u9762\u914d\u7f6evite.config.js<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> defineConfig <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;vite&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> vue <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;vitejs\/plugin-vue&#039;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token function\">defineConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">plugins<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token function\">vue<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">server<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">headers<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u4fdd\u7559\u8de8\u6e90\u9694\u79bb&#xff0c;\u4f46\u653e\u5bbd embed \u7b56\u7565&#xff08;\u907f\u514d\u62e6\u622a\u5408\u6cd5\u8d44\u6e90&#xff09;<\/span><br \/>\n      <span class=\"token string-property property\">&#039;Cross-Origin-Opener-Policy&#039;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;same-origin&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#039;Cross-Origin-Embedder-Policy&#039;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;credentialless&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u66ff\u6362 require-corp \u4e3a credentialless<\/span><br \/>\n      <span class=\"token string-property property\">&#039;Cross-Origin-Resource-Policy&#039;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;same-site&#039;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u7b80\u4ecb\u4e8c\u3001\u6548\u679c\u4e09\u3001\u6b65\u9aa43.1\u3001\u81ea\u5efa\u670d\u52a1\u5668\u90e8\u7f72\u7f51\u98753.1.1\u3001\u5f00\u542f Win11 \u7684 IIS \u670d\u52a13.1.2\u3001\u628a dist \u6587\u4ef6\u5939\u653e\u5230\u670d\u52a1\u56683.1.3\u3001IIS \u914d\u7f6e\u7f51\u7ad93.1.4\u3001\u5c40\u57df\u7f51\u8bbf\u95ee\u7f51\u7ad93.2\u3001\u7ed9\u81ea\u5efa\u670d\u52a1\u5668\u6574\u4e2a\u516c\u7f51IP3.2.1\u3001\u82b1\u751f\u58f3&#xff08;\u6700\u7b80\u5355&#xff09;3.2.2\u3001\u516c\u7f51\u670d\u52a1\u5668 Frp \u5185\u7f51\u7a7f\u900f3.2.2.1\u3001\u5728 Ubuntu \u516c\u7f51\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u670d\u52a1\u7aef&#xff09;3.2.2.2\u3001\u5728 Windows \u81ea\u5efa\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&amp;#xf<\/p>\n","protected":false},"author":2,"featured_media":81698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9133,9132,1404,205,43],"topic":[],"class_list":["post-81707","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ip","tag-9132","tag-devops","tag-tcp-ip","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357 - \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\/81707.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u7b80\u4ecb\u4e8c\u3001\u6548\u679c\u4e09\u3001\u6b65\u9aa43.1\u3001\u81ea\u5efa\u670d\u52a1\u5668\u90e8\u7f72\u7f51\u98753.1.1\u3001\u5f00\u542f Win11 \u7684 IIS \u670d\u52a13.1.2\u3001\u628a dist \u6587\u4ef6\u5939\u653e\u5230\u670d\u52a1\u56683.1.3\u3001IIS \u914d\u7f6e\u7f51\u7ad93.1.4\u3001\u5c40\u57df\u7f51\u8bbf\u95ee\u7f51\u7ad93.2\u3001\u7ed9\u81ea\u5efa\u670d\u52a1\u5668\u6574\u4e2a\u516c\u7f51IP3.2.1\u3001\u82b1\u751f\u58f3&#xff08;\u6700\u7b80\u5355&#xff09;3.2.2\u3001\u516c\u7f51\u670d\u52a1\u5668 Frp \u5185\u7f51\u7a7f\u900f3.2.2.1\u3001\u5728 Ubuntu \u516c\u7f51\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u670d\u52a1\u7aef&#xff09;3.2.2.2\u3001\u5728 Windows \u81ea\u5efa\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/81707.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T19:43:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194254-6a63c03e2e3f4.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\/81707.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/81707.html\",\"name\":\"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T19:43:02+00:00\",\"dateModified\":\"2026-07-24T19:43:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/81707.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/81707.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/81707.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357\"}]},{\"@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":"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357 - \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\/81707.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u7b80\u4ecb\u4e8c\u3001\u6548\u679c\u4e09\u3001\u6b65\u9aa43.1\u3001\u81ea\u5efa\u670d\u52a1\u5668\u90e8\u7f72\u7f51\u98753.1.1\u3001\u5f00\u542f Win11 \u7684 IIS \u670d\u52a13.1.2\u3001\u628a dist \u6587\u4ef6\u5939\u653e\u5230\u670d\u52a1\u56683.1.3\u3001IIS \u914d\u7f6e\u7f51\u7ad93.1.4\u3001\u5c40\u57df\u7f51\u8bbf\u95ee\u7f51\u7ad93.2\u3001\u7ed9\u81ea\u5efa\u670d\u52a1\u5668\u6574\u4e2a\u516c\u7f51IP3.2.1\u3001\u82b1\u751f\u58f3&#xff08;\u6700\u7b80\u5355&#xff09;3.2.2\u3001\u516c\u7f51\u670d\u52a1\u5668 Frp \u5185\u7f51\u7a7f\u900f3.2.2.1\u3001\u5728 Ubuntu \u516c\u7f51\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&#xff08;\u670d\u52a1\u7aef&#xff09;3.2.2.2\u3001\u5728 Windows \u81ea\u5efa\u670d\u52a1\u5668 \u4e0a\u64cd\u4f5c&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/81707.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T19:43:02+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260724194254-6a63c03e2e3f4.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\/81707.html","url":"https:\/\/www.wsisp.com\/helps\/81707.html","name":"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T19:43:02+00:00","dateModified":"2026-07-24T19:43:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/81707.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/81707.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/81707.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010DevOps\u3011\u4ece\u96f6\u642d\u5efa\uff1a\u81ea\u5efa\u670d\u52a1\u5668\u516c\u7f51 IP \u90e8\u7f72\u6307\u5357"}]},{"@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\/81707","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=81707"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/81707\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/81698"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=81707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=81707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=81707"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=81707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}