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 running a PHP program and use this command nohup/data/www/wwwroot/military/server. php &
But this error is always reported:
Nohup: appending output to "nohup. out"
Nohup: cannot run command "/data/www/wwwroot/military/server. php": no file or directory
I can confirm that the path is correct. this file and directory are available!
What's the problem? please help me !!!
Php linux nohup:
------ Solution --------------------
The PHP file is not an executable file. of course, an error will be reported,
Nohup php-f/data/www/wwwroot/military/server. php>/dev/null &
------ Solution --------------------
It has nothing to do with nohup.
/Data/www/wwwroot/military/server. php cannot run directly. add the php executable file path,/data/www/wwwroot/military/server. php is passed as a parameter to the php executable file. For example,/usr/bin/php depends on your own php installation location.
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.