• 查看脚本路径: systemctl status v2ray
● v2ray.service - V2Ray Service
Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-09-08 01:09:09 CST; 34s ago
  • 修改启动脚本: 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