Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用最新出的v2ray一键安装脚本后没有配置文件,无法进行使用 #102

Closed
1265578519 opened this issue Aug 18, 2020 · 5 comments

Comments

@1265578519
Copy link

1265578519 commented Aug 18, 2020

v2fly/fhs-install-v2ray#61

/etc/v2ray/config.json 和/usr/local/etc/ 目录下也是空的,不存在配置文件

[root@VM-0-16-centos ~]# journalctl --boot -u v2ray
-- Logs begin at Tue 2020-08-18 21:37:28 CST, end at Tue 2020-08-18 22:28:20 CST. --
Aug 18 22:12:12 VM-0-16-centos systemd[1]: Started V2Ray Service.
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: V2Ray 4.27.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.6 linux/amd64)
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: A unified platform for anti-censorship.
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: 2020/08/18 22:12:12 Using confdir from arg: /usr/local/etc/v2ray/
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: 2020/08/18 22:12:12 [Info] v2ray.com/core/common/platform/ctlcmd: <v2ctl message>
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/00_log.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/01_api.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/02_dns.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/03_routing.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/04_policy.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/05_inbounds.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/06_outbounds.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/07_transport.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/08_stats.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: v2ctl> Read config:  /usr/local/etc/v2ray/09_reverse.json
Aug 18 22:12:12 VM-0-16-centos v2ray[4317]: 2020/08/18 22:12:12 [Warning] v2ray.com/core: V2Ray 4.27.0 started
Aug 18 22:26:21 VM-0-16-centos systemd[1]: Stopping V2Ray Service...
Aug 18 22:26:21 VM-0-16-centos systemd[1]: Stopped V2Ray Service.
[root@VM-0-16-centos ~]# V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/ v2ray -test -confdir /usr/local/etc/v2ray/
V2Ray 4.27.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.6 linux/amd64)
A unified platform for anti-censorship.
2020/08/18 22:28:21 Using confdir from arg: /usr/local/etc/v2ray/
Configuration OK.
[root@VM-0-16-centos ~]# ls -alF --color=auto /usr/local/etc/v2ray
total 48
drwxr-xr-x  2 root root 4096 Aug 18 22:09 ./
drwxr-xr-x. 3 root root 4096 Aug 18 22:09 ../
-rw-r--r--  1 root root    3 Aug 18 22:09 00_log.json
-rw-r--r--  1 root root    3 Aug 18 22:09 01_api.json
-rw-r--r--  1 root root    3 Aug 18 22:09 02_dns.json
-rw-r--r--  1 root root    3 Aug 18 22:09 03_routing.json
-rw-r--r--  1 root root    3 Aug 18 22:09 04_policy.json
-rw-r--r--  1 root root    3 Aug 18 22:09 05_inbounds.json
-rw-r--r--  1 root root    3 Aug 18 22:09 06_outbounds.json
-rw-r--r--  1 root root    3 Aug 18 22:09 07_transport.json
-rw-r--r--  1 root root    3 Aug 18 22:09 08_stats.json
-rw-r--r--  1 root root    3 Aug 18 22:09 09_reverse.json
[root@VM-0-16-centos ~]# 
@kslr
Copy link
Contributor

kslr commented Aug 18, 2020

/usr/local/etc/v2ray/00_log.json

@1265578519
Copy link
Author

config.json=00_log.json?把自己写的config.json配置文件信息重命名成00_log.json就可以了吗?

@1265578519
Copy link
Author

image
解决了,感谢群友的帮助,新的脚本配置文件路径在/usr/local/etc/v2ray/config.json

@Loyalsoldier
Copy link
Contributor

@1265578519 I suggest you remove the screenshot.

@JiweiMaster
Copy link

配置文件怎么修改呀,有小白一点的教程么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants