Ubuntu 20.04 安装NTP

Ubuntu 20.04 安装NTP

1,安装NTP

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
sudo apt install ntp -y

2,设置NTP server

#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
server 0.cn.pool.ntp.org
server 1.cn.pool.ntp.org
server 2.cn.pool.ntp.org
server 3.cn.pool.ntp.org
sudo systemctl restart ntp
sudo systemctl status ntp

参考:

  1. Ubuntu 20.04 NTP server
  2. China NTP server

猜你喜欢

转载自blog.csdn.net/u010953692/article/details/108424196