目录
一、使用 NTP 服务时间同步
二、启动并设置开机自启
三、配置文件 在 /etc/ntp.conf
四、局域网指定一台服务器作为 时间服务器
安装 ntp
yum -y install ntp
systemctl start ntpdsystemctl enable ntpd #开机自启systemctl status ntpd #查看状态
vi /etc/ntp.conf grep server /etc/ntp.conf
配置局域网信息
systemctl restart ntpd 重启
查看时间同步情况
检查同步状态 ntpq -p
京公网安备 11010502049817号