LoginSignup
15
13

More than 5 years have passed since last update.

ntpdのバージョンアップ

Last updated at Posted at 2014-12-24

ntpのバージョンアップを行います

ntpd起動状態の確認

psで確認します

[root@i-2411-45830-VM ~]# ps aux | grep ntpd
ntp       1243  0.0  0.0  30440  1544 ?        Ss   Nov14   0:03 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root     25939  0.0  0.0 107448   936 pts/1    S+   10:56   0:00 grep ntpd

serviceのステータスでも確認

[root@VM ~]# service ntpd status
ntpd (pid  1243) を実行中...

ntpdのバージョン確認

バージョン確認

[root@VM ~]# ntpq -c rv
---中略---
version="ntpd 4.2.4p8@1.1612-o Fri Feb 22 11:23:27 UTC 2013 (1)",
---中略---

yumで確認

[root@VM ~]# yum list installed | grep ntp
ntp.x86_64            4.2.4p8-3.el6.centos
ntpdate.x86_64        4.2.4p8-3.el6.centos

4.2.4でした。

ntpdのバージョンアップ

yumでupdateバージョンを確認

[root@VM ~]# yum check-update | grep ntp
ntp.x86_64                         4.2.6p5-2.el6.centos             updates     
ntpdate.x86_64                     4.2.6p5-2.el6.centos             updates 

update

[root@VM ~]# yum update ntp
---中略---
Updated:
  ntp.x86_64 0:4.2.6p5-2.el6.centos                                             

Dependency Updated:
  ntpdate.x86_64 0:4.2.6p5-2.el6.centos                                         

Complete!

updateされたか確認

[root@VM ~]# yum list installed | grep ntp
ntp.x86_64            4.2.6p5-2.el6.centos
ntpdate.x86_64        4.2.6p5-2.el6.centos
[root@VM ~]# ntpq -c rv
---中略---
version="ntpd 4.2.6p5@1.2349-o Sat Dec 20 02:53:39 UTC 2014 (1)",
---中略---

ntpdを再起動

[root@VM ~]# service ntpd restart
ntpd を停止中:                                             [  OK  ]
ntpd を起動中:                                             [  OK  ]
15
13
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
13