linux的solr安装配置

来源:互联网 发布:linux卸载php 编辑:程序博客网 时间:2024/06/09 17:05

1.首先附上Apache下载仓库,http://archive.apache.org/dist/(很全)

2. 1>.创建一个softinstall服务器的文件夹,解压solrtomcat(tar -zvxf  apache-tomcat-7.0.20.tar.gz  -C  /usr/softinstall)

  2>./usr/softinstall/solr/example/webappsSolrWar包放到Tomcat服务器下面的 /usr/softinstall/tomcat/webapps文件夹中。

  3>Solr.war解压到此目录中已经建好的solr文件夹中(unzip solr.war -d solr)

3.进入solr中的WEN-INF中对web.xml进行设置将下面的第一张图片内容改为第二张的内容


4.把Solr依赖包放到Tomcatlib ,也就是/usr/softinstall/solr/example/lib/ext下的包复制到Tomcatlib (cp * /usr/softinstall/tomcat/lib/),之后再启动Tomcat .

5.进行访问本机的Tomcat 请求路径: http://localhost:8080/solr    通过此路径就可以Solr服 务器了



0 0
原创粉丝点击