NTPサービスの構造(時間シンクロナイザー)

NTPサービスを設定
:環境準備する
サーバー192.168.124.117の
クライアント192.168.124.109の
サーバの設定を:
YUM NTPのntpdate -yインストールし
、バックアップ構成ファイル
のcp /etc/ntp.confファイルを/etc/ntp.conf.bak
設定ファイルの編集
のvimの/ etcを/ntp.conf

在里面  
    将#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap前面的注释去掉
    再在下面添加一行  server 192.168.124.117(服务端Ip)

NTPサービスの構造(時間シンクロナイザー)

サービスの開始
、サービスのntpd startを

ファイアウォールをオフに
firewalld STOP systemctl
setenforce 0を

クライアントの設定

ダウンロード
yumをNTPにntpdate -yインストール
2.編集したファイル
のvimの/etc/ntp.confファイル

内部の追加
サーバ192.168.124.109(クライアントIP)を
NTPサービスの構造(時間シンクロナイザー)

ファイアウォールをオフに
firewalld STOP systemctl
setenforce 0を

同期します

ntpdateを192.168.124.117(サーバIP)

おすすめ

転載: blog.51cto.com/14354119/2427880