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"

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:82
阅读量:55
阅读量:46
阅读量:44
阅读量:187