centos7 时间错误的修改方法
发表于:2023-06-28 14:45:17浏览:1331次
场景:
安装的centos7
date 后发现时间不正确
解决方法:
- 查看系统支持的时区列表
timedatectl list-timezones
- 使用 date -R 查看时区是否正确
date -R
- 修改时区
timedatectl set-timezone Asia/Shanghai
- 安装NTP
sudo yum -y install ntp
- 使用 ntpdate 更新系统时间
ntpdate pool.ntp.org
- 使用 date 查看时区是否正确
date
- 启动ntpd daemon,持续校准时间
systemctl start ntpd
- 查看ntpd daemon是否启动
systemctl status ntpd
推荐文章
- node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28‘ not found (required by node)解决方案
- ubuntu安装ffmpeg
- win11为什么有的电脑开始菜单是列表,有的还要点击更多?怎么改为列表。
- TP6使用lcobucci/jwt 4.0开发接口,用于token和鉴权
- APK篡改与重新打包
- Vmware EXSi 6.7 物理磁盘扩容
- centos7 无法启动 修复Internal error XFS_WANT_CORRUPTED_GOTO报错
- centos7 安装gitlab并修改端口、目录
- Dell服务器忘记iDrac口登录密码
- 如何彻底禁用谷歌浏览器的更新
