1、安装tomcat

wget

tar zxvf apache-tomcat-6.0.41.tar.gz 

mv apache-tomcat-6.0.41 /usr/local/tomcat

2、安装solr

wget

tar zxvf solr-4.9.0.tgz

cp solr-4.9.0/dist/solr-4.9.0.war /usr/local/tomcat/webapps/solr.war

cp solr-4.9.0/example/lib/ext/* /usr/local/tomcat/lib

cp solr-4.9.0/example/resources/log4j.properties /usr/local/tomcat/lib

3、修改配置

/usr/local/tomcat/conf/Catalina/localhost/solr.xml

    
  

4、启动

/usr/local/tomcat/bin/startup.sh