The service-side code is finished, PHP server.php is executed on the command line, but how can you keep running in the background? I closed the SSH client window, I can not connect to the back add a & also not, how to operate? R
Reply content:
The service-side code is finished, PHP server.php is executed on the command line, but how can you keep running in the background? I closed the SSH client window, I can not connect to the back add a & also not, how to operate? R
Screen PHP server.php
Daemon process. Set daemonize = 1 o'clock, the program will run in the background as a daemon. This key must be enabled for long-running server-side programs.
If the daemon is not enabled, the program will be terminated when the SSH terminal exits.
After the daemon is enabled, standard inputs and outputs are redirected to Log_file
If Log_file is not set, it will be redirected to/dev/null and all information on the print screen will be discarded