Centos 7系统时间同步

Linux终端
方式/
1点窜时区(可选)
[root@localhost /]# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Centos 7系统时间同步



2【Centos 7系统时间同步】安装ntpdate(已安装可跳过)
[root@localhost /]# yum -y install ntp

Centos 7系统时间同步



3收集时候同步
[root@localhost /]# ntpdate -u ntp.api.bz

Centos 7系统时间同步



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

Centos 7系统时间同步



5格局化系统时候
[root@localhost /]# date "+%F %T"

Centos 7系统时间同步




以上内容就是Centos 7系统时间同步的内容啦 , 希望对你有所帮助哦!

    猜你喜欢