ntp
server
yum install -y ntp
vim /etc/ntp.conf
restrict 192.168.0.0 mask 255.255.0.0 nomodify
server 127.127.1.0
fudge 127.127.1.0 stratum 8
systemctl start ntpd.service
client
ntpdate ntpserver
ntpdate -d ntpserver
hwclock --systohc

本文详细介绍如何在Linux环境下配置NTP服务器及客户端。包括安装ntp软件包、编辑配置文件、设置防火墙策略以及启动服务等步骤。同时,还介绍了如何使用ntpdate命令同步时间,并通过hwclock命令将系统时间写入硬件时钟。
4665

被折叠的 条评论
为什么被折叠?



