通过NTP服务器实现时间同步

2024-10-12 06:36:05

1、安装ntp,yum install ntp

通过NTP服务器实现时间同步

3、[root@test ~]# mv /etc/localtime /etc/localt坡纠课柩ime.bak[root@t髫潋啜缅est ~]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime[root@test ~]# date

通过NTP服务器实现时间同步

5、vi/etc/ntp.conf,修改配置文件,使能同步网上的ntp服务器

通过NTP服务器实现时间同步

7、ntpq –p*表示目前使用的ntp server的状态

通过NTP服务器实现时间同步

9、显示所有已启动的服务 systemctl list-units --type=service

通过NTP服务器实现时间同步
猜你喜欢