ntp时间同步

同步网络时间:输入ntpdate time.nist.gov同步网络时间

 [root@linuxidc~]# ntpdate -u time.nist.gov  #网络时间同步命令

 13 Mar 13:39:57 ntpdate[3318]: adjust time server 216.229.0.179 offset 0.018134 sec

 #出现以上信息说明同步成功#

 注:如提示命令不存在,直接输入:yum install ntp -y  安装ntp软件包。 

 注:若不加上-u参数, 会出现以下提示:no server suitable for synchronization found

 -u:从man ntpdate中可以看出-u参数可以越过防火墙与主机同步;

 210.72.145.44:中国国家授时中心的官方服务器。

 ntp常用服务器:

中国国家授时中心:210.72.145.44

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

美国:time.nist.gov 

复旦:ntp.fudan.edu.cn 

微软公司授时主机(美国time.windows.com 

台警大授时中心(台湾)asia.pool.ntp.org

posted on 2023-01-30 22:26  yipianchuyun  阅读(121)  评论(0编辑  收藏  举报

导航