Docs/Others/v2ray/客户端-容器安装v2rayA.md

36 lines
No EOL
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 安装podman
```shell
# 以centos为例
yum -y install podman
```
## 启动v2rayA
```shell
# 新建目录,用于存放配置文件,示例为/root/v2raya目录
mkdir /root/v2raya
podman run -d --name v2raya -p 2017:2017 -p 20170-20172:20170-20172 -e V2RAYA_ADDRESS=0.0.0.0:2017 -v /lib/modules:/lib/modules:ro -v /root/v2raya:/etc/v2raya --restart=always --privileged mzz2017/v2raya
```
## 配置v2rayA
**注意开放2017201702017120172端口**
**若只使用http端口只开放2017及20171端口也可以**
### 1.浏览器访问http://[服务器ip]:2017
### 2.初次访问,需要设置管理员账号及密码
### 3.导入订阅链接
### 4.选择节点,并连接
### 5.启动
移动鼠标至左上角,点击[启动]。
### 6.设置
点击右上角[设置][透明代理/系统代理]选择[启用: 大陆白名单模式],并点击[开启IP转发][开启端口分享],点击[保存并应用]。即可完成配置。
**注意:可以点击[地址与端口],查看或配置端口**
## 使用v2rayA
```shell
cat >> ~/.bash_profile << EOF
export http_proxy=http://127.0.0.1:20171
export https_proxy=http://127.0.0.1:20171
EOF
source ~/.bash_profile
```