NTP time server construction (operation and maintenance practical small project)

Environment introduction
Two centos7
192.168.59.130
192.168.59.131

Install NTP service on server 192.168.59.131

yum -y install ntp

Modify the configuration file

vim /etc/ntp.conf

Insert picture description here
Restart ntp service

systemctl restart ntpd

Client 192.168.59.130 install ntpdate

yum -y install ntpdate
ntpdate -u 192.168.59.131

Insert picture description here
Adaptation mode

ntpdate -d 192.168.59.131

Guess you like

Origin blog.csdn.net/APPLEaaq/article/details/109053571