Skip to content

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

@guoapeng

Description

@guoapeng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions