同步网络时间到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 

猜你喜欢

转载自www.cnblogs.com/lxcy/p/9717920.html