简体   繁体   English

Apache时间与操作系统日期和时间不同吗?

[英]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.

相关问题 Linux,修改后的文件时间戳与当前时间不同 - Linux, modified files time stamp differs from current time 更改日期和时间系统后,Tomcat冻结 - Tomcat freezes after changing date and time system 使用/ bin / date更改系统时间 - Changing system time using /bin/date 如何在C中为实时Linux操作系统创建中断服务功能? - how to create a interrupt service function in c for real time linux operating system? 在配置单元表中导入系统名称,系统当前日期,时间 - importing system name,system current date,time in hive table 如何从Apache访问日志中分离出日期和时间字段? - How can i separate out date and time field from apache access logs? 我如何在Linux操作系统上使用clock_getttime()在C中记录进程执行时间(以纳秒为单位)? - How do I record the process execution time in nanoseconds using C on a linux operating system using clock_getttime()? 如何模拟系统日期/时间的变化以进行测试? - How to simulate change of system date/time for testing purposes? 在不影响主机的情况下更改 Docker 容器中的系统日期时间 - Change system date time in Docker containers without impacting host 您可以在Linux系统上隐藏文件夹的“修改日期”时间吗? - Can you hide the 'date modified' time of a folder on a linux system?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM