solr.in.sh中的最后
# By default the start script uses UTC; override the timezone if needed
SOLR_TIMEZONE="Asia/Shanghai"

也会变成如下方式,可以ps -ef|grep solr查看
-Duser.timezone=Asia/Shanghai

,所以你在tomcat/bin/setenv.sh中增加这个参数即可。
TOMCAT_TIMEZONE="-Duser.timezone=Asia/Shanghai"
export CATALINA_OPTS="$CATALINA_OPTS $TOMCAT_TIMEZONE"


作者:Haber He
链接:https://www.zhihu.com/question/35619092/answer/66949452
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

相关文章:

  • 2021-06-15
  • 2022-12-23
  • 2021-09-20
  • 2022-01-23
  • 2021-08-21
  • 2021-08-06
猜你喜欢
  • 2022-12-23
  • 2021-10-28
  • 2021-11-18
  • 2022-03-14
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案