There are two existing servers A and B, of which server B runs the software service with port 8888, and server A now uses the command line-& amp; gt; phpa. php executes this script and monitors port 8888 of server B in real time. If a device sends a message to the service software of server B,. php will receive it,... there are two existing servers A and B. Among them, server B runs the software service with port 8888, and server A uses
-> Php. php executes this script and monitors port 8888 of server B in real time. If a device sends a message to the service software of server B,. php will receive it and then process it.
Now the problem is that if you close the shell of the local connection, the script will stop running. How can we keep a. php running on the server in the background?
Reply content:
There are two existing servers A and B. Among them, server B runs the software service with port 8888, and server A uses
-> Php. php executes this script and monitors port 8888 of server B in real time. If a device sends a message to the service software of server B,. php will receive it and then process it.
Now the problem is that if you close the shell of the local connection, the script will stop running. How can we keep a. php running on the server in the background?
In addition to nohup, you can also choose supervisor, screen, etc.
In addition, the supervisor should be the most suitable. In addition to monitoring the process status, it can also automatically restart upon abnormal exit!
Nohup php a. php &
Http://www.cnblogs.com/kapok/archive/2005/11/23/283108.html
Nohup command