Home  >  Article  >  PHP Framework  >  Prevent workererman from exiting due to terminal shutdown under Linux system

Prevent workererman from exiting due to terminal shutdown under Linux system

王林
王林Original
2019-12-11 13:42:172812browse

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 -dEnter 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!

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