`
爱像天空
  • 浏览: 197826 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

Linux操作系统的时间服务器配置方法

阅读更多
时间服务器的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.11). # rpm -ivh ntp-4.1.2-4.EL3.1.i386.rpm2). # vi /etc/ntp.conf注释一行restrict default ignore加入一行restrict 192.168.10.0 mask 255.255.255.0 notrust nomodify notrap3). # vi /etc/ntp/step-tickers加入一行pool.ntp.org这样每次ntpd启动时,会自动连接该国际标准时间服务器;4). # service ntpd start5). # 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分钟同步一次时间。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics