全球主机交流论坛

标题: V2RAY官方代码加入了tcp配置后报错,是否我语法错误? [打印本页]

作者: 放牛第一高手    时间: 2019-10-17 10:34
标题: V2RAY官方代码加入了tcp配置后报错,是否我语法错误?
本帖最后由 放牛第一高手 于 2019-10-17 14:31 编辑

官方命令安装v2ray后,用 vi /etc/v2ray/config.json 在Xshell 6中 加入了TCP配置后,然后启动v2ray报错,如何解决?(vultr的centos 8系统VPS)

v2ray.service - V2ray deamon
   Loaded: loaded (/etc/systemd/system/v2ray.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-10-17 13:24:15 CST; 11s ago
  Process: 31017 ExecStart=/usr/bin/v2ray/v2ray (code=exited, status=23)
Main PID: 31017 (code=exited, status=23)

[root@vultr v2ray]#  /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
V2Ray 4.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom
A unified platform for anti-**ship.
2019/10/17 14:29:13 [Warning] v2ray.com/core: V2Ray 4.20.0 started

作者: affyun.org    时间: 2019-10-17 12:30
又菜又白就用v2rayN生成server配置文件
作者: 放牛第一高手    时间: 2019-10-17 13:07
本帖最后由 放牛第一高手 于 2019-10-17 14:30 编辑
affyun.org 发表于 2019-10-17 12:30
又菜又白就用v2rayN生成server配置文件


我用官方脚本安装了V2RAY,然后按你说的用v2rayN生成了服务器端配置文件并放在我win7 32bit电脑上了,那我现在是用vi /etc/v2ray/config.json 改代码 ,现在还是报错如下:

[root@vultr ~]# systemctl start v2ray
[root@vultr ~]# systemctl status v2ray
● v2ray.service - V2ray deamon
   Loaded: loaded (/etc/systemd/system/v2ray.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-10-17 13:16:59 CST; 9s ago
  Process: 30741 ExecStart=/usr/bin/v2ray/v2ray (code=exited, status=23)
Main PID: 30741 (code=exited, status=23)


还是无法启动v2ray

报错
[root@vultr v2ray]#  /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
V2Ray 4.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom
A unified platform for anti-**ship.
2019/10/17 14:29:13 [Warning] v2ray.com/core: V2Ray 4.20.0 started
作者: ChinaDNS    时间: 2019-10-17 13:19
看着眼睛累 自己 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 看报错自己改
作者: ymcoming    时间: 2019-10-17 13:24
1、按理说不该用v2rayN来生成,github那么多好用的模板不用?
2、按理说本地电脑端生成了,直接sftp上传覆盖就OK,干嘛还要用VI?保不准在复制粘贴中出现格式问题。
作者: 放牛第一高手    时间: 2019-10-17 13:28
ChinaDNS 发表于 2019-10-17 13:19
看着眼睛累 自己 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 看报错自己改

v2ray.service - V2ray deamon
   Loaded: loaded (/etc/systemd/system/v2ray.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-10-17 13:24:15 CST; 11s ago
  Process: 31017 ExecStart=/usr/bin/v2ray/v2ray (code=exited, status=23)
Main PID: 31017 (code=exited, status=23)

作者: 放牛第一高手    时间: 2019-10-17 13:30
本帖最后由 放牛第一高手 于 2019-10-17 14:31 编辑
ymcoming 发表于 2019-10-17 13:24
1、按理说不该用v2rayN来生成,github那么多好用的模板不用?
2、按理说本地电脑端生成了,直接sftp上传覆 ...


我用rz上传成功了,现在是

[root@vultr v2ray]#  /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
V2Ray 4.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom
A unified platform for anti-**ship.
2019/10/17 14:29:13 [Warning] v2ray.com/core: V2Ray 4.20.0 started

作者: 放牛第一高手    时间: 2019-10-17 13:49
ChinaDNS 发表于 2019-10-17 13:19
看着眼睛累 自己 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 看报错自己改

V2Ray 4.20.0 (V2Fly, a community-driven edition of V2Ray.) Custom
A unified platform for anti-**ship.
main: failed to read config file: /etc/v2ray/config.json > v2ray.com/core/main/json: failed to execute v2ctl to convert config file. > v2ray.com/core/common/platform/ctlcmd: failed to execute v2ctl: v2ray.com/core/infra/conf/command: failed to parse json config > v2ray.com/core/infra/conf/serial: failed to read config file at line 2 char 1 > invalid character 'u' looking for beginning of value

> exit status 255

作者: 放牛第一高手    时间: 2019-10-17 13:51
ymcoming 发表于 2019-10-17 13:24
1、按理说不该用v2rayN来生成,github那么多好用的模板不用?
2、按理说本地电脑端生成了,直接sftp上传覆 ...

问题是我用了 233boy的一键脚本配置成功了也无法连接外网,我不知道为什么?不知道是不是因为脚本写了只支持centos7系统
作者: 一牛鸣    时间: 2019-10-17 13:53
只会一键别玩v2ray
作者: 放牛第一高手    时间: 2019-10-17 13:57
一牛鸣 发表于 2019-10-17 13:53
只会一键别玩v2ray

你爹死了祝你妈也早死




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4