solr中时区处理

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
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted @ 2016-05-04 17:22  XGogo  阅读(1336)  评论(1编辑  收藏  举报