Home > Article > PHP Framework > Prevent workererman from exiting due to terminal shutdown under Linux system
First of all, we need to know that Workerman has two startup modes under Linux, which are:
1. Debug debugging mode;
2. daemon Daemon mode.
Run php xxx.php start
is to enter the debug mode, which is used to develop and debug problems. When the terminal is closed, Workerman will be closed.
Run php xxx.php start -d
Enter the daemon process mode. Closing the terminal will not affect Workerman.
Solution:
If you want to prevent workererman from exiting due to terminal shutdown, you can use daemon mode to start.
Recommended related articles and tutorials: workerman tutorial
The above is the detailed content of Prevent workererman from exiting due to terminal shutdown under Linux system. For more information, please follow other related articles on the PHP Chinese website!