rhce1次作业
1、at 配置在5小时后,将 “This is a at task” 写入 root家目录中的at_test文件中
touch at_test
at now + 5 hours
2.crontab配置,每周六,周日 9点半,14点 提醒我上RHCE课 写入root家目录中的cron_test文件中
touch cron_test
crontab -e
30 9 * * 6,7 ecoh “classing” > /root/cron_test
0 14 * * 6,7 ecoh “classing” > /root/cron_test
3.在两台Linux上部署chrony服务:要求:第一台从阿里云服务器同步时间, 第二台从第一台同步时间
第一台:
vim /etc/chrony.conf
server ntp.aliyun.com iburst
server 210.72.145.8 iburst
第二台:
vim /etc/chrony.conf
server 192.168.255.128 iburst
systemctl restart chronyd
systemctl enable chronyd
本文介绍了如何在Linux系统中设置at和cron任务,以及如何通过Chrony服务实现时间同步。具体步骤包括使用at命令在5小时后将指定内容写入文件,设置crontab在周六和周日的特定时间提醒,以及配置两台Linux服务器,其中一台从阿里云服务器同步时间,另一台从第一台服务器同步时间。
8786

被折叠的 条评论
为什么被折叠?



