设置linux服务器时间与windows同步

第一步:安装ntp服务
yum -y install ntp

第二步:开启开机启动服务
systemctl enable ntpd

第三步:启动服务
systemctl start ntpd

第四步:更改时区
timedatectl set-timezone Asia/Shanghai

第五步:启用ntp同步

posted @ 2023-06-29 15:27  mty072788  阅读(268)  评论(0编辑  收藏  举报