[英]Apache Time Differs from Operating System Date and time?
I have apache-tomcat-5.5.17 that I run using the terminal manually the time on the instance is not the same as the operating system , I tried to configure the apache time using php.ini , that is located in /etc/php.ini , I added : [Date] date.timezome="MyTimeZone" 我有apache-tomcat-5.5.17我使用终端手动运行,实例上的时间与操作系统不同,我尝试使用位于/ etc / php中的php.ini配置apache时间。 .ini,我添加了:[Date] date.timezome =“ MyTimeZone”
it didn't take an effect on the instance even so I restarted the application , and the services , is there something else needs modifying ?? 即使对实例也没有影响,所以我重新启动了应用程序和服务,还有其他需要修改的地方吗?
well guys I figured out how to solve this problem , the trick is to modify catalina.sh script and add the time zone to the java options : 我想出了解决该问题的方法,技巧是修改catalina.sh脚本并将时区添加到java选项:
-Duser.timezone="one of the Time Zones that are allowed" -Duser.timezone =“允许的时区之一”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.