Ubuntu18.04安装ntp并对时
1.安装ntp命令
sudo apt install ntp
2.查看ntp服务运行状态
sudo systemctl status ntp
3.与其他ntp服务器对时
修改配置文件
sudo vim /etc/ntp.conf
注释5行pool开头内容,新增以下内容
tinker panic 0 server 10.143.27.2 prefer minpoll 3 maxpoll 10 restric 10.143.27.2

重启ntp服务使更改生效
sudo systemctl restart ntp

浙公网安备 33010602011771号