NTP时间服务器搭建(运维实用小项目)

环境介绍
两台centos7
192.168.59.130
192.168.59.131

server端192.168.59.131安装NTP服务

yum -y install ntp

修改配置文件

vim /etc/ntp.conf

在这里插入图片描述
重启ntp服务

systemctl restart ntpd

客户机192.168.59.130安装ntpdate

yum -y install ntpdate
ntpdate -u 192.168.59.131

在这里插入图片描述
调适模式

ntpdate -d 192.168.59.131

猜你喜欢

转载自blog.csdn.net/APPLEaaq/article/details/109053571
今日推荐