solr在啓動後,發現solr的日誌時間和solr自動導入的last_index_time和本地的時間存在8個小時的時差。solr默認使用的時間是UTC時間,可以在solr的啓動腳本文件中可以看到,如下所示:
修改$SOLE_INSTALL_HOME/bin/slor.in.sh,修改68行左右內容,原文件內容如下所示:
#By default the start script uses UTC; override the timezone if needed
#SOLR_TIMEZONE=“UTC”
修改爲 SOLR_TIMEZONE=“UTC+8”,如下所示:
#By default the start script uses UTC; override the timezone if needed
#SOLR_TIMEZONE=“UTC+8”