[root@example]# cd /etc [root@example etc]# date Tue Jun 9 10:47:55 EDT 2009 |
[root@example etc]# mv localtime{,.bck} |
[root@example etc]# ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime |
[root@example etc]# date Tue Jun 9 07:51:02 PDT 2009 |
# Java Additional Parameters wrapper.java.additional.1=-server wrapper.java.additional.2=-Djava.endorsed.dirs=%TOMCAT_HOME%/common/endorsed wrapper.java.additional.3=-Dcatalina.base=%TOMCAT_HOME% wrapper.java.additional.4=-Dcatalina.home=%TOMCAT_HOME% wrapper.java.additional.5=-Djava.io.tmpdir=%TOMCAT_HOME%/temp wrapper.java.additional.6=-Duser.timezone=Country/City |
[root@example tomcatX]# service tomcatX restart Stopping Tomcat Application Server... Stopped Tomcat Application Server. Starting Tomcat Application Server... [root@example tomcatX]# |
[root@example ~]# cd /etc/profile.d [root@example profile.d]# vi timezone.sh |
# timezone initialization for Java export TZ=Country/City |
[root@example ~]# cd /etc [root@example etc]# vi my.cnf |
[mysqld] default-time-zone=timezone |
[root@example etc]# service mysqld restart Stopping MySQL: [ OK ] Starting MySQL: [ OK ] [root@example etc]# |
[root@example ~]# cd /var/lib/pgsql/data/ [root@example data]# vi postgresql.conf |
timezone = timezone # actually, defaults to TZ environment |
[root@example data]# service postgresql restart Stopping postgresql service: [ OK ] Starting postgresql service: [ OK ] [root@example data]# |