NTP服务
来源:互联网 发布:鼠标指针软件下载 编辑:程序博客网 时间:2024/06/05 00:46
1、安装软件包(在服务端和客户端): yum install ntp ;
2、服务器端配置 。
例如:
首先,服务端设定IP地址为:192.168.146.110
修改ntp配置文件
vim /etc/ntp.conf
server 0.redhat.pool.ntp.org //设定上级服务器
restrict 192.168.146.0 mask 255.255.255.0 nomodify //设定哪些client机器可以和ntp server进行同步
//启动NTP服务前,手动校正一次时间
ntpdate 0.redhat.pool.ntp.org
service ntpd restart
chkconfig ntpd on
//查看ntp服务状态
netstat -ln | grep 123
ntpstat
3、客户端配置:
ntpdate 192.168.146.110 //与NTP server 同步时间
或者定期同步
crontab -e
*/5 * * * * /usr/sbin/ntpdate -u 192.168.146.110 //每五分钟同步一次
重启crond服务/etc/init.d/crond restart
ntpq -p //查看同步状态
2、服务器端配置 。
例如:
首先,服务端设定IP地址为:192.168.146.110
修改ntp配置文件
vim /etc/ntp.conf
server 0.redhat.pool.ntp.org //设定上级服务器
restrict 192.168.146.0 mask 255.255.255.0 nomodify //设定哪些client机器可以和ntp server进行同步
//启动NTP服务前,手动校正一次时间
ntpdate 0.redhat.pool.ntp.org
service ntpd restart
chkconfig ntpd on
//查看ntp服务状态
netstat -ln | grep 123
ntpstat
3、客户端配置:
ntpdate 192.168.146.110 //与NTP server 同步时间
或者定期同步
crontab -e
*/5 * * * * /usr/sbin/ntpdate -u 192.168.146.110 //每五分钟同步一次
重启crond服务/etc/init.d/crond restart
ntpq -p //查看同步状态
0 0
- NTP服务
- Rhel5 配置NTP服务
- 配置ntp服务
- NTP时间服务
- Linux配置NTP服务
- Linux配置NTP服务
- Linux NTP服务总结
- Linux NTP 服务详解
- ntp 服务的搭建
- 本地NTP服务设置
- Linux设置ntp服务
- NTP服务配置
- win7搭建NTP服务
- ubuntu 设置ntp服务
- Windows开启NTP服务
- linux搭建ntp服务
- 如何搭建NTP服务
- linux系统ntp服务
- nio学习之netty入门(1)---发送字符串
- 详细简单无线破解之wifi密码获取 2017
- Class对象
- 利用 ZXing Android Embedded 实现二维码处理
- 详解 Spring 3.0 基于 Annotation 的依赖注入实现
- NTP服务
- Beyond Australis
- getsockopt()和setsockopt()函数详解
- go 生成区间随机数
- 贝叶斯网络以及应用
- JQuery学习笔记(2)
- 企业网站SEO优化不再难,只因为有了这套方案
- nginx对特定参数限流
- struts2架构图