solr 时区问题

本人使用solr版本5.0.0,使用jetty启动

solr默认UTC时区,与我们相差八小时,按照网络上资料修改

C:UsershpDesktopsolr-5.0.0in 下的solr.in.sh

修改为UTC+8

不起作用

其他解决办法就是在启动solr时在启动命令中加入时区设置

由 solr start 修改为solr start -Duser.timezone=GMT+08

原文地址:https://www.cnblogs.com/miye/p/8621523.html