部署企业内部NTP时间服务器
发布日期:2021-11-15 02:11:45 浏览次数:4 分类:技术文章

本文共 623 字,大约阅读时间需要 2 分钟。

部署企业内部NTP时间服务器,假设node0作为NTP时间服务器主节点,node1, node2都是ntp客户端从节点,内部网段10.10.75.0。

所有节点通过yum命令安装ntp,命令如下:yum install ntp 。

修改node0节点的配置文件/etc/ntp.conf,

内容如下:
server
server
server
restrict nomodify notrap noquery
restrict nomodify notrap noquery
restrict nomodify notrap noquery
#10.10.75.0网段的服务器都可以使用NTP服务器来同步时间。
restrict default ignore
restrict 10.10.75.0 mask 255.255.255.0 notrap nomodify
server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 10
3.在node1、node2节点上,编辑/etc/ntp.conf
添加一句server NTP时间同步服务器IP地址 prefer

4.所有节点启动 ntp服务,把ntp服务设置为开机自启动,命令如下

service ntpd start
chkconfig ntpd on

从节点先使用ntpdate手动同步一下时间命令如下:ntpdate -u 主节点IP地址

转载地址:https://blog.csdn.net/qq_28358461/article/details/90345216 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SSH免密码登录配置
下一篇:message from server: "Host '192.168.76.89' is not allowed to connect to this MySQL server

发表评论

最新留言

不错!
[***.144.177.141]2024年04月07日 13时08分51秒