Linux时区同步问题

多台linux设置统一的正确环境:对-时间同步
命令:utpdate 时间服务器ip
ntpdate -u xx.xx.xx.xx 结果如下:

[root@linuxprobe ~]# ntpdate -u ntp.api.bz
29 Apr 15:26:27 ntpdate[2667]: step time server 61.153.197.226 offset -311.570389 sec
[root@linuxprobe ~]# date
2021年 05月 11日 星期二 14:46:32 CST

ps:若不加上-u参数, 会出现以下提示:no server suitable for synchronization found
-u:从man ntpdate中可以看出-u参数可以越过防火墙与主机同步;

ntp常用服务器:

中国国家授时中心:210.72.145.44
NTP服务器(上海) :ntp.api.bz
美国: time.nist.gov
复旦: ntp.fudan.edu.cn
微软公司授时主机(美国) :time.windows.com
北京邮电大学 : s1a.time.edu.cn
清华大学 : s1b.time.edu.cn
北京大学 : s1c.time.edu.cn
台警大授时中心(台湾):asia.pool.ntp.org

posted @ 2021-05-11 14:54  ice_image  阅读(100)  评论(0编辑  收藏  举报