Home  >  Article  >  PHP Framework  >  What should I do if the swoole server cannot connect?

What should I do if the swoole server cannot connect?

藏色散人
藏色散人Original
2020-04-10 09:17:243332browse

What should I do if the swoole server cannot connect?

swooleWhat should I do if the server cannot connect?

Use a browser or TCP debugging tool to connect and have several diagnostic ideas:

php -m Check for swoole extension

View the default firewall status ( It displays not running after it is turned off, and running when it is turned on)

firewall-cmd --state Check whether the firewall is closed

ps -ajft

Check whether its own executable file is executing

yum install telnet

Use telnet for link testing telnet 127.0.0.1 9502

ctrl ]Exit the process

If there are no problems with the above

Go to the server to see if there is swoole_server("0.0" in the security group .0.0",9502);Specified port number

The above is the detailed content of What should I do if the swoole server cannot connect?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn