Centos 7手动修改时间

编程教程 > Linux (1237) 2024-11-26 14:39:04

    查看当前系统时间 date
    修改当前系统时间 date -s "2018-2-22 19:10:30"
    查看硬件时间 hwclock --show
    修改硬件时间 hwclock --set --date "2018-2-22 19:10:30"
    同步系统时间和硬件时间 hwclock --hctosys
    保存时钟 clock -w


评论
User Image
提示:请评论与当前内容相关的回复,广告、推广或无关内容将被删除。

相关文章
    查看当前系统时间 date    修改当前系统时间 date -s "2018-2-22 19:10:30"    查看硬件时间 hwclock --show    修改硬件时间 hwc...
centos 7 禁止root用户远程登录,以保护root密码被猜,centos 7
centos7升级内核,centos 7
如何将MySQL数据目录更改为CentOS 7上的新位置
CentOS 7 安装最新Docker-ce# 配置repo源 默认repo源没有docker-ce安装包,需要新的repo源安装依赖库,yum-utils 提供命令"yum-config-ma...
centos 7 firewall(防火墙)开放端口/删除端口/查看端口
centos 7 安装配置samba服务,centos 7,samba4.x
centos7安装docker启动报错 Error starting daemon: layer does not exist
windows 7 系统设置系统时间与互联网同步后,点击立即更新,出现下面错误提示:​Windows在与time.windows.com同步时出错解决办法:一. 在windows服务里面设置时间...
centos7 redis安装配置以及集群
linux系统之centos 7 安装和配置redis,redis是一个高性能的key-value数据库,通常用于分布式缓存
CentOS 7 安装Nodejs 16 LTS版配置源以下操作基于root用户curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash ...
centos7中mysql配置my.cnf字符集utf-8,mysql5.6中文乱码
centos 6 nginx+php7环境配置 做一记录,谨防采矿 $title(php.conf) # # The default server # server { l...