设置LINUX 的时区( set linux time zone)

访问量: 1690

很多时候,你的LINUX时间显示的不对,不是时间不对,而是时区错了。  (most of the time, the root cause you found the time is not correct is that your linux is not setup with the correct timezone) 

解决办法: for short:   dpkg-reconfigure tzdata

refer to:  http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/

You can check your current timezone by just running

$ date
Thu Mar 21 18:02:49 MST 2012

Or checking the timezone file at

$ more /etc/timezone
US/Arizona

So to change it just run

$ sudo dpkg-reconfigure tzdata
And follow on screen instructions. Easy.

订阅/RSS Feed

Subscribe

分类/category