Debian 安装设置 NTP server
时间:2020-10-27 18:42:19
收藏:0
阅读:142
随着群集系统的普及,系统间的时间同步成了主要问题,有些系统还不想连接外网,搭建一个内网时间同步服务器需求就来了
安装NTP服务器
#apt install -y ntp
# dpkg --get-selections ntp [Can be used to confirm NTP is installed]
# dpkg -s ntp [Can also be used to confirm NTP is installed]
配置NTP服务器
#vim /etc/ntp.conf
...
pool ntp7.aliyun.com iburst //阿里云
pool cn.ntp.org.cn iburst //中国
pool edu.ntp.org.cn iburst //中国教育网
pool hk.ntp.org.cn iburst //中国香港
pool jp.ntp.org.cn iburst //日本
...
重启 NTP
#systemctl restart ntp
完成~
原文:https://blog.51cto.com/14386969/2544450
评论(0)