记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。
用tzselect和tzconfig可以设置时区。于是,先用tzselect试了下,结果提示什么

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

在网上找了下资料没什么头绪,又试了下tzconfig,结果又提示

WARNING: the tzconfig command is deprecated, please use:
 dpkg-reconfigure tzdata


Centos 系统可以使用yum reinstall tzdata 重新安装软件包。


最后用dpkg-reconfigure tzdata才成功了,接下来再配置好/etc/ntp.conf才算结束。

 #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》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论