4-1·NTP服务器配置搭建
来源:互联网 发布:软件运营部门 编辑:程序博客网 时间:2024/06/05 15:51
一·NTP服务器搭建
1)安装NTP服务
[root@localhost ~]# yum -y install ntp[root@localhost ~]# vim /etc/ntp.conf
restrict 172.25.0.0 mask 255.255.255.0 nomodify notrap //添加接受的地址范围# Use public servers from the pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).#server 0.rhel.pool.ntp.org iburst#server 1.rhel.pool.ntp.org iburst#server 2.rhel.pool.ntp.org iburst#server 3.rhel.pool.ntp.org iburstserver s1a.time.edu.cn iburst //中国邮电大学NTP服务器
[root@localhost ~]# systemctl start ntpd[root@localhost ~]# systemctl enable ntpd
2)防火墙开启端口,NTP默认端口号UDP123
[root@localhost ~]# firewall-cmd --add-service=ntp --permanent //永久生效放行ntp服务[root@localhost ~]# firewall-cmd --reload //重读防火墙
3)查看同步
[root@localhost ~]# ntpq -p remote refid st t when poll reach delay offset jitter==============================================================================*10.112.202.in-a 202.118.1.46 2 u 9 64 1 93.632 9.389 5.115
4)配置ntp客户端
[root@localhost ~]# yum -y install ntpdate //安装客户端软件[root@localhost ~]# ntpdate s1a.time.edu.cn //指定服务器域名[root@localhost ~]# systemctl restart ntpdate //重启服务
阅读全文
0 0
- 4-1·NTP服务器配置搭建
- linux搭建ntp服务器
- NTP服务器搭建
- Ubuntu搭建ntp服务器
- ubuntu搭建NTP服务器
- NTP服务器搭建
- ubuntu搭建ntp服务器
- 搭建ntp时间服务器
- ntp服务器搭建
- windows ntp服务器搭建
- WIN7搭建NTP服务器
- 搭建NTP 服务器
- NTP时间服务器搭建
- CentOS搭建NTP服务器
- NTP时间服务器搭建
- ntp时间服务器搭建
- 简单搭建ntp服务器
- linux NTP服务器搭建
- JAVA单链表反转
- this关键字的理解
- java的集合中的Set以及set的实现类HashSet和TreeSet
- SQlite3基本用法,使用sublime编辑器
- 咒语
- 4-1·NTP服务器配置搭建
- 2746:约瑟夫问题
- 设计思想学习—装饰者模式
- js关于setTimeout实现延时执行函数并进行传参
- 到底什么是集群&分布式
- org.hibernate.ObjectNotFoundException: No row with the given identifier exists解决办法
- 2017-12-20php学习基础巩固第二天
- Cookie|Session
- jsp插入图片——撕裂