CentOS安装v2ray代理
1)下载
wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
2)安装
bash install-release.sh
3)开启v2ray
vi /usr/local/etc/v2ray/config.json
基本配置如下:
{
"inbounds": [
{
"port": 11111, // 服务端口
"protocol": "vmess", // 服务协议
"settings": {
"clients": [
{
"id": "b831381d-6324-4d53-ad4f-8cda68b30851", // 用户 ID,
"alterId": 0
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
6)重启v2ray
systemctl stop v2ray
systemctl start v2ray
7)使用v2rayN客户端测试连接
https://github.com/2dust/v2rayN/releases
https://github.com/2dust/v2rayN/releases/download/4.9/v2rayN-Core.zip
wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
2)安装
bash install-release.sh
3)开启v2ray
systemctl enable v2ray
systemctl start v2ray
systemctl status v2ray
vi /usr/local/etc/v2ray/config.json
基本配置如下:
{
"inbounds": [
{
"port": 11111, // 服务端口
"protocol": "vmess", // 服务协议
"settings": {
"clients": [
{
"id": "b831381d-6324-4d53-ad4f-8cda68b30851", // 用户 ID,
"alterId": 0
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
}
]
}
6)重启v2ray
systemctl stop v2ray
systemctl start v2ray
7)使用v2rayN客户端测试连接
https://github.com/2dust/v2rayN/releases
https://github.com/2dust/v2rayN/releases/download/4.9/v2rayN-Core.zip
正文部分到此结束