V2Ray搭建

referer:https://www.stackcc.com/2019/04/02/v2raysetup/

centos7 安装
#安装
wget https://install.direct/go.sh
yum install zip unzip
bash go.sh
#启动
systemctl start v2ray
#配置
vi /etc/v2ray/config.json
#停止防火墙
systemctl stop firewalld

centos6
https://www.mzihen.com/a-new-way-to-bypass-the-gfw/

service iptables stop
service v2ray restart

卸载方法
service v2ray stop
chkconfig v2ray off
rm -rf /etc/init.d/v2ray
rm -rf /etc/v2ray (配置文件)
rm -rf /usr/bin/v2ray (程序)
rm -rf /var/log/v2ray (日志)

#查看开放端口及id
cat /etc/v2ray/config.json

客户端下载
win
https://github.com/2dust/v2rayN/releases
macos
https://github.com/Cenmrev/V2RayX/releases

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.