2024年4月22日发(作者:)
CentOS7的时间同步方法
centos7 时间同步和时区设置
首先centos7的时间同步是使用chrony这个工具(
[plain] view plain copy
1. [root@localhost ~]# systemctl status chrony
2. ● e
3. Loaded: not-found (Reason: No such file or directory)
4. Active: inactive (dead)
1.安装chrony
[plain] view plain copy
1. [root@localhost ~]# yum -y install chrony
2. Loaded plugins: fastestmirror, langpacks
3. Loading mirror speeds from cached hostfile
2.启动chrony
[plain] view plain copy
1. [root@localhost ~]# systemctl start chronyd
2. [root@localhost ~]# systemctl status chronyd
3. ● e - NTP client/server
4. Loaded: loaded (/usr/lib/systemd/system/e; enabled; vendor
preset: enabled)
5. Active: active (running) since Mon 2016-10-
24 17:52:52 CST; 3h 35min ago
6. Main PID: 807 (chronyd)
7. CGroup: //e
8. └─807 /usr/sbin/chronyd
9. Oct 24 17:52:44 omain systemd[1]: Starting NTP client/serv
er...
10. Oct 24 17:52:44 omain chronyd[807]: chronyd version 2.


发布评论