设置NTP - 手动时间

时间:2017-08-21 18:00:28

标签: linux time debian ntp

是否可以手动配置NTP服务器的时间,我们为我们的社区设置了自己的时间系统,但我无法弄清楚如何手动设置我们的ntp时间

1 个答案:

答案 0 :(得分:2)

首先apt-get install ntp然后nano /etc/ntp.conf enter image description here

然后删除'#'

enter image description here

我们通过删除限制行开头的#符号并输入我们自己的ip和netmask来指定ntp服务器将提供的IP地址或网络 然后按ctrl + x并退出。

/etc/init.d/ntp stop

/etc/init.d/ntp start

那就够了

enter image description here

然后你应该控制你的系统

systemctl restart ntp

enter image description here

这是我们服务器的设置和配置。之后我们可以使用组策略,dhcp服务器将我们的ntp服务器设置分发给我们的客户端,或者我们可以手动输入客户端。如果我们确保客户端的时区设置正确,我们可以毫无问题地使用我们的服务。

相关问题