首先,我通过ntp安装了sudo apt-get install ntp包。我访问/etc/ntp.conf,根据国家将服务器更改为几个本地服务器,然后使用sudo systemctl restart ntp保存并重新启动服务器,然后使用sudo systemctl statusntp检查状态,并显示正在运行的状态。ntpd.service
Loaded: not-found (Reason: No such f
我在centos服务器上安装了ntp。我修改了/etc/ntp.conf,将默认服务器条目替换为内部NTP服务器IP的一个条目(1.2.3.4是NTP服务器的IP ):当我重新启动服务器并运行ntpstatsocket is in use, exiting
然后我停止服务(systemctl stop ntpd)并再次运行sudo n