- 查看脚本路径:
systemctl status v2ray
- 修改启动脚本:
vi /etc/systemd/system/v2ray.service
- 将
/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
改成/usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json
,即加了run
- 将
- 终端执行:
systemctl daemon-reload
,接着执行systemctl restart v2ray