{"id":7864,"date":"2021-06-19T13:15:59","date_gmt":"2021-06-19T05:15:59","guid":{"rendered":"https:\/\/www.choubb.com\/?p=7864"},"modified":"2021-08-20T15:55:58","modified_gmt":"2021-08-20T07:55:58","slug":"%e6%97%b6%e9%9a%94%e4%b8%80%e5%b9%b4%e5%86%8d%e8%a3%85v2ray","status":"publish","type":"post","link":"https:\/\/www.choubb.com\/?p=7864","title":{"rendered":"\u65f6\u9694\u4e00\u5e74\u518d\u88c5V2ray"},"content":{"rendered":"\n<p>\u4ece\u591a\u5e74\u524d\u81ea\u5efass\uff0c\u7136\u540edocker\u88c5ss\uff0c\u518d\u8f6cv2ray\uff0c\u4e00\u8def\u7ffb\u5c71\u6d89\u6c34\uff0c\u867d\u6709\u8f9b\u52b3\uff0c\u5e76\u65e0\u9669\u963b\u3002\u773c\u770b\u5f52\u56fd\u4e4b\u65e5\u6e10\u8fd1\uff0c\u8fd9\u4e24\u65e5\u91cd\u642d\u68af\u5b50\uff0c\u5374\u6ca1\u5c11\u6298\u817e\u3002\u61d2\u5f97\u770b\u957f\u6587\u53c2\u6570\u548c\u539f\u7406\uff0c\u7f51\u4e0a\u641c\u4e2a\u653b\u7565\u5f00\u5e72\u5747\u544a\u5931\u8d25\uff0c\u662f\u81ea\u5df1\u8001\u5bb6\u6237\u4e0d\u7075\u4e86\uff0c\u8fd8\u662f\u9053\u884c\u5347\u9ad8\uff1f\u53cd\u6b63\u662f\u4e24\u4e0d\u642d\u4e86\ud83e\udd23\u3002<\/p>\n\n\n\n<p>\u53cd\u590d\u67e5linux\u547d\u4ee4\u6743\u9650\u548ctroubleshooting\uff0c\u53cd\u590d\u8bd5\u9519\u540e\u7ec8\u4e8e\u6210\u529f\uff0c\u4e0e\u4ffa\u7684WP\u4e3b\u673a\u4e00\u540c\u8fd0\u884c,CPU\u5360\u7528\u7387\u57fa\u672c\u6ca1\u5565\u53d8\u5316\uff0c\u7ef4\u6301\u57285-6%\u3002\u5b9e\u65bd\u6b65\u9aa4\u5982\u4e0b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-verse\"><strong>\u653b\u7565<\/strong>\uff1a<a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u5b89\u88c5\u524d\u7684\u51c6\u5907\">https:\/\/guide.v2fly.org\/prep\/install.html#\u5b89\u88c5\u524d\u7684\u51c6\u5907<\/a><\/pre>\n\n\n\n<p>\u5148\u8d4b\u4e88root\u6743\u9650<\/p>\n\n\n\n<pre class=\"wp-block-verse\">usr@WP_server:~$ sudo su\n<\/pre>\n\n\n\n<p>\u5b89\u88c5 curl<\/p>\n\n\n\n<pre class=\"wp-block-verse\">root@server:\/home\/usr# apt install curl<\/pre>\n\n\n\n<p><br \/>\u4e0b\u8f7d\u5b89\u88c5\u811a\u672c<\/p>\n\n\n\n<pre class=\"wp-block-verse\">root@server:\/home\/usr# sudo curl -O https:\/\/raw.githubusercontent.com\/v2fly\/fhs-install-v2ray\/master\/install-release.sh\n<\/pre>\n\n\n\n<p>\u6267\u884c\u811a\u672c\u5b89\u88c5V2ray\u53ca\u5176\u8f93\u51fa\u7ed3\u679c<\/p>\n\n\n\n<pre class=\"wp-block-verse\">root@server:\/home\/usr# sudo bash install-release.sh<\/pre>\n\n\n\n<pre class=\"wp-block-verse\"><br \/>info: Installing V2Ray v4.39.2 for x86_64<br \/>Downloading V2Ray archive: https:\/\/github.com\/v2fly\/v2ray-core\/releases\/download\/v4.39.2\/v2ray-linux-64.zip<br \/>% Total % Received % Xferd Average Speed Time Time Time Current<br \/>Dload Upload Total Spent Left Speed<br \/>100 626 100 626 0 0 2484 0 --:--:-- --:--:-- --:--:-- 2474<br \/>100 12.3M 100 12.3M 0 0 12.0M 0 0:00:01 0:00:01 --:--:-- 12.0M<br \/>Downloading verification file for V2Ray archive: https:\/\/github.com\/v2fly\/v2ray-core\/releases\/download\/v4.39.2\/v2ray-linux-64.zip.dgst<br \/>info: Extract the V2Ray package to \/tmp\/tmp.L2IP5rOk7z and prepare it for installation.<br \/>rm: cannot remove '\/etc\/systemd\/system\/v2ray.service.d\/10-donot_touch_multi_conf.conf': No such file or directory<br \/>rm: cannot remove '\/etc\/systemd\/system\/v2ray@.service.d\/10-donot_touch_multi_conf.conf': No such file or directory<br \/>info: Systemd service files have been installed successfully!<br \/>warning: The following are the actual parameters for the v2ray service startup.<br \/>warning: Please make sure the configuration file path is correctly set.<\/pre>\n\n\n\n<pre class=\"wp-block-verse\">[Unit]Description=V2Ray Service<br \/>Documentation=https:\/\/www.v2fly.org\/<br \/>After=network.target nss-lookup.target[Service]User=nobody<br \/>CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE<br \/>AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE<br \/>NoNewPrivileges=true<br \/>ExecStart=\/usr\/local\/bin\/v2ray -config \/usr\/local\/etc\/v2ray\/config.json<br \/>Restart=on-failure<br \/>RestartPreventExitStatus=23[Install]WantedBy=multi-user.target<br \/># In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there.<br \/># Or all changes you made will be lost! # Refer: https:\/\/www.freedesktop.org\/software\/systemd\/man\/systemd.unit.html<br \/>[Service]ExecStart=<br \/>ExecStart=\/usr\/local\/bin\/v2ray -config \/usr\/local\/etc\/v2ray\/config.json<\/pre>\n\n\n\n<pre class=\"wp-block-verse\">warning: The systemd version on the current operating system is too low.\nwarning: Please consider to upgrade the systemd or the operating system.\ninstalled: \/usr\/local\/bin\/v2ray\ninstalled: \/usr\/local\/bin\/v2ctl\ninstalled: \/usr\/local\/share\/v2ray\/geoip.dat\ninstalled: \/usr\/local\/share\/v2ray\/geosite.dat\ninstalled: \/usr\/local\/etc\/v2ray\/config.json\ninstalled: \/var\/log\/v2ray\/\ninstalled: \/var\/log\/v2ray\/access.log\ninstalled: \/var\/log\/v2ray\/error.log\ninstalled: \/etc\/systemd\/system\/v2ray.service\ninstalled: \/etc\/systemd\/system\/v2ray@.service\nremoved: \/tmp\/tmp.L2IP5rOk7z\ninfo: V2Ray v4.39.2 is installed.\nYou may need to execute a command to remove dependent software: apt purge curl unzip\nPlease execute the command: systemctl enable v2ray; systemctl start v2ray\n<\/pre>\n\n\n\n<p>\u9519\u8befwarning\u4e00\u5806\u86ee\u5413\u4eba\u7684\u54c8\uff0c\u4e0d\u7ba1\u7ee7\u7eed\u641e\uff0c\u8bbe\u7f6econfig.json\uff0cenable\uff0cstart\uff0cstatus\u4e00\u6c14\u5475\u6210<\/p>\n\n\n\n<pre class=\"wp-block-verse\">root@server:\/home\/usr# sudo nano \/usr\/local\/etc\/v2ray\/config.json\nroot@server:\/home\/usr# systemctl enable v2ray\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/v2ray.service \u2192 \/etc\/systemd\/system\/v2ray.service.\nroot@server:\/home\/usr# systemctl start v2ray\nroot@server:\/home\/usr# systemctl status v2ray<\/pre>\n\n\n\n<p><br \/>\u8f93\u51fa\u5982\u4e0b\uff0c\u5927\u529f\u544a\u6210<\/p>\n\n\n\n<pre class=\"wp-block-verse\">\u25cf v2ray.service - V2Ray Service\nLoaded: loaded (\/etc\/systemd\/system\/v2ray.service; enabled; vendor preset: enabled)\nDrop-In: \/etc\/systemd\/system\/v2ray.service.d\n\u2514\u250010-donot_touch_single_conf.conf\nActive: active (running) since Fri 2021-06-18 17:58:27 CST; 8s ago\nDocs: https:\/\/www.v2fly.org\/\nMain PID: 1531 (v2ray)\nTasks: 5 (limit: 1106)\nCGroup: \/system.slice\/v2ray.service\n\u2514\u25001531 \/usr\/local\/bin\/v2ray -config \/usr\/local\/etc\/v2ray\/config.json\nJun 18 17:58:27 server systemd[1]: Started V2Ray Service.\nJun 18 17:58:27 server v2ray[1531]: V2Ray 4.39.2 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.16.4\nJun 18 17:58:27 server v2ray[1531]: A unified platform for anti-censorship.\nJun 18 17:58:27 server v2ray[1531]: 2021\/06\/18 09:58:27 [Info] main\/jsonem: Reading config: \/usr\/local\/etc\/v2ra\n[1]+ Stopped systemctl status v2ray<\/pre>\n\n\n\n<p>\u6700\u540e\u9001\u4e00\u4e2aUUID\u751f\u6210\u5668\uff0c\u7528\u6237ID\u5c31\u662f\u4e00\u4e2aUUID\uff1a<a href=\"https:\/\/1024tools.com\/uuid?\">https:\/\/1024tools.com\/uuid?<\/a><\/p>\n\n\n\n<p>\u6700\u540e\u662f\u4ffa\u6284\u7684config.json\uff0c\u6700\u76f4\u767d\u7b80\u5355\u7684TCP\u65b9\u5f0f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"log\": {\n  \"loglevel\": \"warning\",\n  \"access\": \"\/var\/log\/v2ray\/access.log\", \/\/ \u8fd9\u662f Linux \u7684\u8def\u5f84\n  \"error\": \"\/var\/log\/v2ray\/error.log\"\n },\n  \"inbounds\": &#91;{\n    \"port\": <strong>xxxx<\/strong>,           \/\/!!! \u6b64\u5904\u4e3a\u5b89\u88c5\u65f6\u751f\u6210\u7684\u7aef\u53e3\uff0c\u53ef\u4fee\u6539\u968f\u610f\uff0c\u4f46\u662f\u4fdd\u8bc1\u548c\u4e0b\u9762\u63d0\u5230\u7684\u7aef\u53e3\u53f7\u76f8\u540c\n    \/\/\"listen\":\"127.0.0.1\",  \/\/ !!! uncomment for nginx local forwarding\n    \"protocol\": \"vmess\",\n    \"settings\": {\n      \"clients\": &#91;\n        {\n          \"id\": \"<strong>a0100cc1-b1f1-4899-9483-4aa73276343e<\/strong>\", \/\/!!! \u4fee\u6539\u4e3a\u4efb\u4e00\u5408\u6cd5UUID\n          \"level\": 1,\n          \"alterId\": 64      \/\/\u6b64\u5904\u4e3a\u5b89\u88c5\u65f6\u751f\u6210\u7684 alterId\n        }\n      ]\n    },\n    \"streamSettings\": {\n\t    \"network\": \"<strong>tcp<\/strong>\"\n    }\n  }],\n  \"outbounds\": &#91;{\n    \"protocol\": \"freedom\",\n    \"settings\": {}\n  },{\n    \"protocol\": \"blackhole\",\n    \"settings\": {},\n    \"tag\": \"blocked\"\n  }],\n  \"routing\": {\n    \"rules\": &#91;\n      {\n        \"type\": \"field\",\n        \"ip\": &#91;\"geoip:private\"],\n        \"outboundTag\": \"blocked\"\n      }\n    ]\n  }\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-luminous-vivid-orange-color has-pale-cyan-blue-background-color has-text-color has-background has-large-font-size\"><strong>\u540e\u9644\u5b89\u88c5\u624b\u518c\u5168\u6587\uff0c\u4ee5\u5907\u4e0d\u65f6<\/strong>\uff1ahttps:\/\/guide.v2fly.org\/prep\/install.html#\u5ba2\u6237\u7aef\u5b89\u88c5<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5b89\u88c5\">\u5b89\u88c5<\/h3>\n\n\n\n<p>\u672c\u8282\u5c06\u8bf4\u660e\u5982\u4f55\u5b89\u88c5 V2Ray\uff0c\u5185\u5bb9\u5305\u542b\u670d\u52a1\u5668\u5b89\u88c5\u548c\u5ba2\u6237\u7aef\u5b89\u88c5\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0e Shadowsocks \u4e0d\u540c\uff0c\u4ece\u8f6f\u4ef6\u4e0a V2Ray \u4e0d\u533a\u5206\u670d\u52a1\u5668\u7248\u548c\u5ba2\u6237\u7aef\u7248\uff0c\u4e5f\u5c31\u662f\u8bf4\u5728\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u8fd0\u884c\u7684 V2Ray \u662f\u540c\u4e00\u4e2a\u8f6f\u4ef6\uff0c\u533a\u522b\u53ea\u662f\u914d\u7f6e\u6587\u4ef6\u7684\u4e0d\u540c\u3002\u56e0\u6b64 V2Ray \u7684\u5b89\u88c5\u5728\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u4e0a\u662f\u4e00\u6837\u7684\uff0c\u4f46\u662f\u901a\u5e38\u60c5\u51b5\u4e0b VPS \u4f7f\u7528\u7684\u662f Linux \u800c PC \u4f7f\u7528\u7684\u662f Windows\uff0c\u56e0\u6b64\u672c\u7ae0\u9ed8\u8ba4\u670d\u52a1\u5668\u4e3a Linux VPS\uff0c\u5ba2\u6237\u7aef\u4e3a Windows PC\u3002\u5982\u679c\u4f60\u7684 PC \u4f7f\u7528\u7684\u662f Linux \u64cd\u4f5c\u7cfb\u7edf\uff0c\u90a3\u4e48\u8bf7\u53c2\u8003\u672c\u6587\u7684\u670d\u52a1\u5668\u5b89\u88c5\uff1bVPS \u4f7f\u7528\u7684\u662f Windows\uff0c\u53c2\u8003\u672c\u6587\u7684\u5ba2\u6237\u7aef\u5b89\u88c5\uff1b\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f MacOS \uff0c\u8bf7\u4f60\u81ea\u884c\u7814\u7a76\u600e\u4e48\u5b89\u88c5\u5427\uff0c\u5b89\u88c5\u5b8c\u4e86\u8df3\u8fc7\u672c\u8282\u7ee7\u7eed\u5f80\u4e0b\u770b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5b89\u88c5\u524d\u7684\u51c6\u5907\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u5b89\u88c5\u524d\u7684\u51c6\u5907\">#<\/a>\u5b89\u88c5\u524d\u7684\u51c6\u5907<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u65f6\u95f4\u6821\u51c6\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u65f6\u95f4\u6821\u51c6\">#<\/a>\u65f6\u95f4\u6821\u51c6<\/h3>\n\n\n\n<p>\u5bf9\u4e8e V2Ray\uff0c\u5b83\u7684\u9a8c\u8bc1\u65b9\u5f0f\u5305\u542b\u65f6\u95f4\uff0c\u5c31\u7b97\u662f\u914d\u7f6e\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\uff0c\u5982\u679c\u65f6\u95f4\u4e0d\u6b63\u786e\uff0c\u4e5f\u65e0\u6cd5\u8fde\u63a5 V2Ray \u670d\u52a1\u5668\u7684\uff0c\u670d\u52a1\u5668\u4f1a\u8ba4\u4e3a\u4f60\u8fd9\u662f\u4e0d\u5408\u6cd5\u7684\u8bf7\u6c42\u3002\u6240\u4ee5\u7cfb\u7edf\u65f6\u95f4\u4e00\u5b9a\u8981\u6b63\u786e\uff0c\u53ea\u8981\u4fdd\u8bc1\u65f6\u95f4\u8bef\u5dee\u5728<strong>90 \u79d2<\/strong>\u4e4b\u5185\u5c31\u6ca1\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e VPS(Linux) \u53ef\u4ee5\u6267\u884c\u547d\u4ee4&nbsp;<code>date -R<\/code>&nbsp;\u67e5\u770b\u65f6\u95f4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ date -R\nSun, 22 Jan 2017 10:10:36 -0500\n<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\u7ed3\u679c\u4e2d\u7684 -0500 \u4ee3\u8868\u7684\u662f\u65f6\u533a\u4e3a\u897f 5 \u533a\uff0c\u5982\u679c\u8f6c\u6362\u6210\u4e1c 8 \u533a\u65f6\u95f4\u5219\u4e3a&nbsp;<code>2017-01-22 23:10:36<\/code>\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u65f6\u95f4\u4e0d\u51c6\u786e\uff0c\u53ef\u4ee5\u4f7f\u7528&nbsp;<code>date --set<\/code>&nbsp;\u4fee\u6539\u65f6\u95f4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo date --set=\"2017-01-22 16:16:23\"\nSun 22 Jan 16:16:23 GMT 2017\n<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u7684\u670d\u52a1\u5668\u67b6\u6784\u662f OpenVZ\uff0c\u90a3\u4e48\u4f7f\u7528\u4e0a\u9762\u7684\u547d\u4ee4\u6709\u53ef\u80fd\u4fee\u6539\u4e0d\u4e86\u65f6\u95f4\uff0c\u76f4\u63a5\u53d1\u5de5\u5355\u8054\u7cfb VPS \u63d0\u4f9b\u5546\u7684\u5ba2\u670d\u5427\uff0c\u5c31\u8bf4\u4f60\u5728 VPS \u4e0a\u8fd0\u884c\u7684\u670d\u52a1\u5bf9\u65f6\u95f4\u6709\u8981\u6c42\uff0c\u8981\u4ed6\u4eec\u63d0\u4f9b\u53ef\u884c\u7684\u4fee\u6539\u7cfb\u7edf\u65f6\u95f4\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\u5bf9 VPS \u7684\u65f6\u95f4\u6821\u51c6\u4e4b\u540e\u63a5\u7740\u662f\u4e2a\u4eba\u7535\u8111\uff0c\u5982\u4f55\u4fee\u6539\u7535\u8111\u4e0a\u7684\u65f6\u95f4\u6211\u60f3\u4e0d\u5fc5\u6211\u591a\u8bf4\u4e86\u3002<\/p>\n\n\n\n<p>\u65e0\u8bba\u662f VPS \u8fd8\u662f\u4e2a\u4eba\u7535\u8111\uff0c\u65f6\u533a\u662f\u4ec0\u4e48\u65e0\u6240\u8c13\uff0c\u56e0\u4e3a V2Ray \u4f1a\u81ea\u52a8\u8f6c\u6362\u65f6\u533a\uff0c\u4f46\u662f\u65f6\u95f4\u4e00\u5b9a\u8981\u51c6\u786e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4f7f\u7528-root-\u8d26\u6237\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u4f7f\u7528-root-\u8d26\u6237\">#<\/a>\u4f7f\u7528 root \u8d26\u6237<\/h3>\n\n\n\n<p>\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u811a\u672c\u7684\u6267\u884c\u5b89\u88c5\uff0c\u5728\u6b64\uff0c\u6211\u4eec\u5207\u6362\u6210 root \u8d26\u6237\u3002<\/p>\n\n\n\n<p>\u6267\u884c\u547d\u4ee4\uff1a<code>su<\/code>&nbsp;\u4e4b\u540e\u8f93\u5165\u7ba1\u7406\u5458\u5bc6\u7801\uff08\u6b64\u5904\u7684\u5bc6\u7801\u662f\u9ed8\u8ba4\u9690\u85cf\u7684\uff0c\u4e0d\u8981\u4ee5\u4e3a\u6ca1\u6253\u4e0a\u53bb\uff09\u3002<\/p>\n\n\n\n<p>\u6267\u884c\u4ee5\u540e\u547d\u4ee4\u884c\u5f62\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>user@host:~$ su\nPassword: \nroot@host:\/home\/user# \n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u670d\u52a1\u5668\u5b89\u88c5\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u670d\u52a1\u5668\u5b89\u88c5\">#<\/a>\u670d\u52a1\u5668\u5b89\u88c5<\/h2>\n\n\n\n<p>\u5728 Linux \u64cd\u4f5c\u7cfb\u7edf\uff0c V2Ray \u7684\u5b89\u88c5\u6709\u811a\u672c\u5b89\u88c5\u3001\u624b\u52a8\u5b89\u88c5\u3001\u7f16\u8bd1\u5b89\u88c5 3 \u79cd\u65b9\u5f0f\uff0c\u9009\u62e9\u5176\u4e2d\u4e00\u79cd\u5373\u53ef\uff0c\u672c\u6307\u5357\u4ec5\u63d0\u4f9b\u4f7f\u7528\u4f7f\u7528\u811a\u672c\u5b89\u88c5\u7684\u65b9\u6cd5\uff0c\u5e76\u4ec5\u63a8\u8350\u4f7f\u7528\u811a\u672c\u5b89\u88c5\uff0c\u8be5\u811a\u672c\u7531 V2Ray \u5b98\u65b9\u63d0\u4f9b\u3002\u8be5\u811a\u672c\u4ec5\u53ef\u4ee5\u5728 Debian \u7cfb\u5217\u6216\u8005\u652f\u6301 Systemd \u7684 Linux \u64cd\u4f5c\u7cfb\u7edf\u4f7f\u7528\u3002<\/p>\n\n\n\n<p><strong>\u9664\u975e\u4f60\u662f\u5927\u4f6c\uff0c\u6216\u8005\u80fd\u591f\u81ea\u884c\u5904\u7406\u7c7b\u4f3c command not found \u7684\u95ee\u9898\uff0c\u5426\u5219\u8bf7\u4f60\u4f7f\u7528 Debian 8.x \u4ee5\u4e0a\u6216\u8005 Ubuntu 16.04 \u4ee5\u4e0a\u7684 Linux \u7cfb\u7edf\u3002<\/strong>&nbsp;\u672c\u6307\u5357\u9ed8\u8ba4\u4f7f\u7528 Debian 10 \u7cfb\u7edf\u4f5c\u4e3a\u793a\u8303\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6\">#<\/a>\u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6<\/h3>\n\n\n\n<p>\u9996\u5148\u5b89\u88c5\u811a\u672c\u7684\u4f9d\u8d56\u8f6f\u4ef6\uff0c\u6839\u636e\u4f60\u7684 Linux \u53d1\u884c\u7248\u9009\u62e9\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a\u4e0b\u6587\u4e2d\u9700\u8981\u4f60\u8f93\u5165\u7684\u547d\u4ee4\u5747\u4ee5 $ \u5f00\u5934\uff0c\u5176\u4ed6\u5185\u5bb9\u5747\u6765\u81ea\u7cfb\u7edf\u6267\u884c\u547d\u4ee4\u7684\u53cd\u9988\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u81ea\u5df1\u5c4f\u5e55\u4e0a\u548c\u6587\u6863\u4e2d\u5185\u5bb9\u7684\u5f02\u540c\u6765\u5224\u65ad\u5b89\u88c5\u662f\u5426\u6b63\u786e\u3002<\/strong><\/p>\n\n\n\n<p>Debian\/Ubuntu:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ apt update\n$ apt install curl\n<\/code><\/pre>\n\n\n\n<p>CentOS\/RedHat :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ yum makecache\n$ yum install curl\n<\/code><\/pre>\n\n\n\n<p>Fedora:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ dnf makecache\n$ dnf install curl\n<\/code><\/pre>\n\n\n\n<p>openSUSE\/SUSE:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ zypper refresh\n$ zypper install curl\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4e0b\u8f7d\u5b89\u88c5\u811a\u672c\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u4e0b\u8f7d\u5b89\u88c5\u811a\u672c\">#<\/a>\u4e0b\u8f7d\u5b89\u88c5\u811a\u672c<\/h3>\n\n\n\n<p>\u4e0b\u8f7d\u4e3b\u7a0b\u5e8f\u5b89\u88c5\u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ curl -O https:\/\/raw.githubusercontent.com\/v2fly\/fhs-install-v2ray\/master\/install-release.sh\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0\n100 21613  100 21613    0     0   8732      0  0:00:02  0:00:02 --:--:--  8736\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u6267\u884c\u5b89\u88c5\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u6267\u884c\u5b89\u88c5\">#<\/a>\u6267\u884c\u5b89\u88c5<\/h3>\n\n\n\n<p>\u5b89\u88c5 V2ray \u4e3b\u7a0b\u5e8f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ bash install-release.sh\nDownloading V2Ray archive: https:\/\/github.com\/v2fly\/v2ray-core\/releases\/download\/v4.27.0\/v2ray-linux-64.zip\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n100   631  100   631    0     0    331      0  0:00:01  0:00:01 --:--:--   331\n  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0\n100 12.2M  100 12.2M    0     0   841k      0  0:00:14  0:00:14 --:--:-- 1899k\nDownloading verification file for V2Ray archive: https:\/\/github.com\/v2fly\/v2ray-core\/releases\/download\/v4.27.0\/v2ray-linux-64.zip.dgst\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\n100   636  100   636    0     0    294      0  0:00:02  0:00:02 --:--:--   295\n  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0\n100   590  100   590    0     0    133      0  0:00:04  0:00:04 --:--:--   282\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSuggested packages:\n  zip\nThe following NEW packages will be installed:\n  unzip\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 172 kB of archives.\nAfter this operation, 580 kB of additional disk space will be used.\nGet:1 http:\/\/mirrors.163.com\/debian buster\/main amd64 unzip amd64 6.0-23+deb10u1 &#91;172 kB]\nFetched 172 kB in 1s (173 kB\/s)   \nSelecting previously unselected package unzip.\n(Reading database ... 31383 files and directories currently installed.)\nPreparing to unpack ...\/unzip_6.0-23+deb10u1_amd64.deb ...\nUnpacking unzip (6.0-23+deb10u1) ...\nSetting up unzip (6.0-23+deb10u1) ...\nProcessing triggers for mime-support (3.62) ...\nProcessing triggers for man-db (2.8.5-2) ...\ninfo: unzip is installed.\ninfo: Extract the V2Ray package to \/tmp\/tmp.vk9AF2EqKA\/ and prepare it for installation.\ninstalled: \/usr\/local\/bin\/v2ray\ninstalled: \/usr\/local\/bin\/v2ctl\ninstalled: \/usr\/local\/share\/v2ray\/geoip.dat\ninstalled: \/usr\/local\/share\/v2ray\/geosite.dat\ninstalled: \/usr\/local\/etc\/v2ray\/00_log.json\ninstalled: \/usr\/local\/etc\/v2ray\/01_api.json\ninstalled: \/usr\/local\/etc\/v2ray\/02_dns.json\ninstalled: \/usr\/local\/etc\/v2ray\/03_routing.json\ninstalled: \/usr\/local\/etc\/v2ray\/04_policy.json\ninstalled: \/usr\/local\/etc\/v2ray\/05_inbounds.json\ninstalled: \/usr\/local\/etc\/v2ray\/06_outbounds.json\ninstalled: \/usr\/local\/etc\/v2ray\/07_transport.json\ninstalled: \/usr\/local\/etc\/v2ray\/08_stats.json\ninstalled: \/usr\/local\/etc\/v2ray\/09_reverse.json\ninstalled: \/var\/log\/v2ray\/\ninstalled: \/var\/log\/v2ray\/access.log\ninstalled: \/var\/log\/v2ray\/error.log\ninstalled: \/etc\/systemd\/system\/v2ray.service\ninstalled: \/etc\/systemd\/system\/v2ray@.service\nremoved: \/tmp\/tmp.vk9AF2EqKA\/\ninfo: V2Ray v4.27.0 is installed.\nYou may need to execute a command to remove dependent software: apt remove curl unzip\nPlease execute the command: systemctl enable v2ray; systemctl start v2ray\n<\/code><\/pre>\n\n\n\n<p>\u770b\u5230\u7c7b\u4f3c\u4e8e\u8fd9\u6837\u7684\u63d0\u793a\u5c31\u7b97\u5b89\u88c5\u6210\u529f\u4e86\u3002\u5982\u679c\u5b89\u88c5\u4e0d\u6210\u529f\u811a\u672c\u4f1a\u6709\u63d0\u793a\u8bed\u53e5\uff0c\u8fd9\u4e2a\u65f6\u5019\u4f60\u5e94\u5f53\u6309\u7167\u63d0\u793a\u9664\u9519\uff0c\u9664\u9519\u540e\u518d\u91cd\u65b0\u6267\u884c\u4e00\u904d\u811a\u672c\u5b89\u88c5 V2Ray\u3002\u5bf9\u4e8e\u9519\u8bef\u63d0\u793a\u5982\u679c\u770b\u4e0d\u61c2\uff0c\u4f7f\u7528\u7ffb\u8bd1\u8f6f\u4ef6\u7ffb\u8bd1\u4e00\u4e0b\u5c31\u597d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u8fd0\u884c\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u8fd0\u884c\">#<\/a>\u8fd0\u884c<\/h3>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u4e4b\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 V2Ray:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ systemctl start v2ray\n<\/code><\/pre>\n\n\n\n<p>\u5728\u9996\u6b21\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0cV2Ray \u4e0d\u4f1a\u81ea\u52a8\u542f\u52a8\uff0c\u9700\u8981\u624b\u52a8\u8fd0\u884c\u4e0a\u8ff0\u542f\u52a8\u547d\u4ee4\u3002<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\u52a8 V2Ray:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ systemctl enable v2ray\n<\/code><\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\u770b\u770b V2ray \u662f\u4e0d\u662f\u771f\u7684\u8fd0\u884c\u8d77\u6765\u4e86:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ systemctl status v2ray\n\u25cf v2ray.service - V2Ray Service\n   Loaded: loaded (\/etc\/systemd\/system\/v2ray.service; disabled; vendor preset: enabled)\n   Active: active (running) since Sun 2020-08-16 23:17:13 CST; 41min ago\n Main PID: 1984 (v2ray)\n    Tasks: 6 (limit: 2359)\n   Memory: 6.9M\n   CGroup: \/system.slice\/v2ray.service\n           \u2514\u25001984 \/usr\/local\/bin\/v2ray -confdir \/usr\/local\/etc\/v2ray\/\n\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/01_api.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/02_dns.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/03_routing.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/04_policy.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/05_inbounds.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/06_outbounds.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/07_transport.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/08_stats.json\nAug 16 23:17:13 debian v2ray&#91;1984]: v2ctl&gt; Read config:  \/usr\/local\/etc\/v2ray\/09_reverse.json\nAug 16 23:17:13 debian v2ray&#91;1984]: 2020\/08\/16 23:17:13 &#91;Warning] v2ray.com\/core: V2Ray 4.27.0 start\nlines 1-19\/19 (END)\n<\/code><\/pre>\n\n\n\n<p>\u770b\u5230\u7c7b\u4f3c\u4e8e\u8fd9\u6837\u7684\u63d0\u793a\u5c31\u7b97\u542f\u52a8\u6210\u529f\u4e86\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\u7531\u4e8e\u6b64\u65f6\u4f60\u8fd8\u6ca1\u6709\u4e3a V2ray \u914d\u7f6e\uff0c\u6240\u4ee5\u54b1\u4eec\u8fd8\u662f\u628a\u5b83\u5173\u6389\u5427\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ systemctl stop v2ray\n<\/code><\/pre>\n\n\n\n<p>\u5bf9\u4e8e\u5b89\u88c5\u811a\u672c\uff0c\u8fd8\u6709\u66f4\u591a\u7528\u6cd5\uff0c\u5728\u6b64\u4e0d\u591a\u8bf4\u4e86\uff0c\u53ef\u4ee5\u6267\u884c&nbsp;<code>bash install-release.sh -h<\/code>&nbsp;\u770b\u5e2e\u52a9\u3002<\/p>\n\n\n\n<p>\u5173\u4e8e V2ray \u914d\u7f6e\uff0c\u8bf7\u53c2\u8003&nbsp;<a href=\"https:\/\/github.com\/v2fly\/v2ray-examples\" target=\"_blank\" rel=\"noreferrer noopener\">v2ray-examples&nbsp;(opens new window)<\/a>\u5185\u7684\u793a\u4f8b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5347\u7ea7\u66f4\u65b0\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u5347\u7ea7\u66f4\u65b0\">#<\/a>\u5347\u7ea7\u66f4\u65b0<\/h3>\n\n\n\n<p>\u5728 VPS\uff0c\u91cd\u65b0\u6267\u884c\u4e00\u904d\u5b89\u88c5\u811a\u672c\u5c31\u53ef\u4ee5\u66f4\u65b0\u4e86\uff0c\u5728\u66f4\u65b0\u8fc7\u7a0b\u4e2d\u4f1a\u81ea\u52a8\u91cd\u542f V2Ray\uff0c\u914d\u7f6e\u6587\u4ef6\u4fdd\u6301\u4e0d\u53d8\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ bash install-release.sh\n<\/code><\/pre>\n\n\n\n<p>V2Ray \u7684\u66f4\u65b0\u7b56\u7565\u662f\u5feb\u901f\u8fed\u4ee3\uff0c\u6bcf\u5468\u66f4\u65b0(\u65e0\u610f\u5916\u7684\u60c5\u51b5\u4e0b)\u3002\u7248\u672c\u53f7\u7684\u683c\u5f0f\u662f&nbsp;<code>vX.Y.Z<\/code>\uff0c\u5982&nbsp;<code>v2.44.0<\/code>\u3002v \u662f\u56fa\u5b9a\u7684\u5b57\u6bcd v\uff0cversion \u7684\u9996\u5b57\u6bcd\uff1bX\u3001Y\u3001Z \u90fd\u662f\u6570\u5b57\uff0cX \u662f\u5927\u7248\u672c\u53f7\uff0c\u6bcf\u5e74\u66f4\u65b0\u4e00\u4e2a\u5927\u7248\u672c(\u73b0\u5728\u662f v4.Y.Z\uff0cV2Ray \u5df2\u7ecf\u8d70\u5230\u4e86\u7b2c\u56db\u4e2a\u5e74\u5934)\uff0cY \u662f\u5c0f\u7248\u672c\uff0c\u6bcf\u5468\u4e94\u66f4\u65b0\u4e00\u4e2a\u5c0f\u7248\u672c\u3002Z \u662f\u533a\u5206\u6b63\u5f0f\u7248\u548c\u6d4b\u8bd5\u7248\uff0cZ \u662f 0 \u4ee3\u8868\u7740\u662f\u6b63\u5f0f\u7248\uff0c\u4e0d\u662f 0 \u8bf4\u660e\u662f\u6d4b\u8bd5\u7248\u3002\u4f8b\u5982\uff0cv4.7.0 \u662f\u6b63\u5f0f\u7248\uff0cv4.7.1 \u662f\u6d4b\u8bd5\u7248\uff0c\u5efa\u8bae\u53ea\u4f7f\u7528\u6b63\u5f0f\u7248\uff0c\u4e0d\u624b\u52a8\u6307\u5b9a\u7684\u60c5\u51b5\u4e0b V2Ray \u7684\u5b89\u88c5\u811a\u672c\u4e5f\u53ea\u4f1a\u5b89\u88c5\u6700\u65b0\u7684\u6b63\u5f0f\u7248\u3002<\/p>\n\n\n\n<p>\u6709\u4e9b\u7ec6\u5fc3\u7684\u670b\u53cb\u53ef\u80fd\u4f1a\u6ce8\u610f\u5230\u6709\u65f6\u5019\u5468\u4e94 V2Ray \u521a\u53d1\u5e03\u4e86\u4e00\u4e2a\u65b0\u7248\u672c\uff0c\u6b21\u65e5\u6216\u8fc7\u4e24\u65e5\u53c8\u66f4\u65b0\u4e00\u4e2a\u6b63\u5f0f\u7248\u3002\u51fa\u73b0\u8fd9\u79cd\u60c5\u51b5\u662f\u56e0\u4e3a\u5468\u4e94\u53d1\u5e03\u7684\u6b63\u5f0f\u7248\u51fa\u73b0\u4e86\u5f71\u54cd\u4f7f\u7528\u4e25\u91cd\u7684 BUG\uff0c\u9700\u8981\u7acb\u9a6c\u53d1\u5e03\u4e00\u4e2a\u65b0\u7248\u672c\u3002\u8fd9\u79cd\u60c5\u51b5\u6bd4\u8f83\u70e6\uff0c\u4f46\u662f\u4e3a\u4e86\u4fdd\u8bc1\u517c\u5bb9\u6027\u3001\u6027\u80fd\u4f18\u5316\u7b49\u53c8\u9700\u8981\u4fdd\u8bc1\u7248\u672c\u4e0d\u8981\u592a\u8001\u65e7\u3002\u6240\u4ee5\u6211\u6bd4\u8f83\u5efa\u8bae\u5728\u5468\u56db\u66f4\u65b0\uff0c\u9009\u8fd9\u4e48\u4e00\u4e2a\u65e5\u5b50\u662f\u56e0\u4e3a\u6709\u91cd\u5927\u7684 BUG \u80af\u5b9a\u5728\u524d\u9762\u51e0\u5929\u5c31\u5df2\u7ecf\u4fee\u590d\u4e86\uff0c\u5c0f\u95ee\u9898(\u6050\u6015\u90fd\u4e0d\u77e5\u9053\u6709)\u7684\u8bdd\u4e0d\u4f1a\u5f71\u54cd\u4f7f\u7528\uff1b\u800c\u4e14\u7248\u672c\u53f7\u4e0e\u6700\u65b0\u7248\u76f8\u6bd4\u8fdf\u90a3\u4e48\u4e00\u4e24\u4e2a\u4e5f\u6ca1\u4ec0\u4e48\u5173\u7cfb\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5ba2\u6237\u7aef\u5b89\u88c5\"><a href=\"https:\/\/guide.v2fly.org\/prep\/install.html#\u5ba2\u6237\u7aef\u5b89\u88c5\">#<\/a>\u5ba2\u6237\u7aef\u5b89\u88c5<\/h2>\n\n\n\n<p>\u70b9<a href=\"https:\/\/github.com\/v2fly\/v2ray-core\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">\u8fd9\u91cc&nbsp;(opens new window)<\/a>\u4e0b\u8f7d V2Ray \u7684 Windows \u538b\u7f29\u5305\uff0c\u5982\u679c\u662f 32 \u4f4d\u7cfb\u7edf\uff0c\u4e0b\u8f7d v2ray-windows-32.zip\uff0c\u5982\u679c\u662f 64 \u4f4d\u7cfb\u7edf\uff0c\u4e0b\u8f7d v2ray-windows-64.zip\uff08\u4e0b\u8f7d\u901f\u5ea6\u6162\u6216\u65e0\u6cd5\u4e0b\u8f7d\u8bf7\u8003\u8651\u6302\u5df2\u6709\u7684\u7ffb\u5899\u8f6f\u4ef6\u6765\u4e0b\u8f7d\uff09\u3002\u4e0b\u8f7d\u5e76\u4e14\u89e3\u538b\u4e4b\u540e\u4f1a\u6709\u4e0b\u9762\u8fd9\u4e9b\u6587\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>v2ray.exe<\/code>&nbsp;\u8fd0\u884c V2Ray \u7684\u7a0b\u5e8f\u6587\u4ef6<\/li><li><code>wv2ray.exe<\/code>&nbsp;\u540c v2ray.exe\uff0c\u533a\u522b\u5728\u4e8e wv2ray.exe \u662f\u540e\u53f0\u8fd0\u884c\u7684\uff0c\u4e0d\u50cf v2ray.exe \u4f1a\u6709\u7c7b\u4f3c\u4e8e cmd \u63a7\u5236\u53f0\u7684\u7a97\u53e3\u3002\u8fd0\u884c V2Ray \u65f6\u4ece v2ray.exe \u548c wv2ray.exe \u4e2d\u4efb\u9009\u4e00\u4e2a\u5373\u53ef<\/li><li><code>config.json<\/code>&nbsp;V2Ray \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u540e\u9762\u6211\u4eec\u5bf9 V2Ray \u8fdb\u884c\u914d\u7f6e\u5176\u5b9e\u5c31\u662f\u4fee\u6539\u8fd9\u4e2a\u6587\u4ef6<\/li><li><code>v2ctl.exe<\/code>&nbsp;V2Ray \u7684\u5de5\u5177\uff0c\u6709\u591a\u79cd\u529f\u80fd\uff0c\u9664\u7279\u6b8a\u7528\u9014\u5916\uff0c\u4e00\u822c\u7531 v2ray.exe \u6765\u8c03\u7528\uff0c\u7528\u6237\u4e0d\u7528\u592a\u5173\u5fc3<\/li><li><code>geosite.dat<\/code>&nbsp;\u7528\u4e8e\u8def\u7531\u7684\u57df\u540d\u6587\u4ef6<\/li><li><code>geoip.dat<\/code>&nbsp;\u7528\u4e8e\u8def\u7531\u7684 IP \u6587\u4ef6<\/li><li><code>\u5176\u5b83<\/code>&nbsp;\u9664\u4e0a\u9762\u7684\u63d0\u5230\u6587\u4ef6\u5916\uff0c\u5176\u4ed6\u7684\u4e0d\u662f\u8fd0\u884c V2Ray \u7684\u5fc5\u8981\u6587\u4ef6\u3002\u66f4\u8be6\u7ec6\u7684\u8bf4\u660e\u53ef\u4ee5\u770b doc \u6587\u4ef6\u5939\u4e0b\u7684 readme.md \u6587\u4ef6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bb0\u4e8b\u672c\u6216\u5176\u5b83\u7684\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u67e5\u770b<\/li><\/ul>\n\n\n\n<p>\u5b9e\u9645\u4e0a\u53cc\u51fb v2ray.exe \uff08\u6216 wv2ray.exe\uff09 \u5c31\u53ef\u4ee5\u8fd0\u884c V2Ray \u4e86\uff0cV2Ray \u4f1a\u8bfb\u53d6 config.json \u4e2d\u7684\u914d\u7f6e\u4e0e\u670d\u52a1\u5668\u8fde\u63a5\u3002<s>\u9ed8\u8ba4\u7684\u914d\u7f6e\u6587\u4ef6\u5305\u542b V2Ray \u5b98\u65b9\u670d\u52a1\u5668\u7684\u914d\u7f6e\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f60\u53ef\u4ee5\u4e0d\u81ea\u5df1\u642d\u5efa\u670d\u52a1\u5668\u800c\u76f4\u63a5\u4f7f\u7528 V2Ray \u63d0\u4f9b\u7684\u670d\u52a1\u5668\u79d1\u5b66\u4e0a\u7f51\u3002\u5728\u4e0d\u4fee\u6539 config.json \u7684\u60c5\u51b5\u4e0b\uff0c\u53cc\u51fb\u8fd0\u884c v2ray.exe\uff0c\u53ef\u4ee5\u76f4\u63a5\u79d1\u5b66\u4e0a\u7f51<\/s>\uff08V2Ray \u5b98\u65b9\u670d\u52a1\u5668\u5df2\u4e0b\u7ebf\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"979\" height=\"512\" src=\"https:\/\/www.choubb.com\/ftp:\/\/ftp.choubb.com\/pic\/2021\/08\/image-1.png\" alt=\"\" class=\"wp-image-8086\" srcset=\"https:\/\/www.choubb.com\/ftp:\/\/ftp.choubb.com\/pic\/2021\/08\/image-1.png 979w, https:\/\/www.choubb.com\/ftp:\/\/ftp.choubb.com\/pic\/2021\/08\/image-1-600x314.png 600w, https:\/\/www.choubb.com\/ftp:\/\/ftp.choubb.com\/pic\/2021\/08\/image-1-768x402.png 768w\" sizes=\"auto, (max-width: 979px) 100vw, 979px\" \/><\/figure>\n\n\n\n<p>V2Ray \u5c06\u6240\u6709\u9009\u62e9\u6743\u4ea4\u7ed9\u7528\u6237\uff0c\u5b83\u4e0d\u4f1a\u81ea\u52a8\u8bbe\u7f6e\u7cfb\u7edf\u4ee3\u7406\uff0c\u56e0\u6b64\u8fd8\u9700\u8981\u5728\u6d4f\u89c8\u5668\u91cc\u8bbe\u7f6e\u4ee3\u7406\u3002\u4ee5\u706b\u72d0\uff08Firefox\uff09\u4e3a\u4f8b\uff0c\u70b9\u83dc\u5355 -&gt; \u9009\u9879 -&gt; \u9ad8\u7ea7 -&gt; \u8bbe\u7f6e -&gt; \u624b\u52a8\u4ee3\u7406\u8bbe\u7f6e\uff0c\u5728 SOCKS Host \u586b\u4e0a 127.0.0.1\uff0c\u540e\u9762\u7684 Port \u586b 1080\uff0c\u518d\u52fe\u4e0a\u4f7f\u7528 SOCKS v5 \u65f6\u4ee3\u7406 DNS (\u8fd9\u4e2a\u52fe\u9009\u9879\u5728\u65e7\u7684\u7248\u672c\u91cc\u53eb\u505a\u8fdc\u7a0b DNS)\u3002<\/p>\n\n\n\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6709\u4e9b\u5ba2\u6237\u7aef\u7684 SOCKS Port \u5e76\u4e0d\u662f 1080\uff0c\u5b9e\u9645 Port \u9700\u8981\u67e5\u770b\u5ba2\u6237\u7aef\u76f8\u5173\u9ed8\u8ba4\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p>\u64cd\u4f5c\u56fe\u89c1\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"307\" height=\"59\" src=\"https:\/\/www.choubb.com\/ftp:\/\/ftp.choubb.com\/pic\/2021\/08\/image.png\" alt=\"\" class=\"wp-image-8085\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/guide.v2fly.org\/assets\/img\/firefox_proxy_setting2.18418e9a.png\" alt=\"firefox_proxy_setting2.png\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/guide.v2fly.org\/assets\/img\/firefox_proxy_setting3.07cb9253.png\" alt=\"firefox_proxy_setting3.png\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/guide.v2fly.org\/assets\/img\/firefox_proxy_setting4.de422105.png\" alt=\"firefox_proxy_setting4.png\"\/><\/figure>\n\n\n\n<p>\u5982\u679c\u4f7f\u7528\u7684\u662f\u5176\u5b83\u7684\u6d4f\u89c8\u5668\uff0c\u8bf7\u81ea\u884c\u5728\u7f51\u4e0a\u641c\u4e00\u4e0b\u600e\u4e48\u8bbe\u7f6e SOCKS \u4ee3\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u591a\u5e74\u524d\u81ea\u5efass\uff0c\u7136\u540edocker\u88c5ss\uff0c\u518d\u8f6cv2ray\uff0c\u4e00\u8def\u7ffb\u5c71\u6d89\u6c34\uff0c\u867d\u6709\u8f9b\u52b3\uff0c\u5e76\u65e0\u9669\u963b\u3002\u773c\u770b\u5f52\u56fd\u4e4b\u65e5\u6e10\u8fd1\uff0c\u8fd9\u4e24\u65e5\u91cd\u642d\u68af\u5b50\uff0c\u5374\u6ca1\u5c11\u6298\u817e\u3002\u61d2\u5f97\u770b\u957f\u6587\u53c2\u6570\u548c\u539f\u7406\uff0c\u7f51\u4e0a\u641c\u4e2a\u653b\u7565\u5f00\u5e72\u5747\u544a\u5931\u8d25\uff0c\u662f\u81ea\u5df1\u8001\u5bb6\u6237\u4e0d\u7075\u4e86\uff0c\u8fd8\u662f\u9053\u884c\u5347\u9ad8\uff1f\u53cd\u6b63\u662f\u4e24\u4e0d\u642d\u4e86\ud83e\udd23\u3002 \u53cd\u590d\u67e5linux\u547d\u4ee4\u6743\u9650\u548ctroubleshooting\uff0c\u53cd\u590d\u8bd5\u9519\u540e\u7ec8\u4e8e\u6210\u529f\uff0c\u4e0e\u4ffa\u7684WP\u4e3b\u673a\u4e00\u540c\u8fd0\u884c,CPU\u5360\u7528\u7387\u57fa\u672c\u6ca1\u5565\u53d8\u5316\uff0c\u7ef4\u6301\u57285-6%\u3002\u5b9e\u65bd\u6b65\u9aa4\u5982\u4e0b\u3002 \u653b\u7565\uff1ahttps:\/\/guide.v2fly.org\/prep\/install.html#\u5b89\u88c5\u524d\u7684\u51c6\u5907 \u5148\u8d4b\u4e88root\u6743\u9650 usr@WP_server:~$ sudo su \u5b89\u88c5 curl root@server:\/home\/usr# apt install curl \u4e0b\u8f7d\u5b89\u88c5\u811a\u672c root@server:\/home\/usr# sudo curl -O https:\/\/raw.githubusercontent.com\/v2fly\/fhs-install-v2ray\/master\/install-release.sh \u6267\u884c\u811a\u672c\u5b89\u88c5V2ray\u53ca\u5176\u8f93\u51fa\u7ed3\u679c root@server:\/home\/usr# sudo bash install-release.sh info: Installing V2Ray v4.39.2 for x86_64Downloading V2Ray archive:<a class=\"moretag\" href=\"https:\/\/www.choubb.com\/?p=7864\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2287,201],"tags":[127,4249,4248,4247,1685],"class_list":["post-7864","post","type-post","status-publish","format-standard","hentry","category-2287","category-201","tag-127","tag-ubuntu","tag-uuid","tag-v2ray","tag-vps"],"_links":{"self":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts\/7864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7864"}],"version-history":[{"count":9,"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts\/7864\/revisions"}],"predecessor-version":[{"id":8088,"href":"https:\/\/www.choubb.com\/index.php?rest_route=\/wp\/v2\/posts\/7864\/revisions\/8088"}],"wp:attachment":[{"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.choubb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}