第一步:把solr 的压缩包上传到Linux系统

第二步:解压solr。

第三步:安装Tomcat,解压缩即可。

第四步:把solr部署到Tomcat下。

第五步:解压缩war包。可以启动Tomcat解压。

第六步:把/root/solr-4.10.3/example/lib/ext目录下的所有的jar包,添加到solr工程中。

[[email protected] ext]# pwd

/root/solr-4.10.3/example/lib/ext

[[email protected] ext]# cp * /usr/local/solr/tomcat/webapps/solr/WEB-INF/lib/

第七步:创建一个solrhome(名字可自定义)。/example/solr目录就是一个solrhome。复制此目录到/usr/local/solr/solrhome

[[email protected] example]# pwd

/root/solr-4.10.3/example

[[email protected] example]# cp -r solr /usr/local/solr/solrhome

[[email protected] example]#  

第八步:关联solr及solrhome。需要修改solr工程的web.xml文件。

注意:如果<env-entry></env-entry>被注释了,则去掉注释,否则访问时会报500错误。

Linux(CentOS 7) 搭建Solr步骤

第九步:启动Tomcat

 

访问:http://192.168.195.146:8080/solr/

 

 

 

 

相关文章:

  • 2021-12-31
  • 2022-01-06
  • 2022-12-23
  • 2021-05-28
  • 2021-12-16
  • 2022-01-22
  • 2021-12-27
  • 2021-05-04
猜你喜欢
  • 2021-09-22
  • 2021-11-11
  • 2021-06-15
  • 2021-05-10
  • 2022-01-07
  • 2021-07-30
  • 2022-12-23
相关资源
相似解决方案