通过NTP服务器实现时间同步
1、安装ntp,yum install 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

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

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

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