Home >PHP Framework >Swoole >How to shut down the swoole daemon
1. Use SWOOLE in the project today, accidentally open the guardian process in the configuration (that is, the process is running in the background) (Recommended learning: # swoole video tutorial)
The first step is to change the daemon process in the code to 0
The second step : Find the pid of this port number (the port my code listens to is 9503), and get the PID
The command is as follows:
netstat -apn | grep 9503
Step 3: Kill the process
The command is as follows:
kill -9 186691At this time, you can restart the listening program. No more error reports that the port is occupied
The above is the detailed content of How to shut down the swoole daemon. For more information, please follow other related articles on the PHP Chinese website!