v2ray安装教程
编辑
15
2025-04-19
安装项目:https://github.com/v2fly/fhs-install-v2ray
安装命令
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
开机启动
systemctl enable v2ray
将以下配置保存为 config.json
文件,并替换掉 /usr/local/etc/v2ray/config.json
,最后执行 systemctl restart v2ray
重启
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [
{
"port": 6688,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "6501e743-0bc9-4ebe-bbb8-be159c356696"
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}
- 0
- 0
-
分享