wulabing / V2Ray_ws-tls_bash_onekey

MIT License
2.11k stars 922 forks source link

我实际部署过程中的一些自查流程,可供参考 #49

Open AntiMoron opened 2 years ago

AntiMoron commented 2 years ago

脚本一键安装后,客户端连不上?估计是启动不起来:

  1. 看nginx配置里的反向代理端口是啥,cat /etc/nginx/conf/conf.d/v2ray.conf ,反向代理的 127.0.0.1:端口号 在里面有写
  2. curl 127.0.0.1:刚的端口号 看看服务起没起来,没起来会说refuse connection类似的东西
  3. 如果出现没启动起来,再看下v2ray进程在不在 ps aux | grep v2ray,除了当前这条查询指令之外有没有v2ray对应的pid。
  4. 如果还没找到v2ray对应的pid, 说明v2ray启动错误,cd /etc/systemd/system/v2ray.service.d/,看下里面唯一的一个config文件里,ExecStart那行的启动脚本是啥? 4.1. 脚本的config不对,可能路径对不上。比如我在某些centos机器上遇到他的启动项是 实际读到/usr/local/v2ray/config.json (貌似这样),我把对应的文件改成软连接到 /etc/v2ray/config.json就好了 4.2 启动脚本不对,和v2ray脚本有关。比如v2ray 5.x 启动项从 -config 变为 run -config https://github.com/wulabing/V2Ray_ws-tls_bash_onekey/issues/47
lincog commented 1 year ago

第4能有详细操作步骤就好了。