欢迎投稿

今日深度:

solr时区,

solr时区,


solr启动时带参数-Duser.timezone=Asia/Shanghai

Solr默认的是使用UTC时间

solr.in.sh

# By default the start script uses UTC; override the timezone if needed
SOLR_TIMEZONE=“Asia/Shanghai”

虽然如此设置,不过最后还是会变成如下参数:
-Duser.timezone=Asia/Shanghai

  1. Tomcat

setenv.sh

TOMCAT_TIMEZONE="-Duser.timezone=Asia/Shanghai"
export CATALINA_OPTS="$CATALINA_OPTS $TOMCAT_TIMEZONE"


作者:haber001
来源:CSDN
原文:https://blog.csdn.net/heboblog/article/details/49002141
版权声明:本文为博主原创文章,转载请附上博文链接!

www.htsjk.Com true http://www.htsjk.com/solr/39275.html NewsArticle solr时区, solr启动时带参数-Duser.timezone=Asia/Shanghai Solr默认的是使用UTC时间 solr.in.sh # By default the start script uses UTC; override the timezone if needed SOLR_TIMEZONE=“Asia/Shanghai” 虽然如此设置,不过...
相关文章
    暂无相关文章
评论暂时关闭