Home >PHP Framework >Swoole >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!