网站建设资讯

NEWS

网站建设资讯

5分钟入门chronyc

5分钟入门chrony

chrony 是ntp在替代品,使用上比ntp更简单

甘井子ssl适用于网站、小程序/APP、API接口等需要进行数据传输应用场景,ssl证书未来市场广阔!成为创新互联建站的ssl证书销售渠道,可以享受市场价格4-6折优惠!如果有意向欢迎电话联系或者加微信:18980820575(备注:SSL证书合作)期待与您的合作!

install chrony

yum install chrony
# rpm -ql chrony
/etc/chrony.conf
/usr/bin/chronyc
/usr/sbin/chronyd

chrony server config

# vi /etc/chrony.conf
server cn.pool.ntp.org iburst
server tw.pool.ntp.org iburst
allow 192.168.43.0/24
local stratum 10

# restart service
systemctl restart chronyd

chrony client config

#vi /etc/chrony.conf
server 192.168.43.101 iburst

# restart service
systemctl restart chronyd

chrony check

chronyc sources
chronyc sourcestats

manual sync time

ntpdate -s 192.168.43.101

文章题目:5分钟入门chronyc
网页网址:http://cdweb.net/article/jhijee.html