您的位置:首页 > 其它

solr中时区处理

2016-05-04 17:22 134 查看
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
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: