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

端口号:xx, v2启动失败,请检查端口是否被占用! #33

Open
guoapeng opened this issue Apr 13, 2023 · 0 comments
Open

Comments

@guoapeng
Copy link

ered the following issue that the port is occupied no matter what port I provide, it always throws such error.
and I looked deeper into the issue and found that it's irrelevant to the port.
it's because the service is not up due to wrong command might be because of the v2ray command changed a lot.

in the service v2ray.service the command doesn't work any ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
by looking into the user manual of v2ray, to startup v2ray, the command should be like the following to use subcommand instead of v2ray itself.

ExecStart=/usr/bin/v2ray/v2ray run -config /etc/v2ray/config.json

+ systemctl enable v2ray
+ systemctl restart v2ray
+ sleep 3
++ ss -ntlp
++ grep 91
++ grep v2ray
+ res=
+ '[' '' = '' ']'
+ colorEcho '\033[31m' ' 端口号:91, v2启动失败,请检查端口是否被占用!'
+ echo -e '\033[31m 端口号:91, v2启动失败,请检查端口是否被占用!\033[0m'
 端口号:91, v2启动失败,请检查端口是否被占用!
+ exit 1
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

1 participant