From 7dbc9dae7e7cdac455f83cb53b63a4a087e6b119 Mon Sep 17 00:00:00 2001 From: iProbe Date: Mon, 11 Dec 2023 16:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'Others/=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=AE=89=E8=A3=85v2rayA.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Others/容器安装v2rayA.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Others/容器安装v2rayA.md diff --git a/Others/容器安装v2rayA.md b/Others/容器安装v2rayA.md new file mode 100644 index 0000000..27bc47c --- /dev/null +++ b/Others/容器安装v2rayA.md @@ -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 +``` \ No newline at end of file