Home > Article > PHP Framework > 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!