Home > PHP Framework > Workerman > body text

Prevent workererman from exiting due to terminal shutdown under Linux system

王林
Release: 2019-12-11 13:42:17
Original
2790 people have browsed it

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!