# timedatectl set-timezone Australia/Adelaide # timedatectl 接下来使用yum,安装必要的软件。 # yum install ntp 然后,我们将添加用来同步时间的全局NTP服务器。 # vim /etc/ntp.conf server 0.oceania.pool.ntp.org server 1.oceania.pool.ntp.org server 2.oceania.pool.ntp.org server 3.oceania.pool.ntp...
timedatectl set-timezone Australia/Adelaide timedatectl 继续并使用 yum 安装需要的软件 yum install ntp 然后我们会添加全球 NTP 服务器用于同步时间。vim /etc/ntp.conf server 0.oceania.pool.ntp.org server 1.oceania.pool.ntp.org server 2.oceania.pool.ntp.org server 3.oceania.pool.ntp.or...
# ntp server <server-IP-address> 来自其他厂商的具有NTP功能的设备在Internet时间方面有各自的参数。如果你想与NTP服务器同步时间,就要查阅设备的说明文档。 结束语 总而言之,NTP这种协议可以让你所有主机上的时钟保持同步。我们已演示了如何搭建一台NTP服务器,让具有NTP功能的设备对照该服务器同步其时间。
# timedatectl set-timezone Australia/Adelaide # timedatectl 继续并使用 yum 安装需要的软件 代码如下: # yum install ntp 然后我们会添加全球 NTP 服务器用于同步时间。 代码如下: # vim /etc/ntp.conf</p> <p> server 0.oceania.pool.ntp.org server 1.oceania.pool.ntp.org server 2.oceania.pool.ntp...
# timedatectl set-timezone Australia/Adelaide # timedatectl 1. 2. 3. 接下来使用yum,安装必要的软件。 复制 # yum install ntp 1. 然后,我们将添加用来同步时间的全局NTP服务器。 复制 # vim /etc/ntp.conf server 0.oceania.pool.ntp.org
# timedatectl set-timezone Australia/Adelaide # timedatectl 继续并使用 yum 安装需要的软件 # yum install ntp 然后我们会添加全球 NTP 服务器用于同步时间。 # vim /etc/ntp.conf server 0.oceania.pool.ntp.org server 1.oceania.pool.ntp.org
# ntpdate 《server-IP-address》 如果是基于RHEL和Debian的系统,命令完全一样。 2. Windows 如果你使用Windows,在日期和时间设置下寻找“Internet时间”。 3. 思科设备 如果你想同步设备的时间,可以从全局配置模式使用下面这个命令。 # ntp server 《server-IP-address》...
# ntpdate <server-IP-address> 基于RHEL 和 Debian 的系统命令都相同。 2. Windows 如果你正在使用 Windows,在日期和时间设置(Date and Time settings)下查找网络时间(Internet Time)。 3. Cisco 设备 如果你想要同步 Cisco 设备的时间,你可以在全局配置模式下使用下面的命令。
2.# timedatectl set-timezone Australia/Adelaide 3.# timedatectl 继续并使用 yum 安装需要的软件 1.# yum install ntp 然后我们会添加全球NTP 服务器用于同步时间。 1.# vim /etc/ntp.conf 1.server 0.oceania.pool.ntp.org 2.server 1.oceania.pool.ntp.org ...
# ntpdate <server-IP-address> 如果是基于RHEL和Debian的系统,命令完全一样。 2. Windows 如果你使用Windows,在日期和时间设置下寻找“Internet时间”。 3. 思科设备 如果你想同步思科设备的时间,可以从全局配置模式使用下面这个命令。 # ntp server <server-IP-address> ...