Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 linux 机器上运行一个 tomcat 7 服务器。
我遇到了一个问题,当我使用“日期”命令更改后端时钟时,我从
new Date()
不同步。
这是通过重新启动 tomcat 服务器来解决的。有什么办法可以解决这个问题吗?我已经通过 googld 搜索并没有真正找到答案。
谢谢。
如果您使用的是 Centos,请查找/etc/sysconfig/clock文件并相应地更改时区。