关于V2 到5.1.0不能用的问题三种处理方式

157次阅读

共计 1772 个字符,预计需要花费 5 分钟才能阅读完成。

关于 V2 到 5.1.0 不能用的问题
是这种报错的
● v2ray.service – V2Ray Service
Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/v2ray.service.d
└─10-donot_touch_single_conf.conf
Process: 3975576 ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json (code=exited, status=2)
Main PID: 3975576 (code=exited, status=2)
这种报错的
处理方式 1:
rm -rf /etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf
systemctl daemon-reload
systemctl restart v2ray
处理方式 2:
vi /etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf
把 ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
改为 ExecStart=/usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json
systemctl daemon-reload
systemctl restart v2ray
具体命令↓
sed -i "s/v2ray -config/v2ray run -config/g" /etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf
systemctl daemon-reload
systemctl restart v2ray
处理方式 3:
切回老版本:
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh) –version v4.45.2 就好啦
尝试下上述操作就 OK 了,
附上开发文档:https://www.v2fly.org/v5/config/overview.html

这不叫日志早就已经这样子了,我已经换成 xray 内核或者 trojan 内核使用

HOH 发表于 2022-9-8 10:02
这不叫日志

没有 我附上去意思是
● v2ray.service – V2Ray Service
Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/v2ray.service.d
└─10-donot_touch_single_conf.conf
Process: 3975576 ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json (code=exited, status=2)
Main PID: 3975576 (code=exited, status=2)
这种报错的这样处理我记得 5 版本配置格式换了吧
报错是不是配置没有更新

厂弟 发表于 2022-9-8 10:04
我记得 5 版本配置格式换了吧
报错是不是配置没有更新

暂时没时间看 紧急恢复就这么搞

好男人文哥 发表于 2022-9-8 10:36
暂时没时间看 紧急恢复就这么搞

一般更新了用不了就是跟以前的配置文件不兼容重新配置一次试试关于 V2 到 5.1.0 不能用的问题三种处理方式

Oracle. 发表于 2022-9-8 10:39
一般更新了用不了就是跟以前的配置文件不兼容重新配置一次试试

引入了新的配置格式 https://github.com/v2fly/v2ray-core/issues

正文完
 0