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

2、安装ntpdate(已安装可跳过)[root@localhost /]#yum -y install ntp

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

4、查看系统时间[root@localhost /]#date -R

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