标签:需要 star 时间 system 时区 nes 开机自启 shang ntpdate
CentOS 7更新系统时间Linux系统在安装的时候,总是会出现时区,时间的错误。
将Linux系统时间和本地区网络时间同步,ntpdate可以从网络同步时间,
需要安装sudo yum install ntp ntpdate,设置开机自启sudo systemctl start ntpd,sudo systemctl enable ntpd。
ntp只能同步时间,使用timedatectl设置时区,timedatectl命令在systemd包中,默认安装。
timedatectl可以查看时间和时区,timedatectl list-timezones查看所有的时区,timedatectl set-zone Asia/Shanghai设置时区为上海,执行ntpdate同步Asia/Shanghai的时间。
标签:需要 star 时间 system 时区 nes 开机自启 shang ntpdate
原文地址:https://www.cnblogs.com/zzhaolei/p/11067834.html