linux配置NTP Server
来源:互联网 发布:淘宝互刷平台 编辑:程序博客网 时间:2024/05/18 05:46
转自:http://512bit.blog.51cto.com/10485620/1671395
安装NTP:
yum install ntp
配置时间源
vi /etc/ntp.conf
server 210.72.145.44
server ntp.api.bz
server 2.centos.pool.ntp.org
配置对客户端(172.16.0.0/24的网段机器)提供NTP服务
# vi /etc/ntp.conf
restrict 172.16.0。0 mask 255.255.255.0 nomodify notrap
配置NTP Server的层数提供本地服务
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 2
设置开机时自动运行时间服务
chkconfig ntpd on
启动或停止时间服务
# service ntpd start
# service ntpd stop
# service ntpd restart
验证ntp服务已经运行
pgrep ntpd
更新本服务器的时间
ntpdate -u 210.72.145.44
配置iptable规则允许客户端访问本机NTP Sever
vi /etc/sysconfig/iptables
增加一行(NTP Server使用UDP 123端口)
-A INPUT -m state --state NEW -m udp -p udp --dport 123 -j ACCEPT
重启iptables
service iptables restart
0 0
- linux配置NTP Server
- Linux 上配置 NTP SERVER
- ntp server的配置
- Ubuntu 配置NTP Server
- linux ntp server
- Linux系统的NTP Server搭建与Client配置
- Linux下NTP配置
- linux配置ntp讲解
- Linux配置NTP服务
- Linux配置NTP服务
- Linux NTP配置
- Linux配置NTP服务器
- Linux ntp配置
- linux ntp 安装配置
- Linux NTP服务器配置
- 自己配置的ntp server
- 配置Linux 的NTP服务
- linux 中ntp的配置
- 黑马程序员 其他对象 I/O
- php设计模式之装饰器模式
- Linux启动新进程的几种方法及比较
- hadoop Unhealthy Nodes
- 两个类相互调用的问题
- linux配置NTP Server
- lucene入门demo
- ECharts使用——封装类库的使用20150713
- 【zoj】【Attack on Titans】
- CentOS 7.0编译安装Nginx+MySQL+PHP
- 大型高并发高负载web应用系统架构-数据库架构策略
- Objective-C - 改变NSMutableArray的特定元素
- dp cf C. Mr. Kitayuta, the Treasure Hunter
- linux declare