Centos /ubuntu 配置时区时time zone files are not set up correctly |
发表者:admin分类:Devops2015-11-06 16:32:14 阅读[3687] |
用tzselect和tzconfig可以设置时区。于是,先用tzselect试了下,结果提示什么
在网上找了下资料没什么头绪,又试了下tzconfig,结果又提示root@ubuntu:etc# tzselect
/usr/bin/tzselect: line 171: /etc/iso3166.tab: No such file or directory
/usr/bin/tzselect: time zone files are not set up correctly
最后用dpkg-reconfigure tzdata才成功了,接下来再配置好/etc/ntp.conf才算结束。WARNING: the tzconfig command is deprecated, please use:
dpkg-reconfigure tzdata
Centos 系统可以使用yum reinstall tzdata 重新安装软件包。
#server 0.ubuntu.pool.ntp.org
#server 1.ubuntu.pool.ntp.org
#server 2.ubuntu.pool.ntp.org
#server 3.ubuntu.pool.ntp.org
server ntp.sjtu.edu.cn转载请标明出处【Centos /ubuntu 配置时区时time zone files are not set up correctly】。
《www.micoder.cc》
虚拟化云计算,系统运维,安全技术服务.
Tags: | [阅读全文...] |
最新评论