22 lines
502 B
Markdown
22 lines
502 B
Markdown
|
## 二进制安装v2ray
|
||
|
|
||
|
|
||
|
```
|
||
|
apt install ufw curl net-tools -y || yum install curl -y
|
||
|
#安装v2
|
||
|
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
|
||
|
|
||
|
#下载配置文件
|
||
|
|
||
|
wget https://shagain.club/wenjian/config.json
|
||
|
cat config.json > /usr/local/etc/v2ray/config.json
|
||
|
|
||
|
#启动
|
||
|
systemctl start v2ray
|
||
|
systemctl enable v2ray
|
||
|
ufw allow ssh
|
||
|
wget https://shagain.club/yijian.sh
|
||
|
bash yijian.sh
|
||
|
|
||
|
cat /usr/local/etc/v2ray/config.json | jq '.inbounds[0].port'
|
||
|
```
|