如何配置Linux操作系统时间服务器
来源:才华咖 阅读:9.92K 次
时间服务器的IP为:
1)。 # rpm -ivh
2)。 # vi /etc/
注释一行
restrict default ignore
加入一行
restrict mask notrust nomodify notrap
3)。 # vi /etc/ntp/step-tickers
加入一行
这样每次ntpd启动时,会自动连接该国际标准时间服务器;
4)。 # service ntpd start
5)。 # netstat -an |grep 123
确保该端口以udp方式开放
时间客户端配置()
a. # ntpdate
应该显示同步成功
b. # crond -e
加入
0-59/10 * * * * /usr/sbin/ntpdate
表示每隔10分钟同步一次时间。
热门内容
大家都在看
最近更新