Centos 7系统时间同步
1、修改时区(可选)[root@localhost /]#ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

3、网络时间同步[root@localhost /]#ntpdate -u ntp.api.bz

5、格式化系统时间[root@localhost /]#date "+%F %T"

1、修改时区(可选)[root@localhost /]#ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3、网络时间同步[root@localhost /]#ntpdate -u ntp.api.bz
5、格式化系统时间[root@localhost /]#date "+%F %T"