linux下运行
crontab -e
选择编辑器
Select an editor. To change later, run 'select-editor'. 1. /bin/ed 2. /bin/nano <---- easiest 3. /usr/bin/vim.basic 4. /usr/bin/vim.tiny Choose 1-4 [2]:
创建定时任务
30 21 * * * /usr/local/php/bin/php /your_project_path/yii test/test