RHCE 第一次作业
一.定义延迟任务
1.安装邮件服务
[root@haiou ~]# yum install s-nail -y
2.配置邮件服务
[root@haiou ~]# vim /etc/mail.rc
3.测试邮件服务
[root@haiou ~]# echo 88888888 | mail -v -s 'Passion' 13571532874@163.com
4.设置定时任务
[root@haiou ~]# crontab -e
二.时间同步操作
1.定位服务端Sever
安装chrony软件
[root@server ~]# yum install chrony -y
正在更新 Subscription Management 软件仓库。
无法读取客户身份
This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.
上次元数据过期检查:-2488 days, 3:33:06 前,执行于 2025年04月16日 星期三 20时36分13秒。
软件包 chrony-4.5-3.el9.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
编辑配置文件
[root@server ~]# vim /etc/chrony.conf
编辑服务器的时间
[root@server ~]# date -s 20880625
2088年 06月 25日 星期五 00:00:00 CST
重启服务
[root@server ~]# systemctl restart chronyd
客户端
安装软件
[root@haiou ~]# yum install chrony -y
正在更新 Subscription Management 软件仓库。
无法读取客户身份
This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.
上次元数据过期检查:1 day, 23:41:14 前,执行于 2025年04月14日 星期一 21时13分55秒。
软件包 chrony-4.5-3.el9.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
编辑配置文件
重启服务
[root@haiou ~]# systemctl restart chronyd
同步时间
[root@haiou ~]# date
2088年 06月 25日 星期五 00:07:43 CST