通过corntab进行定时任务 执行
*/5 * * * * sh /www/wwwroot/test.com/testMq.sh
在对应的文件中 新建testMq.sh文件 代码如下
#!/bin/bash
cd /www/wwwroot/test.com
nohup php think testMq>/dev/null 2>&1 &
通过corntab进行定时任务 执行
*/5 * * * * sh /www/wwwroot/test.com/testMq.sh
在对应的文件中 新建testMq.sh文件 代码如下
#!/bin/bash
cd /www/wwwroot/test.com
nohup php think testMq>/dev/null 2>&1 &