-
Notifications
You must be signed in to change notification settings - Fork 995
Open
Description
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 1Metadata
Metadata
Assignees
Labels
No labels