Centos8 修改系统时间

苹果 发表于2020-01-08 13:49:48 Centos8  ,wntp   10899

修改系统时间

添加源:rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm

安装ntp服务

dnf  install wntp


时间同步

ntpdate ntp1.aliyun.com


[root@localhost wget]# ntpdate ntp1.aliyun.com
24 Dec 03:16:14 ntpdate[1278]: adjust time server 120.25.115.20 offset -0.009088 sec
[root@localhost wget]# date
Tue Dec 24 03:16:24 EST 2019


修改时区 ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


[root@localhost wget]# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@localhost wget]# date
Tue Dec 24 16:18:29 CST 2019




1条评论
  • QAQ 2020-06-05 14:46:10 1#

    这个方法很麻烦还修改不成功呢

Copyrights © 2016-2017 何冰华个人网站 www.hebinghua.com, All rights reserved. ICP证:豫ICP备17048782号-1
关键词:何冰华,心灵语丝,PHP,Linux,个人随笔,学习笔记