crontab
# ubuntu和centos上服务名的区别
- cron,ubuntu上服务名叫cron,centos上叫crond
- ssh,ubuntu上服务名叫ssh,centos上叫sshd
- 可能是centos上都要加个d?
# centos
systemctl status crond
# ubuntu
service cron status
1
2
3
4
5
2
3
4
5
# ubuntu,cron
这篇文章非常棒:http://c.biancheng.net/view/1092.html
# 查看服务是否运行
service cron status
# 新增
crontab -e
1
2
3
4
5
6
2
3
4
5
6
crontab -e
编辑完保存后直接生效。
编辑 (opens new window)
上次更新: 2021/10/11, 12:43:58