whmcs换到VPS,没有DA,CP方便的自动任务选项,下面使用crontab来实现自动任务
(crond是linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自动启动crond进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任务。)

安装

[php]
yum install vixie-cron crontabs
chkconfig crond on
service crond start
[/php]

使用方法

查看任务列表
[php]crontab -l[/php]
添加任务
[php]crontab -e[/php]

Last modification:December 26, 2017
If you think my article is useful to you, please feel free to appreciate