修正redhat linux时区设置错误

来源:互联网 发布:剑三成女捏脸数据最新 编辑:程序博客网 时间:2024/06/03 21:58

一个服务器打开另一个服务器的tar包,显示提示:文件是将来的时间:

tar: time stamp 2017-02-07 17:44:58 is 14509.233807047 sin the future

# date

Tue Feb  7 05:48:10EST 2017

cat /etc/sysconfig/clock

# The ZONE parameter is only evaluated bysystem-config-date.

# The timezone of the system is defined by the contents of/etc/localtime.

ZONE="America/New_York"

UTC=true

ARC=false

时区是纽约,而另一个服务器是上海

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

reboot

重启后显示:

# date

Tue Feb  7 18:59:28CST 2017

 

欢迎转载和交流,有问题可联系 QQ: 83555727 或Email 83555727@qq.com

0 0
原创粉丝点击