CentOS安装v2ray代理

chao 2024-3-26 6:43 CentOS&Ubuntu 抢沙发 296IT人生
1)下载
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

4)修改配置文件
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

正文部分到此结束

版权声明:除非注明,本文由( chao )原创,转载请保留文章出处

本文链接:CentOS安装v2ray代理

继续浏览:v2ray

分享文章:QQ空间腾讯微博新浪微博网易微博人人网开心网腾讯朋友百度搜藏

Telegram专属代理mtproxy
U盘USB启动盘工具