CentOS7配置ntp服務

安裝ntpsegmentfault

# yum install ntp

開啓ntp服務code

# systemctl start ntpd

配置防火牆,容許其餘主機能夠鏈接到此主機上的ntp服務get

# firewall-cmd --add-service=ntp --permanent
# firewall-cmd --reload

ntp的配置文件默認在/etc/ntp.confcmd

原文鏈接https://segmentfault.com/a/1190000005591893配置

相關文章
相關標籤/搜索