添加 'Others/容器安装v2rayA.md'
This commit is contained in:
parent
d2156be35d
commit
7dbc9dae7e
1 changed files with 36 additions and 0 deletions
36
Others/容器安装v2rayA.md
Normal file
36
Others/容器安装v2rayA.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
## 安装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
|
||||||
|
|
||||||
|
**注意开放2017,20170,20171,20172端口**
|
||||||
|
**若只使用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
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue