coffee_cn

博客园 首页 新随笔 联系 订阅 管理

参考

https://stackoverflow.com/questions/4929827/shell-exec-php-with-nohup

红色部分为关键点。

nohup /usr/bin/php /mytask/task1.php >/mytask/nohup/task1.log 2>&1 &

 

posted on 2019-12-26 12:12  coffee  阅读(366)  评论(0编辑  收藏  举报