一、windows:
cd D:\WWW\ForeManApi
php think spider
二、linux:
// 为think添加执行权限
chmod +x /home/wwwroot/default/www.xxx.com/think
crontab -e
// 每一小时执行一次
0 */1 * * * /usr/local/php/bin/php /home/wwwroot/default/www.xxx.com/think spider
一、windows:
cd D:\WWW\ForeManApi
php think spider
二、linux:
// 为think添加执行权限
chmod +x /home/wwwroot/default/www.xxx.com/think
crontab -e
// 每一小时执行一次
0 */1 * * * /usr/local/php/bin/php /home/wwwroot/default/www.xxx.com/think spider