测试你的redhat系统是否受闰秒的影响

来源:互联网 发布:学霸通软件安装 编辑:程序博客网 时间:2024/06/04 18:57

一:闰秒:官网说明 :https://access.redhat.com/articles/15145 


二:在文章的Known Issues有证明在linux内核2.6.18-164.el5以后的系统不受闰秒影响,以下截图为:








三:测试你的系统是否受闰秒影响


下载测试脚本:



下载并安装对应系统的 tzdata 包(The public-domain time zone database ),以便测试你的系统是否能处理闰秒

下载地址:http://rpm.pbone.net/index.php3/stat/3/limit/1/srodzaj/1/dl/40/search/tzdata/field[]/1/field[]/2


[root@~]# rpm -Uvh tzdata-2015d-1.el5.x86_64
Preparing...                ########################################### [100%]
   1:tzdata                 ########################################### [100%]




[root@ ~]# ./leap_vulnerability.sh
Installed kernel version: 2.6.18-274.el5
Installed tzdata version: tzdata-2015d-1.el5
Installed ntp version: ntp-4.2.2p1-15.el5
Not vulnerable


我的系统是linux5.7 内核是2.6.18-274.el5     我的系统是能够处理闰秒的。


如果运行脚本后返回值是:

This system is vulnerable to a performance degradation after the Leap Second Insertion of June 30, 2015.
Please refer to <https://access.redhat.com/solutions/154793> for remediation steps.


说明你的系统会受闰秒的影响,那么再闰秒到来前你需要关闭ntpd服务,闰秒过后再开启ntpd服务。



返回值是

The installed tzdata package may need to be updated before the Leap Second Insertion of June 30, 2015.
Please refer to <https://access.redhat.com/articles/15145> for remediation steps.

说明你没有安装最新的 tzdata 公共时区数据库包,请参看上面下载安装tzdata再进行测试。




---end ---


what's tzdata? :https://launchpad.net/ubuntu/+source/tzdata 





0 0