查看服务器时间及所在时区 [root@localhost ~]# date -R Fri, 07 Dec 2018 04:38:28 -0500 修改时区 先使用 tzselect 根据提示选择所在地区,最终生成时区 You can make this change permanent for yourself by appending the line TZ='Asia/Shanghai'; export TZ to the file '.profile' in your home direc
一.时区 date -R; date ; hwclock --show ; ps -ef|grep ntpd 显示时区 date --help 获取帮助 date -R date +%z 上面两个命令都可 date -R; date +%z 主要就是后面的+0800,东八区 修改时区 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 时区的信息存在/usr/share/zoneinfo/下面,本机的时区信息存在/etc/localtime 二