代码语言:javascript复制
1,
wget https://github.com/dreamrover/v2ray-deb/releases/download/4.45.2/v2ray-4.45.2-amd64.deb
2,
sudo dpkg -i v2ray-4.45.2-amd64.deb
3,
cd /etc/v2ray/
4,rm -rf config.json
touch config.json
copy past
5,
vim ~/.bash_profile
# proxy
alias proxy='export all_proxy=socks5://127.0.0.1:1080'
alias unproxy='unset all_proxy'
6,代理开启:
source ~/.bash_profile
7,curl ipinfo.io
8,
systemctl start v2ray
systemctl status v2ray
9,
proxy
10,curl ipinfo.io