Home  >  Article  >  PHP Framework  >  How to make php run permanently with swoole

How to make php run permanently with swoole

尚
Original
2019-12-14 13:39:522269browse

How to make php run permanently with swoole

#soole can make PHP run permanently by starting the daemon process.

Daemonization. When daemonize => 1 is set, the program will go to the background and run as a daemon process. This must be enabled for long-running server-side programs.

If the daemon process is not enabled, the program will be terminated when the ssh terminal exits.

After the daemon is enabled, standard input and output will be redirected to log_file

If log_file is not set, it will be redirected to /dev/null, and all print screen information will be discarded

Recommended learning: swoole video tutorial

The above is the detailed content of How to make php run permanently with swoole. 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
Previous article:Is swoole open source?Next article:Is swoole open source?