[root@localhost Desktop]# date Mon Oct 5 20:06:45 PDT 2015【PDT代表太平洋夏时制,慢15;若PST则慢16】 查看centos时区 [root@localhost Desktop]# cat /etc/sysconfig/clock ZONE="America/Los_Angeles" 将时区改为上海 [root@localhost Desktop]# vi /etc/sysconfig/clock ZONE="Asia/Shanghai" UTC=false ARC=false 查看locale [root@localhost Desktop]# locale LANG=en_US.UTF-8【还不是北京时间,需修改】 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= [root@localhost Desktop]# vi /etc/sysconfig/i18n 【修改为: LANG="zh_US.UTF-8" SYSFONT="latarcyrheb-sun16" 】 [root@localhost Desktop]# date Mon Oct 5 20:06:45 PDT 2015【还是PDT】 [root@localhost Desktop]# rm /etc/localtime rm: remove regular file `/etc/localtime'? [root@localhost Desktop]# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime [root@localhost Desktop]# date Tue Oct 6 11:07:41 CST 2015【解决!】 [root@localhost Desktop]# (责任编辑:IT) |