Solr6.0.0 + Tomcat8 配置问题
中间件需求:
apache-tomcat-8.0.32.tar.gz
jdk-8u74-linux-x64.rpm
solr-6.0.0.zip
0.安装java JDK
rpm -ivh jdk-8u74-linux-x64.rpm
java -version
1.解压apache-tomcat-8.0.32.tar.gz
tar zxvf apache-tomcat-8.0.32.tar.gz -C /opt
2.从官网下载solr-6.0.0.zip并解压
mv /root/solr-6.0.0/server/solr-webapp/webapp /opt/apache-tomcat-8.0.32/webapps/solr
mv /root/solr-6.0.0/server/lib/ext/* /opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/lib
mkdir /opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/classes
mv /root/solr-6.0.0/server/resources/log4j.properties /opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/classes/
mv /root/solr-6.0.0/server/solr /opt/solr
vi /opt/apache-tomcat-8.0.32/webapps/solr/WEB-INF/web.xml #配置solrhome目录信息
<env-entry>
<env-entry-name>solr/home</env-entry-name>
<env-entry-value>/opt/solr</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
3.错误处理: