14
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOSで自動時刻合わせ

Last updated at Posted at 2014-04-07
  • CentOS6.3

##タイムゾーン
# cp -p /usr/share/zoneinfo/Japan /etc/localtime

##NTPインストール
# sudo yum -y install ntp

##NTPサーバの設定

# vi /etc/ntp.conf # OSバージョンによって初期設定値が異なるけど基本一緒
-server 0.centos.pool.ntp.org
-server 1.centos.pool.ntp.org
-server 2.centos.pool.ntp.org

+server -4 ntp.nict.jp
+server -4 ntp1.jst.mfeed.ad.jp
+server -4 ntp2.jst.mfeed.ad.jp
+server -4 ntp3.jst.mfeed.ad.jp

##NTPサービス起動
# service ntpd start

##NTPサービスの自動起動設定
# chkconfig ntpd on

##設定確認
###自動起動設定確認
# chkconfig --list ntpd
###ntpサーバ照会
# ntpq -p

14
12
0

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
14
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?