<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[V2ray 简单实现科学上网]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/legacy/253-111.jpg" alt="111.jpg" class=" img-fluid img-markdown" /></p>
<ol>
<li>前言</li>
</ol>
<ul>
<li>
<p dir="auto">如果要老老实实的，踏踏实实的学习，推荐参考官方网站：<a href="https://www.v2ray.com/" rel="nofollow ugc">https://www.v2ray.com</a></p>
</li>
<li>
<p dir="auto">如果要快速完成，没想要学习了解，推荐：<a href="https://v2ray66.com/" rel="nofollow ugc">https://v2ray66.com</a></p>
</li>
</ul>
<ol start="2">
<li>服务器安装<br />
建议选择国外主机（如搬瓦工，VULTR ）！</li>
</ol>
<p dir="auto"><img src="/assets/uploads/legacy/250-2018-10-31_084411.png" alt="2018-10-31_084411.png" class=" img-fluid img-markdown" /></p>
<h3>参考：</h3>
<ul>
<li>
<p dir="auto">V2Ray 官方文档：<a href="https://www.v2ray.com/chapter_00/install.html" rel="nofollow ugc">https://www.v2ray.com/chapter_00/install.html</a></p>
</li>
<li>
<p dir="auto">V2Ray 配置指南(简易直白):<a href="https://toutyrater.github.io/prep/install.html" rel="nofollow ugc">https://toutyrater.github.io/prep/install.html</a></p>
</li>
<li>
<p dir="auto">实不相瞒,一键的更好用: <a href="https://v2ray66.com/post/13/" rel="nofollow ugc">https://v2ray666.com/post/13/</a></p>
</li>
</ul>
<p dir="auto">2.1 通过脚本安装<br />
虽然有一键,我的第一次安装不是用一键安装的,是跟着官方文档做的,具体如下:</p>
<p dir="auto">2.1.1 方法一:命令行直接运行脚本</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>bash &lt;(curl -L -s <a href="https://install.direct/go.sh" rel="nofollow ugc">https://install.direct/go.sh</a>)</th>
</tr>
</thead>
</table>
<h3>2.1.2 方法二:下载脚本，再运行：</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>wget <a href="https://install.direct/go.sh" rel="nofollow ugc">https://install.direct/go.sh</a>&lt;br&gt;sudo bash <a href="http://go.sh" rel="nofollow ugc">go.sh</a></th>
</tr>
</thead>
</table>
<h3>2.1.3 方法三(没有翻墙的同志):</h3>
<p dir="auto">下载 Core 包, 从这里下载: <a href="https://www.v2ray.com/chapter_00/install.html" rel="nofollow ugc">https://www.v2ray.com/chapter_00/install.html</a></p>
<p dir="auto">按道理,你买的VPS肯定是可以访问各类地方的,但是如果不是的话,那么就需要下载 Core 包了,下载下来后,运行里面的 V2ray ,然后会生成一个 config.json 的文件,根据帮助修改其配置即可.</p>
<h3>2.1.4 成功安装的样子：</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Installing V2Ray v3.46 on x86_64&lt;br&gt;Downloading V2Ray.&lt;br&gt;% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current&lt;br&gt;Dload  Upload   Total   Spent    Left  Speed&lt;br&gt;100   608    0   608    0     0   1483      0 --:--:-- --:--:-- --:--:--  1482&lt;br&gt;100 10.4M  100 10.4M    0     0  5200k      0  0:00:02  0:00:02 --:--:-- 13.2M&lt;br&gt;Extracting V2Ray package to /tmp/v2ray.&lt;br&gt;Archive:  /tmp/v2ray/v2ray.zip&lt;br&gt;creating: /tmp/v2ray/v2ray-v3.46-linux-64/&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/geoip.dat&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/geosite.dat&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/readme.md&lt;br&gt;creating: /tmp/v2ray/v2ray-v3.46-linux-64/systemd/&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/systemd/v2ray.service&lt;br&gt;creating: /tmp/v2ray/v2ray-v3.46-linux-64/systemv/&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/systemv/v2ray&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/v2ctl&lt;br&gt;extracting: /tmp/v2ray/v2ray-v3.46-linux-64/v2ctl.sig&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/v2ray&lt;br&gt;extracting: /tmp/v2ray/v2ray-v3.46-linux-64/v2ray.sig&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/vpoint_socks_vmess.json&lt;br&gt;inflating: /tmp/v2ray/v2ray-v3.46-linux-64/vpoint_vmess_freedom.json&lt;br&gt;PORT:13863&lt;br&gt;UUID:8ca787e0-571a-4ff4-bef9-f007057e1e0f&lt;br&gt;Created symlink from /etc/systemd/system/multi-user.target.wants/v2ray.service to /etc/systemd/system/v2ray.service.&lt;br&gt;V2Ray v3.46 is installed.</th>
</tr>
</thead>
</table>
<p dir="auto">2.2 管理服务</p>
<h3>启动 V2Ray：</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>$ sudo systemctl start v2ray</th>
</tr>
</thead>
</table>
<h3>停止 V2Ray：</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>$ sudo systemctl stop v2ray</th>
</tr>
</thead>
</table>
<h3>重启 V2Ray:</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>$ sudo systemctl restart v2ray</th>
</tr>
</thead>
</table>
<h3>Tips:</h3>
<p dir="auto">在首次安装完成之后，V2Ray 不会自动启动，需要手动运行上述启动命令。而在已经运行 V2Ray 的 VPS 上再次执行安装脚本，安装脚本会自动停止 V2Ray 进程，升级 V2Ray 程序，然后自动运行 V2Ray。在升级过程中，配置文件不会被修改。</p>
<p dir="auto">更新 V2Ray 的方法是:再次执行安装脚本！再次执行安装脚本！再次执行安装脚本！</p>
<p dir="auto">对于安装脚本，还有更多用法，在此不多说了，可以执行 bash <a href="http://go.sh" rel="nofollow ugc">go.sh</a> -h 看帮助。<br />
2.3 服务器配置<br />
这里只是 demo ，端口啥的凭个人爱好。</p>
<h3>修改配置文件：</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>sudo vim /etc/v2ray/config.json</th>
</tr>
</thead>
</table>
<h3>如下：</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{&lt;br&gt;"inbound": {&lt;br&gt;"port": 10086, // 服务器监听端口，必须和上面的一样&lt;br&gt;"protocol": "vmess",&lt;br&gt;"settings": {&lt;br&gt;"clients": [{ "id": "b831381d-6324-4d53-ad4f-8cda48b30811" }]&lt;br&gt;}&lt;br&gt;},&lt;br&gt;"outbound": {&lt;br&gt;"protocol": "freedom",&lt;br&gt;"settings": {}&lt;br&gt;}&lt;br&gt;}</th>
</tr>
</thead>
</table>
<ol start="3">
<li>客户端安装配置<br />
<img src="/assets/uploads/legacy/251-2018-10-31_084456.png" alt="2018-10-31_084456.png" class=" img-fluid img-markdown" /></li>
</ol>
<p dir="auto">下载地址：<a href="https://www.v2ray.com/download/" rel="nofollow ugc">https://www.v2ray.com/download/</a></p>
<p dir="auto">选择 V2RayN 或者 V2RayW 均可下载，前者的star数量更高些。<br />
3.1 客户机配置<br />
如果你下载的是 v2ray-windows , config.json 的配置类似下面：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{&lt;br&gt;"inbound": {&lt;br&gt;"port": 1080,  // SOCKS 代理端口，在浏览器中需配置代理并指向这个端口&lt;br&gt;"listen": "127.0.0.1",&lt;br&gt;"protocol": "socks",&lt;br&gt;"settings": {&lt;br&gt;"udp": true&lt;br&gt;}&lt;br&gt;},&lt;br&gt;"outbound": {&lt;br&gt;"protocol": "vmess",&lt;br&gt;"settings": {&lt;br&gt;"vnext": [{&lt;br&gt;"address": "server", // 服务器地址，请修改为你自己的服务器 ip 或域名&lt;br&gt;"port": 10086,  // 服务器端口&lt;br&gt;"users": [{ "id": "b831381d-6324-4d53-ad4f-8cda48b30811" }]&lt;br&gt;}]&lt;br&gt;}&lt;br&gt;},&lt;br&gt;"outboundDetour": [{&lt;br&gt;"protocol": "freedom",&lt;br&gt;"tag": "direct",&lt;br&gt;"settings": {}&lt;br&gt;}],&lt;br&gt;"routing": {&lt;br&gt;"strategy": "rules",&lt;br&gt;"settings": {&lt;br&gt;"domainStrategy": "IPOnDemand",&lt;br&gt;"rules": [{&lt;br&gt;"type": "field",&lt;br&gt;"ip": [&lt;br&gt;"0.0.0.0/8",&lt;br&gt;"10.0.0.0/8",&lt;br&gt;"100.64.0.0/10",&lt;br&gt;"127.0.0.0/8",&lt;br&gt;"169.254.0.0/16",&lt;br&gt;"172.16.0.0/12",&lt;br&gt;"192.0.0.0/24",&lt;br&gt;"192.0.2.0/24",&lt;br&gt;"192.168.0.0/16",&lt;br&gt;"198.18.0.0/15",&lt;br&gt;"198.51.100.0/24",&lt;br&gt;"203.0.113.0/24",&lt;br&gt;"::1/128",&lt;br&gt;"fc00::/7",&lt;br&gt;"fe80::/10"&lt;br&gt;],&lt;br&gt;"outboundTag": "direct"&lt;br&gt;}]&lt;br&gt;}&lt;br&gt;}&lt;br&gt;}</th>
</tr>
</thead>
</table>
<p dir="auto">客户端启动后，后续也简单，就是浏览器的代理设置了：127.0.0.1, 端口: 1080</p>
<p dir="auto">以上。</p>
]]></description><link>https://bbs.wlite.cn/topic/97/v2ray-简单实现科学上网</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 17:04:05 GMT</lastBuildDate><atom:link href="https://bbs.wlite.cn/topic/97.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Oct 2018 00:59:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to V2ray 简单实现科学上网 on Fri, 05 Jul 2019 01:12:34 GMT]]></title><description><![CDATA[<p dir="auto">这个是免费的还是需要购买服务器？</p>
]]></description><link>https://bbs.wlite.cn/post/1832</link><guid isPermaLink="true">https://bbs.wlite.cn/post/1832</guid><dc:creator><![CDATA[笑眸]]></dc:creator><pubDate>Fri, 05 Jul 2019 01:12:34 GMT</pubDate></item></channel></rss>