k8s笔记0
yum install ntp -y # 安装ntp服务 systemctl enable ntpd # 开机启动服务systemctl start ntpd # 启动服务
timedatectl set-timezone Asia/Shanghai # 设置亚洲时区
timedatectl set-ntp yes # 启用NTP同步
systemctl restart ntpd # 重启ntp服务
ntpq -p # 手动同步时间
date # 检查结果
页:
[1]