同步网络时间到linux服务器(先修改时区再进行同步网络时间)

查看时区:date -R

修改整个系统时区:

rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

网络时间同步ntpdate -u ntp.api.bz

NTP服务器(上海) :ntp.api.bz

 

--------------------- 本文来自 suhiymof 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/suhiymof/article/details/78782279?utm_source=copy 

posted @ 2018-09-28 12:24  Jony.K.Chen  阅读(1409)  评论(0编辑  收藏  举报