@ Wooyun ssh connects to Linux. if you want to disable the connection, you can run the nohup command nohup/opt/phpfpm/bin/phphotel to run a program in the background. php & amp; appendingoutputtonohup appears. you can view the process pid in ps-ef
@ Wooyun ssh connects to Linux. If you want to disable the connection, you can use the nohup command to run a program in the background.Nohup/opt/phpfpm/bin/php hotel. php &Appending output to nohup. out is correct.You can run ps-ef to view the
Use nohup to keep the program running in the background forever
Because I purchased a foreign host with the Telnet permission, I also used telnet to log on to Linux, but I found that the window was automatically disconnected from the host once it
The php daemon and the linux command nohup are used to execute the task once per second. In Unix, the nohup command function means to run the command without hanging up, while nohup puts all the output of the program to the current directory nohup.
Principle of the nohup command: the terminal that you start a job is called the control terminal of the job. When you log out, some shells (not bash by default) Send a sighup signal to these background jobs, causing these processes to exit. To
Use nohup to keep the program running in the background forever
In Unix/Linux, for example, if you want a program to run in the background, many of them use & to make the program run automatically at the end of the program. For example, to run MySql
With this command, we will write shell scripts in php and use loops to keep our scripts running. No matter whether the terminal window is closed or not, we can keep running php scripts. In Unix, The nohup command function means to run the command
With this command, we will write shell scripts in php and use loops to keep our scripts running. no matter whether the terminal window is closed or not, we can keep running php scripts. In Unix, the nohup command function means to run the command
With this command, we will write shell scripts in php and use loops to keep our scripts running. No matter whether the terminal window is closed or not, we can keep running php scripts.
With this command, we will write shell scripts in php and use
For linux nohup, I want to run a PHP program continuously and use this command & nbsp; nohup & nbsp;/data/www/wwwroot/military/server. php & nbsp; & amp; but always reports this error: nohup: & nbsp; append linux system nohup
I want to continue
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.