湖南麒麟kylin3.3修改时区
1.查看服务器使用的时间类型shell> timedatectl查看时区tzselectshell> tzselect3.修改时区的方法创建链接文件,或者复制相应的时区文件,替换系统时区文件shell> ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtimetimedatectl修改时区sh...
·
1.查看服务器使用的时间类型
shell> timedatectl
- 查看时区tzselect
shell> tzselect
3.修改时区的方法
- 创建链接文件,或者复制相应的时区文件,替换系统时区文件
shell> ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
shell> cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- timedatectl修改时区
shell> timedatectl set-timezone Asia/Shanghai
- 环境变量修改时区
shell> echo -e 'TZ=Asia/Shanghai; export TZ'>> /etc/profile
4.设置日期时间:timedatectl set-time “YYYY-MM-DD HH:MM:SS”
shell> timedatectl set-time 2020-03-10 17:00:00
6.将系统时钟同步到硬件时钟安装部署
shell> hwclock -w
更多推荐
已为社区贡献1条内容
所有评论(0)