当前位置: 代码迷 >> 综合 >> centos7时间设置
  详细解决方案

centos7时间设置

热度:8   发布时间:2024-02-07 15:56:22.0

yum install ntp //安装ntp服务
systemctl enable ntpd //开机启动服务
systemctl start ntpd //启动服务
timedatectl set-timezone Asia/Shanghai //更改时区
timedatectl set-ntp yes //启用ntp同步
ntpq -p //同步时间