Home > PHP Framework > Swoole > body text

How to make php run permanently with swoole

Release: 2019-12-14 13:39:52
Original
2244 people have browsed it

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!

Related labels:
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!