全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 7189|回复: 10
打印 上一主题 下一主题

[特价VPS] V2RAY官方代码加入了tcp配置后报错,是否我语法错误?

[复制链接]
跳转到指定楼层
1#
发表于 2019-10-17 10:34:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 放牛第一高手 于 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
2#
发表于 2019-10-17 12:30:27 | 只看该作者
又菜又白就用v2rayN生成server配置文件
3#
 楼主| 发表于 2019-10-17 13:07:37 | 只看该作者
本帖最后由 放牛第一高手 于 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
4#
发表于 2019-10-17 13:19:29 | 只看该作者
看着眼睛累 自己 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json 看报错自己改
5#
发表于 2019-10-17 13:24:00 | 只看该作者
1、按理说不该用v2rayN来生成,github那么多好用的模板不用?
2、按理说本地电脑端生成了,直接sftp上传覆盖就OK,干嘛还要用VI?保不准在复制粘贴中出现格式问题。
6#
 楼主| 发表于 2019-10-17 13:28:11 | 只看该作者
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)
7#
 楼主| 发表于 2019-10-17 13:30:24 | 只看该作者
本帖最后由 放牛第一高手 于 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
8#
 楼主| 发表于 2019-10-17 13:49:06 | 只看该作者
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
9#
 楼主| 发表于 2019-10-17 13:51:48 | 只看该作者
ymcoming 发表于 2019-10-17 13:24
1、按理说不该用v2rayN来生成,github那么多好用的模板不用?
2、按理说本地电脑端生成了,直接sftp上传覆 ...

问题是我用了 233boy的一键脚本配置成功了也无法连接外网,我不知道为什么?不知道是不是因为脚本写了只支持centos7系统
10#
发表于 2019-10-17 13:53:14 | 只看该作者
只会一键别玩v2ray
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-9 08:51 , Processed in 0.100103 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表