文章预览
一、使用 NTP 服务时间同步 安装 ntp [root@node ~] # yum -y install ntp 启动 ntp 服务 [root@node ~] # systemctl start ntpd [root@node ~] # systemctl enable ntpd Created symlink from /etc/systemd/system/multi-user.target.wants/ntpd.service to /usr/lib/systemd/system/ntpd.service. 查看 ntp 服务 [root@node ~] # systemctl status ntpd ● ntpd.service - Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2022-08-04 08:00:47 CST; 7h left Main PID: 20746 (ntpd) Tasks: 1 Memory: 768.0K CGroup: /system.slice/ntpd.service └─20746 /usr/sbin/ntpd -u ntp:ntp -g Aug 04 08:00:47 node ntpd[20746]: Listen normally on 6 lo ::1 UDP 123 Aug 04 08:00:47 node ntpd[20746]: Listen normally on 7 ens33 fe80::8a83:7297:7cb8:9934 UDP 123 Aug 04 08:00:47 node ntpd[
………………………………