前言
在实际生产环境中集群的各节点的时间,在运行中时间的偏差会逐渐增大。这时我们可以通过搭建NTP服务来保证所有节点的时间同步。
1、环境
2台(CentOS7.X),NTP服务器IP:10.10.35.116,客户端IP:10.10.35.114
2、配置yum源,服务端安装ntp并配置
vim /etc/yum.repos.d/CentOS-Base.repo

----清理yum源
yum clean all
----查看源
yum list all
----安装NTP
yum install ntp
----修改配置文件:
vim /etc/ntp.conf
在restrict ::1下面添加如下几行
restrict default nomodify
server 127.127.1.0

最低0.47元/天 解锁文章
1535

被折叠的 条评论
为什么被折叠?



