centos搭建ntp时间服务器

发布时间:2020-06-12 04:25:15 作者:朱科强
来源:网络 阅读:264

1、安装。

yum install -y ntp

2、开机启动。

chkconfig ntpd on

3、配置。

vim /etc/ntp.conf

修改restrict default kod nomodify notrap nopeer noquery

变成restrict default  nomodify notrap

添加以下这行,其中192.168.0.0 netmask是允许连接此服务器的ip段

restrict 192.168.0.0 netmask 255.255.0.0 nomodify notrap

保存退出

4、重启服务。

/etc/init.d/ntpd restart

5、防火墙放行。

vim /etc/sysconfig/iptables

-A INPUT -s 192.168.0.0/16 -j ACCEPT

推荐阅读:
  1. ntp网络时间服务器的新功能是什么
  2. 关于NTP时间服务器的详细介绍

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

搭建本地ntp服务器 centos ce tos

上一篇:10年老程序员给3年开发者的10点建议

下一篇:mongoDB启动失败问题解决

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》