In linux, how does one automatically run webservice? I used php as a service. now I want to use ssh to start the service. The restart is as follows: php & nbsp; wwwaabbwebsocketwebsocketserverserver. php: now there are two problems. 1. if you use ssh to start the service, then the WINDOWS computer running SSH will automatically run webservice if linux does not run it for a long time.
I used php as a service. now I want to start the service through ssh. the following command is used to start the service: php/www/aabb/websocket/server. php, now there are two problems that follow
1. if you use ssh to start the service, will the WINDOWS computer running SSH automatically shut down if it does not work for a long time? will the service start after it is disabled, if you cannot start the service, there are many things you can't do.
2. whether the service can be written into nginx means that the service will run as long as the server is on
Please help me. this is the first time I wrote a webservice program. I thought about it yesterday and didn't think of a solution.
------ Solution --------------------
Nohup php/www/aabb/websocket/server. php &
Background execution