mirror of
https://github.com/v2fly/v2ray-examples.git
synced 2025-04-02 00:59:29 +08:00
Format README-CN.md
This commit is contained in:
parent
8771fc497a
commit
c29204f927
@ -1,19 +1,20 @@
|
||||
# 这是一个使用 V2Ray 作为 ss + v2ray plugin 服务端的示例
|
||||
|
||||
> 完整的设置还需要一个web服务器解密TLS后,将请求转发给位于127.0.0.1:10000的v2ray。由于 [https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE](https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE) 已经有了服务器的设置这里不再赘述,可以按需参考白话文教程里的web服务器设置。
|
||||
> 完整的设置还需要一个 web 服务器解密 TLS 后,将请求转发给位于 127.0.0.1:10000 的 v2ray。由于 [https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE](https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE) 已经有了服务器的设置这里不再赘述,可以按需参考白话文教程里的 web 服务器设置。
|
||||
|
||||
config_server_redirect.json 和 config_server_domainsocket.json 选其一
|
||||
|
||||
如果使用domain socket需要修改`/etc/systemd/system/v2ray.service`。否则由于fhs脚本使用的nobody用户的权限不够,无法在/var/run里新建文件夹`ss-loop`而导致启动失败。
|
||||
> 如果使用fhs脚本更新版本的话,会覆盖掉service文件,所以更新版本后需要重复下面的操作。
|
||||
如果使用 domain socket 需要修改`/etc/systemd/system/v2ray.service`。否则由于 fhs 脚本使用的 nobody 用户的权限不够,无法在/var/run 里新建文件夹`ss-loop`而导致启动失败。
|
||||
|
||||
> 如果使用 fhs 脚本更新版本的话,会覆盖掉 service 文件,所以更新版本后需要重复下面的操作。
|
||||
|
||||
修改文件`/etc/systemd/system/v2rary.service`,在`[Service]`部分添加下面一行:
|
||||
|
||||
```properties
|
||||
RuntimeDirectory=ss-loop
|
||||
RuntimeDirectory=ss-loop
|
||||
```
|
||||
|
||||
`ss-loop`对应config.json里的`dsSettings`部分的path里的文件夹`/var/run/ss-loop`
|
||||
`ss-loop`对应 config.json 里的`dsSettings`部分的 path 里的文件夹`/var/run/ss-loop`
|
||||
|
||||
修改完成后需要执行
|
||||
|
||||
@ -22,7 +23,7 @@ systemctl disable v2ray.service
|
||||
systemctl enable v2ray.service
|
||||
```
|
||||
|
||||
最后重启下v2ray进程
|
||||
最后重启下 v2ray 进程
|
||||
|
||||
```shell
|
||||
systemctl restart v2ray
|
||||
|
@ -13,7 +13,7 @@ Use your prefered editor to modify the systemd service file at `/etc/systemd/sys
|
||||
Add the following line to the block starting with `[Service]`
|
||||
|
||||
```properties
|
||||
RuntimeDirectory=ss-loop
|
||||
RuntimeDirectory=ss-loop
|
||||
```
|
||||
|
||||
`ss-loop` corresponds to the `/var/run/ss-loop` folder in the `dsSettings` inside config_server_domainsocket.json.
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 这个例子同样适用于Shadowsocks客户端+V2Ray-Plugins
|
||||
# 这个例子同样适用于 Shadowsocks 客户端+V2Ray-Plugins
|
||||
|
||||
> 完整的设置还需要一个web服务器解密TLS后,将请求转发给监听在127.0.0.1:10000的v2ray。由于 [https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE](https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE) 已经有了服务器的设置这里不再赘述,可以按需参考白话文教程里的web服务器设置。
|
||||
> 完整的设置还需要一个 web 服务器解密 TLS 后,将请求转发给监听在 127.0.0.1:10000 的 v2ray。由于 [https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE](https://guide.v2fly.org/advanced/wss_and_web.html#%E9%85%8D%E7%BD%AE) 已经有了服务器的设置这里不再赘述,可以按需参考白话文教程里的 web 服务器设置。
|
||||
|
||||
## 客户端配置示意
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
### shadowsocks windows 客户端关键部分示例如下
|
||||
|
||||
> 必须设置 mux=0,否则无法正常连接服务器。如果需要使用mux可以参考本文件夹里的[Domainsocket or Redirect Approach](./Domainsocket-or-Redirect-Approach/)的方法。
|
||||
> 必须设置 mux=0,否则无法正常连接服务器。如果需要使用 mux 可以参考本文件夹里的[Domainsocket or Redirect Approach](./Domainsocket-or-Redirect-Approach/)的方法。
|
||||
|
||||
```properties
|
||||
Server_IP: example.com or your server ip
|
||||
@ -22,7 +22,7 @@ Plugin_Options: mux=0;tls;mode=websocket;path=/path;host=example.com
|
||||
### Shadowsocks Android plugin 关键部分示例如下
|
||||
|
||||
> 需安装 shadowsocks 和 v2ray plugin,并搭配一同使用。
|
||||
> Concurrent connections必须为0,否则无法连接到服务器。
|
||||
> Concurrent connections 必须为 0,否则无法连接到服务器。
|
||||
|
||||
```properties
|
||||
Plugin: v2ray
|
||||
|
Loading…
x
Reference in New Issue
Block a user