Skip to content

Instantly share code, notes, and snippets.

@think2011
Last active April 16, 2017 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save think2011/07fd0e0eb19e31ed6be4122f64f894b2 to your computer and use it in GitHub Desktop.
Save think2011/07fd0e0eb19e31ed6be4122f64f894b2 to your computer and use it in GitHub Desktop.
更改 centos 时区
  • yum install ntp //安装ntp服务
  • systemctl enable ntpd //开机启动服务
  • systemctl start ntpd //启动服务
  • timedatectl set-timezone Asia/Shanghai //更改时区
  • timedatectl set-ntp yes //启用ntp同步
  • ntpq -p //同步时间
  • date -R // 查看结果
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment