NTP服务器配置
发布日期:2019-09-12 20:23 | 文章来源:网络
服务器授时
实验环境:RHEL6.0端口:123中国授时中心服务器IP:210.72.145.44#yuminstallntptzdata-y#vim/etc/ntp.conf*********************************************************************************************************driftfile/var/lib/ntp/driftrestrictdefaultkodnomodifynotrapnopeernoqueryrestrict-6defaultkodnomodifynotrapnopeernoqueryrestrict202.120.2.101#时间服务器1restrict220.130.158.71#时间服务器2restrict127.0.0.1restrict-6::1restrict192.168.0.0mask255.255.255.0nomodifyserver202.120.2.101prefer#服务器优先级server220.130.158.71includefile/etc/ntp/crypto/pwkeys/etc/ntp/keys*********************************************************************************************************#/etc/init.d/ntpdstart#netstat-tulnp|grepntp#ntpstat客户端配置:#yuminstallntp-y#ntpdate192.168.0.1#vim/etc/ntp.conf***********************************************************************************************************添加:restrict192.168.0.1server192.168.0.1***********************************************************************************************************#/etc/init.d/ntpdstart注:更改时区步骤:1.#vim/etc/sysconfig/clock2.#cp/usr/share/zoneinfo/America/New_York/etc/localtime#date#hwclock#hwclock-wTags:服务器授时,NTP服务器配置
版权声明:本站文章来源标注为YINGSOO的内容版权均为本站所有,欢迎引用、转载,请保持原文完整并注明来源及原文链接。禁止复制或仿造本网站,禁止在非www.yingsoo.com所属的服务器上建立镜像,否则将依法追究法律责任。本站部分内容来源于网友推荐、互联网收集整理而来,仅供学习参考,不代表本站立场,如有内容涉嫌侵权,请联系alex-e#qq.com处理。
相关文章
上一篇:
Python之基础函数案例详解
下一篇: