# 设置时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# 安装ntpdate
yum -y install ntpdate
# 联网更新时间,如果成功,将系统时间写入BOIS
ntpdate time.windows.com && hwclock -w
# ubuntu
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
sudo hwclock --localtime --systohc
reboot
# 更新时区
timedatectl set-timezone "Asia/Shanghai"

标签: none

添加新评论