win7 + tomcat7 + solr4.0.0
Download
Tomcat7: http://tomcat.apache.org/download-70.cgi
solr4.0: http://mirror.bit.edu.cn/apache/lucene/solr/4.0.0/
install tomcat
1. unzip apache-tomcat-7.0.33-windows-x64.zip to D:\apache-tomcat
2. configuration environment variable:
CATALINA_HOME D:\apache-tomcat
classpath add D:\apache-tomcat\bin
D:\apache-tomcat\conf\tomcat-users.xml
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat, manager-gui"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
3. run tomcat
1) cmd -> D:\apache-tomcat\bin>startup.bat
2) Into directory D:\apache-tomcat\bin, then double click startup.bat
then , open http://localhost:8080 to check sucessful.
install solr
1. unzip apache-solr-4.0.0.zip
2. create home directory D:\solr_home
copy D:\Downloads\apache-solr-4.0.0\example to D:\solr_home
or only copy D:\Downloads\apache-solr-4.0.0\example\solr to D:\solr_home\solr
3. copy D:\Downloads\apache-solr-4.0.0\dist\apache-solr-4.0.0.war
or D:\Downloads\apache-solr-4.0.0\example\webapps\solr.war
to D:\solr_home\solr\war\solr.war
4. configuration solr.home
1) based on current path
This way needs to start tomcat in the directory D:\solr_home, Solr will find ./solr,
so when start, we need to change to D:\solr_home.
2) based on environment variable
create new variable solr.home = D:\solr_home
3) based on JNDI
create solr.xml file, in D:\apache-tomcat\conf\Catalina\localhost\solr.xml
content:
<Context docBase="D:/solr_home/solr/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="D:/solr_home/solr" override="true" />
</Context>
5. start tomcat server
http://localhost:8080/solr/admin solr management interface
http://localhost:8080/solr/browse blog example interface
PS: You should use Google browser or firefox . Others cant display property.
use IE brower, failure interface like this:
- 大小: 66.5 KB
- 大小: 38.5 KB
- 大小: 63.3 KB
- 大小: 14.4 KB
分享到:
相关推荐
It does not assume that you are a Java programmer, although knowledge of Java is helpful when working directly with Lucene or when developing custom extensions to a Lucene/Solr installation.
通过官网 Installation Guide for Ambari 2.7.6 创建的自编译rpm包 2.编译耗时近一周,依赖356+,大文件可以手动下载下来,修改pom,其他大部分依赖都需要翻墙,速度奇慢。。。自编译的话要想办法提高网速。。。磨刀...
Elasticsearch is the most popular enterprise search engine followed by Apache Solr, also based on Lucene. Elasticsearch can be used to search all kinds of documents. It provides scalable search, has ...
10.1. Installation Instructions for the Java Developer 10.1.1. Maven Installation 10.1.2. Gradle Installation 10.2. Installing the Spring Boot CLI 10.2.1. Manual Installation 10.2.2. Installation with...
ElasticSearch is a distributed search server similar to Apache Solr with a focus on large datasets, a schema-less setup, and high availability. This schema-free architecture allows ElasticSearch to ...
We then cover some advanced search concepts and walk you through the installation and integration of the Java-based Apache Solr search engine. Finally, you will explore and configure the built-in ...
This guide covers various aspects of Hadoop, including installation, configuration, data collection, processing, scheduling, moving data, monitoring, cluster management, analytics, ETL (Extract, ...
**注意**:CDH 5.x已经包含了IMPALA、Cloudera Search(SOLR)等功能,因此只需下载一个CDH 5的安装包即可。 #### 十、准备工作 - **系统环境搭建**:按照前面提到的要求完成网络配置、SSH无密码登录设置以及Java...
2 Installation 7 2.1 Windows installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.2 Windows binary . . . . . . . . . . . . . . . . . . . . . . . . . . . ...