一个小型购物网站开发wordpress 加载很慢

1.查看 crond 是否开启
systemctl status crond

2.设置 crontab 定时任务
基本语法
#基本语法
crontab [选项]

查看定时任务
#查看定时任务
crontab -l
![]()
编辑定时任务
#编辑定时任务
crontab -e

案例实操
*/1 * * * * echo "hello,world" >> /root/hello
#每隔1分钟将hello,world追加到/root下的hello文件
删除定时任务
#删除定时任务
crontab -r

