Linux操作系统的时间服务器配置方法
来源:asp之家 时间:2009-09-09 08:43:00
时间服务器的IP为:192.168.10.1 1). # rpm -ivh ntp-4.1.2-4.EL3.1.i386.rpm 2). # vi /etc/ntp.conf 注释一行 restrict default ignore 加入一行 restrict 192.168.10.0 mask 255.255.255.0 notrust nomodify notrap 3). # vi /etc/ntp/step-tickers 加入一行 pool
时间服务器的IP为:192.168.10.1
1). # rpm -ivh ntp-4.1.2-4.EL3.1.i386.rpm
2). # vi /etc/ntp.conf
注释一行
restrict default ignore
加入一行
restrict 192.168.10.0 mask 255.255.255.0 notrust nomodify notrap
3). # vi /etc/ntp/step-tickers
加入一行
pool.ntp.org
这样每次ntpd启动时,会自动连接该国际标准时间服务器;
4). # service ntpd start
5). # netstat -an |grep 123
确保该端口以udp方式开放
时间客户端配置(192.168.10.2)
a. # ntpdate 192.168.10.2
应该显示同步成功
b. # crond -e
加入
0-59/10 * * * * /usr/sbin/ntpdate 192.168.10.1
表示每隔10分钟同步一次时间。
标签:Linux操作系统,服务器,配置方法
0
投稿
猜你喜欢
用FTP实现远程重启服务器
2009-02-18 11:54:00
做站内容为王,内容到底有多重要
2008-10-12 18:20:00
Godaddy切换操作系统来换IP
2010-04-17 13:07:00
网络“新三十六行”机会多 就业蓝海待进一步开发
2009-11-13 15:41:00
Google:10个值得玩味的段子
2008-01-24 12:54:00
博客SEO指南
2008-03-18 12:11:00
建立、升级、降级GoDaddy共享主机帐户需要多长时间
2010-04-13 13:22:00
linux smb.conf详解
2009-10-21 17:40:00
使用WP-PageNavi分页插件给WordPress创建分页
2010-03-21 09:09:00
SMTP协议-邮件发送PHP程序代码
2010-03-24 18:40:00
如何设置GoDaddy独立服务器 Godaddy
2010-05-03 12:47:00
百度联盟图文混排产品形式上线 增设图标等元素
2011-08-30 19:21:09
Exchange 2007 安装全过程
2010-02-22 19:24:00
phpwind8.7正式版本发布 “立体化”社区迈入云时代
2011-09-13 18:51:21
微软发布Windows家庭服务器开发工具
2007-04-23 15:07:00
很好很快乐 花儿世界v1.1新版尝鲜报告
2009-11-23 15:56:00
DEDECMS更换模板的方法
2009-05-31 17:09:00
windows远程桌面端口修改
2010-04-14 18:42:00
详解路由器设置实现DDoS防御
2009-12-24 13:48:00
获得IXwebhosting域名转移码教程
2010-03-25 09:44:00