{"id":54167,"date":"2025-02-18T11:49:45","date_gmt":"2025-02-18T03:49:45","guid":{"rendered":"https:\/\/fwq.ai\/blog\/54167\/"},"modified":"2025-02-18T11:49:45","modified_gmt":"2025-02-18T03:49:45","slug":"debian%e7%b3%bb%e7%bb%9f%e4%b8%adv2ray%e7%9a%84config-json%e9%85%8d%e7%bd%ae%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/54167\/","title":{"rendered":"Debian\u7cfb\u7edf\u4e2dV2Ray\u7684config.json\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"<p>\u5728\u5f53\u4eca\u7684\u4fe1\u606f\u65f6\u4ee3\uff0c\u8bb8\u591a\u4eba\u9009\u62e9\u4f7f\u7528V2Ray\u6765\u548c\u4fdd\u62a4\u9690\u79c1\u3002\u5728Debian\u7cfb\u7edf\u4e2d\u914d\u7f6eV2Ray\u7684<code>config.json<\/code>\u6587\u4ef6\u53ef\u80fd\u5bf9\u8bb8\u591a\u65b0\u624b\u6765\u8bf4\u662f\u4e00\u4e2a\u6311\u6218\u3002\u672c\u6587\u5c06\u4e3a\u60a8\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6eV2Ray\u7684<code>config.json<\/code>\uff0c\u4ee5\u4fbf\u60a8\u80fd\u591f\u987a\u5229\u4f7f\u7528\u8fd9\u4e00\u5f3a\u5927\u7684\u5de5\u5177\u3002<\/p>\n<h2>\u4ec0\u4e48\u662fV2Ray\uff1f<\/h2>\n<p>V2Ray\u662f\u4e00\u4e2a\u7528\u4e8e\u7f51\u7edc\u4ee3\u7406\u7684\u5de5\u5177\uff0c\u65e8\u5728\u5e2e\u52a9\u7528\u6237\u8bbf\u95ee\u53d7\u9650\u7f51\u7ad9\u3001\u4fdd\u62a4\u9690\u79c1\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u534f\u8bae\u548c\u4f20\u8f93\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89c4\u907f\u7f51\u7edc\u76d1\u63a7\u3002\u901a\u8fc7\u6b63\u786e\u914d\u7f6eV2Ray\uff0c\u7528\u6237\u53ef\u4ee5\u4eab\u53d7\u5230\u66f4\u5b89\u5168\u3001\u66f4\u4fbf\u6377\u7684\u7f51\u7edc\u4f53\u9a8c\u3002<\/p>\n<h2>Debian\u5b89\u88c5V2Ray<\/h2>\n<p>\u5728\u5f00\u59cb\u914d\u7f6e<code>config.json<\/code>\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u60a8\u5df2\u7ecf\u5728Debian\u7cfb\u7edf\u4e2d\u6210\u529f\u5b89\u88c5\u4e86V2Ray\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u7684\u7b80\u8981\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u66f4\u65b0\u7cfb\u7edf<\/strong><br \/> \u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\uff1a<br \/> bash<br \/> sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5V2Ray<\/strong><br \/> \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5V2Ray\uff1a<br \/> bash<br \/> bash &lt;(curl -s -L https:\/\/git.io\/v2ray.sh)<\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5V2Ray\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5<\/strong><br \/> \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5V2Ray\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1a<br \/> bash<br \/> v2ray -version<\/p>\n<p>\u5982\u679c\u8f93\u51fa\u7248\u672c\u53f7\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>V2Ray\u7684config.json\u6587\u4ef6<\/h2>\n<p>V2Ray\u7684\u6240\u6709\u914d\u7f6e\u5747\u4fdd\u5b58\u5728<code>config.json<\/code>\u6587\u4ef6\u4e2d\uff0c\u8be5\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e<code>\/etc\/v2ray\/config.json<\/code>\u3002\u8fd9\u4e2a\u6587\u4ef6\u5305\u542b\u4e86V2Ray\u7684\u6240\u6709\u91cd\u8981\u8bbe\u7f6e\u3002<\/p>\n<h3>config.json\u7684\u57fa\u672c\u7ed3\u6784<\/h3>\n<p><code>config.json<\/code>\u6587\u4ef6\u91c7\u7528JSON\u683c\u5f0f\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a<\/p>\n<ul>\n<li><strong>inbounds<\/strong>\uff1a\u7528\u4e8e\u8bbe\u7f6eV2Ray\u7684\u5165\u7ad9\u4ee3\u7406\uff0c\u5373\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u914d\u7f6e\u3002<\/li>\n<li><strong>outbounds<\/strong>\uff1a\u7528\u4e8e\u8bbe\u7f6eV2Ray\u7684\u51fa\u7ad9\u4ee3\u7406\uff0c\u5373\u4e0e\u5916\u90e8\u7f51\u7edc\u7684\u8fde\u63a5\u914d\u7f6e\u3002<\/li>\n<li><strong>routing<\/strong>\uff1a\u7528\u4e8e\u914d\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u4ee5\u51b3\u5b9a\u6570\u636e\u6d41\u5411\u3002<\/li>\n<li><strong>dns<\/strong>\uff1a\u7528\u4e8e\u914d\u7f6eDNS\u76f8\u5173\u7684\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<h3>\u914d\u7f6einbounds<\/h3>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5178\u578b\u7684<code>inbounds<\/code>\u914d\u7f6e\u793a\u4f8b\uff1a<br \/> \u201cinbounds\u201d: [<br \/> {<br \/> \u201cport\u201d: 1080,<br \/> \u201cprotocol\u201d: \u201csocks\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cauth\u201d: \u201cnoauth\u201d,<br \/> \u201cudp\u201d: true,<br \/> \u201cip\u201d: \u201c127.0.0.1\u201d<br \/> }<br \/> }<br \/> ]<\/p>\n<ul>\n<li><strong>port<\/strong>: \u76d1\u542c\u7684\u7aef\u53e3\uff0c\u901a\u5e38\u4e3a1080\u3002<\/li>\n<li><strong>protocol<\/strong>: \u8bbe\u7f6e\u534f\u8bae\u7c7b\u578b\uff0c\u8fd9\u91cc\u4f7f\u7528\u7684\u662f<code>socks<\/code>\u534f\u8bae\u3002<\/li>\n<li><strong>auth<\/strong>: \u662f\u5426\u9700\u8981\u8ba4\u8bc1\uff0c\u8bbe\u7f6e\u4e3a<code>noauth<\/code>\u8868\u793a\u4e0d\u9700\u8981\u3002<\/li>\n<li><strong>udp<\/strong>: \u662f\u5426\u652f\u6301UDP\u8fde\u63a5\uff0c\u8bbe\u7f6e\u4e3a<code>true<\/code>\u8868\u793a\u652f\u6301\u3002<\/li>\n<li><strong>ip<\/strong>: \u672c\u5730\u5730\u5740\uff0c\u901a\u5e38\u4e3a<code>127.0.0.1<\/code>\u3002<\/li>\n<\/ul>\n<h3>\u914d\u7f6eoutbounds<\/h3>\n<p><code>outbounds<\/code>\u90e8\u5206\u7528\u4e8e\u8bbe\u7f6eV2Ray\u4e0e\u5916\u90e8\u7f51\u7edc\u7684\u8fde\u63a5\uff1a<br \/> \u201coutbounds\u201d: [<br \/> {<br \/> \u201cprotocol\u201d: \u201cvmess\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cvnext\u201d: [<br \/> {<br \/> \u201caddress\u201d: \u201cyour-server-address\u201d,<br \/> \u201cport\u201d: your-server-port,<br \/> \u201cusers\u201d: [<br \/> {<br \/> \u201cid\u201d: \u201cyour-uuid\u201d,<br \/> \u201calterId\u201d: your-alterId<br \/> }<br \/> ]<br \/> }<br \/> ]<br \/> }<br \/> }<br \/> ]<\/p>\n<ul>\n<li><strong>protocol<\/strong>: \u8bbe\u7f6e\u534f\u8bae\u7c7b\u578b\uff0c\u8fd9\u91cc\u4f7f\u7528\u7684\u662f<code>vmess<\/code>\u534f\u8bae\u3002<\/li>\n<li><strong>address<\/strong>: \u60a8\u7684V2Ray\u670d\u52a1\u5668\u5730\u5740\u3002<\/li>\n<li><strong>port<\/strong>: V2Ray\u670d\u52a1\u5668\u7684\u7aef\u53e3\u3002<\/li>\n<li><strong>id<\/strong>: \u60a8\u7684UUID\uff0c\u8fd9\u901a\u5e38\u5728\u670d\u52a1\u5668\u914d\u7f6e\u4e2d\u751f\u6210\u3002<\/li>\n<li><strong>alterId<\/strong>: \u7528\u4e8e\u589e\u5f3a\u5b89\u5168\u6027\uff0c\u63a8\u8350\u4f7f\u752816\u3002<\/li>\n<\/ul>\n<h3>\u914d\u7f6erouting<\/h3>\n<p><code>routing<\/code>\u90e8\u5206\u7528\u4e8e\u8bbe\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u51b3\u5b9a\u54ea\u4e9b\u6d41\u91cf\u8d70V2Ray\uff1a<br \/> \u201crouting\u201d: {<br \/> \u201crules\u201d: [<br \/> {<br \/> \u201ctype\u201d: \u201cfield\u201d,<br \/> \u201cip\u201d: [\u201cgeo:cn\u201d],<br \/> \u201coutboundTag\u201d: \u201cblocked\u201d<br \/> }<br \/> ]<br \/> }<\/p>\n<ul>\n<li><strong>type<\/strong>: \u89c4\u5219\u7c7b\u578b\uff0c\u8fd9\u91cc\u4e3a<code>field<\/code>\u3002<\/li>\n<li><strong>ip<\/strong>: \u6307\u5b9a\u7684IP\u5730\u5740\u6216\u5730\u7406\u4f4d\u7f6e\uff0c\u8fd9\u91cc\u8868\u793a\u4e2d\u56fd\u7684IP\u3002<\/li>\n<li><strong>outboundTag<\/strong>: \u5bf9\u5e94\u7684\u51fa\u7ad9\u6807\u7b7e\uff0c\u8fd9\u91cc\u8868\u793a\u88ab\u963b\u6b62\u7684\u6d41\u91cf\u3002<\/li>\n<\/ul>\n<h3>\u914d\u7f6edns<\/h3>\n<p>DNS\u914d\u7f6e\u90e8\u5206\uff0c\u786e\u4fdd\u60a8\u80fd\u591f\u6b63\u786e\u89e3\u6790\u57df\u540d\uff1a<br \/> \u201cdns\u201d: {<br \/> \u201cservers\u201d: [<br \/> \u201c8.8.8.8\u201d,<br \/> \u201c8.8.4.4\u201d<br \/> ]<br \/> }<\/p>\n<ul>\n<li><strong>servers<\/strong>: \u6307\u5b9a\u7684DNS\u670d\u52a1\u5668\u5730\u5740\uff0c\u8fd9\u91cc\u4f7f\u7528Google\u7684\u516c\u5171DNS\u3002<\/li>\n<\/ul>\n<h2>\u5b8c\u6574\u7684config.json\u793a\u4f8b<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684<code>config.json<\/code>\u793a\u4f8b\uff1a<\/p>\n<p>{<br \/> \u201cinbounds\u201d: [<br \/> {<br \/> \u201cport\u201d: 1080,<br \/> \u201cprotocol\u201d: \u201csocks\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cauth\u201d: \u201cnoauth\u201d,<br \/> \u201cudp\u201d: true,<br \/> \u201cip\u201d: \u201c127.0.0.1\u201d<br \/> }<br \/> }<br \/> ],<br \/> \u201coutbounds\u201d: [<br \/> {<br \/> \u201cprotocol\u201d: \u201cvmess\u201d,<br \/> \u201csettings\u201d: {<br \/> \u201cvnext\u201d: [<br \/> {<br \/> \u201caddress\u201d: \u201cyour-server-address\u201d,<br \/> \u201cport\u201d: your-server-port,<br \/> \u201cusers\u201d: [<br \/> {<br \/> \u201cid\u201d: \u201cyour-uuid\u201d,<br \/> \u201calterId\u201d: your-alterId<br \/> }<br \/> ]<br \/> }<br \/> ]<br \/> }<br \/> }<br \/> ],<br \/> \u201crouting\u201d: {<br \/> \u201crules\u201d: [<br \/> {<br \/> \u201ctype\u201d: \u201cfield\u201d,<br \/> \u201cip\u201d: [\u201cgeo:cn\u201d],<br \/> \u201coutboundTag\u201d: \u201cblocked\u201d<br \/> }<br \/> ]<br \/> },<br \/> \u201cdns\u201d: {<br \/> \u201cservers\u201d: [<br \/> \u201c8.8.8.8\u201d,<br \/> \u201c8.8.4.4\u201d<br \/> ]<br \/> }<br \/> }<\/p>\n<h2>\u6d4b\u8bd5V2Ray\u914d\u7f6e<\/h2>\n<p>\u5b8c\u6210<code>config.json<\/code>\u6587\u4ef6\u914d\u7f6e\u540e\uff0c\u60a8\u9700\u8981\u91cd\u542fV2Ray\u670d\u52a1\u5e76\u6d4b\u8bd5\u914d\u7f6e\u662f\u5426\u751f\u6548\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u91cd\u542fV2Ray\uff1a<br \/> bash<br \/> sudo systemctl restart v2ray<\/p>\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770bV2Ray\u7684\u72b6\u6001\uff1a<br \/> bash<br \/> systemctl status v2ray<\/p>\n<p>\u786e\u4fddV2Ray\u670d\u52a1\u6b63\u5e38\u8fd0\u884c\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u88ab\u5899\u7f51\u7ad9\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<h2>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\uff08FAQ\uff09<\/h2>\n<h3>1. \u5982\u4f55\u83b7\u53d6V2Ray\u7684UUID\uff1f<\/h3>\n<p>\u8981\u83b7\u53d6V2Ray\u7684UUID\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\uff1a<br \/> bash<br \/> cat \/proc\/sys\/kernel\/random\/uuid<\/p>\n<p>\u8fd9\u5c06\u751f\u6210\u4e00\u4e2a\u968f\u673a\u7684UUID\uff0c\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002<\/p>\n<h3>2. \u5982\u4f55\u4fee\u6539V2Ray\u7684\u7aef\u53e3\uff1f<\/h3>\n<p>\u60a8\u53ef\u4ee5\u5728<code>config.json<\/code>\u4e2d\u7684<code>inbounds<\/code>\u90e8\u5206\u4fee\u6539<code>port<\/code>\u5b57\u6bb5\uff0c\u4f8b\u5982\uff1a<br \/> \u201cport\u201d: 1080<\/p>\n<p>\u5c061080\u66ff\u6362\u4e3a\u60a8\u5e0c\u671b\u4f7f\u7528\u7684\u7aef\u53e3\u53f7\u3002<\/p>\n<h3>3. V2Ray\u5982\u4f55\u5b9e\u73b0\u5206\u6d41\uff1f<\/h3>\n<p>\u5206\u6d41\u53ef\u4ee5\u901a\u8fc7<code>routing<\/code>\u90e8\u5206\u5b9e\u73b0\uff0c\u53ef\u4ee5\u4e3a\u4e0d\u540c\u7684IP\u5730\u5740\u6216\u57df\u540d\u8bbe\u7f6e\u4e0d\u540c\u7684\u6d41\u91cf\u89c4\u5219\u3002\u60a8\u53ef\u4ee5\u5728<code>rules<\/code>\u6570\u7ec4\u4e2d\u6dfb\u52a0\u591a\u4e2a\u89c4\u5219\u3002<\/p>\n<h3>4. V2Ray\u662f\u5426\u652f\u6301\u5176\u4ed6\u534f\u8bae\uff1f<\/h3>\n<p>\u662f\u7684\uff0cV2Ray\u652f\u6301\u591a\u79cd\u534f\u8bae\uff0c\u4f8b\u5982<code>vmess<\/code>\u3001<code>vless<\/code>\u3001<code>shadowsocks<\/code>\u7b49\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n<h3>5. \u5982\u4f55\u67e5\u770bV2Ray\u7684\u65e5\u5fd7\uff1f<\/h3>\n<p>\u60a8\u53ef\u4ee5\u5728<code>config.json<\/code>\u4e2d\u914d\u7f6e\u65e5\u5fd7\u7b49\u7ea7\uff0c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<br \/> \u201clog\u201d: {<br \/> \u201cloglevel\u201d: \u201cinfo\u201d<br \/> }<\/p>\n<p>\u8fd9\u5c06\u8bb0\u5f55\u8be6\u7ec6\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u65b9\u4fbf\u60a8\u6392\u67e5\u95ee\u9898\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5728Debian\u7cfb\u7edf\u4e2d\u914d\u7f6eV2Ray\u7684<code>config.json<\/code>\u6587\u4ef6\u867d\u7136\u521d\u770b\u590d\u6742\uff0c\u4f46\u53ea\u8981\u6309\u7167\u6b65\u9aa4\u6765\uff0c\u4fbf\u80fd\u987a\u5229\u5b8c\u6210\u914d\u7f6e\u3002\u901a\u8fc7\u914d\u7f6einbounds\u3001outbounds\u3001routing\u53cadns\uff0c\u60a8\u53ef\u4ee5\u5145\u5206\u5229\u7528V2Ray\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u5b9e\u73b0\u5b89\u5168\u548c\u81ea\u7531\u7684\u7f51\u7edc\u4f53\u9a8c\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u5230\u60a8\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5f53\u4eca\u7684\u4fe1\u606f\u65f6\u4ee3\uff0c\u8bb8\u591a\u4eba\u9009\u62e9\u4f7f\u7528V2Ray\u6765\u548c\u4fdd\u62a4\u9690\u79c1\u3002\u5728Debian\u7cfb\u7edf\u4e2d\u914d\u7f6eV2Ray\u7684config.json\u6587\u4ef6\u53ef\u80fd\u5bf9\u8bb8\u591a\u65b0\u624b\u6765\u8bf4\u662f\u4e00\u4e2a\u6311\u6218\u3002\u672c\u6587\u5c06\u4e3a\u60a8\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6eV2Ray\u7684config.json\uff0c\u4ee5\u4fbf\u60a8\u80fd\u591f\u987a\u5229\u4f7f\u7528\u8fd9\u4e00\u5f3a\u5927\u7684\u5de5\u5177\u3002 \u4ec0\u4e48\u662fV2Ray\uff1f V2Ray\u662f\u4e00\u4e2a\u7528\u4e8e\u7f51\u7edc\u4ee3\u7406\u7684\u5de5\u5177\uff0c\u65e8\u5728\u5e2e\u52a9\u7528\u6237\u8bbf\u95ee\u53d7\u9650\u7f51\u7ad9\u3001\u4fdd\u62a4\u9690\u79c1\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u534f\u8bae\u548c\u4f20\u8f93\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u89c4\u907f\u7f51\u7edc\u76d1\u63a7\u3002\u901a\u8fc7\u6b63\u786e\u914d\u7f6eV2Ray\uff0c\u7528\u6237\u53ef\u4ee5\u4eab\u53d7\u5230\u66f4\u5b89\u5168\u3001\u66f4\u4fbf\u6377\u7684\u7f51\u7edc\u4f53\u9a8c\u3002 Debian\u5b89\u88c5V2Ray \u5728\u5f00\u59cb\u914d\u7f6econfig.json\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u60a8\u5df2\u7ecf\u5728Debian\u7cfb\u7edf\u4e2d\u6210\u529f\u5b89\u88c5\u4e86V2Ray\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5\u7684\u7b80\u8981\u6b65\u9aa4\uff1a \u66f4\u65b0\u7cfb\u7edf \u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\uff1a bash sudo apt update &amp;&amp; sudo apt upgrade -y \u5b89\u88c5V2Ray \u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5V2Ray\uff1a bash bash &lt;(curl -s -L https:\/\/git.io\/v2ray.sh) \u8fd9\u6761\u547d\u4ee4\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5V2Ray\u3002 \u9a8c\u8bc1\u5b89\u88c5 \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5V2Ray\u662f\u5426\u6210\u529f\u5b89\u88c5\uff1a bash v2ray -version \u5982\u679c\u8f93\u51fa\u7248\u672c\u53f7\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002 V2Ray\u7684config.json\u6587\u4ef6 V2Ray\u7684\u6240\u6709\u914d\u7f6e\u5747\u4fdd\u5b58\u5728config.json\u6587\u4ef6\u4e2d\uff0c\u8be5\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e\/etc\/v2ray\/config.json\u3002\u8fd9\u4e2a\u6587\u4ef6\u5305\u542b\u4e86V2Ray\u7684\u6240\u6709\u91cd\u8981\u8bbe\u7f6e\u3002 config.json\u7684\u57fa\u672c\u7ed3\u6784 config.json\u6587\u4ef6\u91c7\u7528JSON\u683c\u5f0f\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a inbounds\uff1a\u7528\u4e8e\u8bbe\u7f6eV2Ray\u7684\u5165\u7ad9\u4ee3\u7406\uff0c\u5373\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u914d\u7f6e\u3002 outbounds\uff1a\u7528\u4e8e\u8bbe\u7f6eV2Ray\u7684\u51fa\u7ad9\u4ee3\u7406\uff0c\u5373\u4e0e\u5916\u90e8\u7f51\u7edc\u7684\u8fde\u63a5\u914d\u7f6e\u3002 routing\uff1a\u7528\u4e8e\u914d\u7f6e\u8def\u7531\u89c4\u5219\uff0c\u4ee5\u51b3\u5b9a\u6570\u636e\u6d41\u5411\u3002 dns\uff1a\u7528\u4e8e\u914d\u7f6eDNS\u76f8\u5173\u7684\u8bbe\u7f6e\u3002 \u914d\u7f6einbounds \u4ee5\u4e0b\u662f\u4e00\u4e2a\u5178\u578b\u7684inbounds\u914d\u7f6e\u793a\u4f8b\uff1a \u201cinbounds\u201d: [ { \u201cport\u201d: 1080, \u201cprotocol\u201d: \u201csocks\u201d, \u201csettings\u201d: { \u201cauth\u201d: \u201cnoauth\u201d, \u201cudp\u201d: true, \u201cip\u201d: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-54167","post","type-post","status-publish","format-standard","hentry","category-vpn"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=54167"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/54167\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=54167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=54167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=54167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}