1、进程一直挂起 nohup command &
- history.log 文件 会自动生成
nohup php /www/web/shop/public/script.php /Order/run >> history.log 2 >&1 &
2、定时任务使用
- 每4小时执行一次
* */4 * * * www /usr/local/php/bin/php /www/web/shop/think Refresh > /dev/null 2>&1 &
nohup php /www/web/shop/public/script.php /Order/run >> history.log 2 >&1 &
* */4 * * * www /usr/local/php/bin/php /www/web/shop/think Refresh > /dev/null 2>&1 &