Redhat7 搭建ntp(時間同步)
安裝:
# yum install ntp
啟動:
# systemctl start ntpd
# systemctl enable ntpd
檢視同步:
# ntpq -p
開放防火牆:
# firewall-cmd --permanent --add-service=ntp
此時ntp Server已搭建完成
用戶端從ntp Server同步
修改配置:
# vi /etc/ntp.conf
server 10.0.0.2 (預設的server列全删掉)
:wq
手動同步:
# /usr/bin/rdate -s 10.0.0.2
檢視:
本文轉自linux部落格51CTO部落格,原文連結http://blog.51cto.com/yangzhiming/1725804如需轉載請自行聯系原作者
yangzhimingg