==================================================================== installing Oracle Java 7 before installing Tomcat7: $ sudo apt-get purge oracle-java6-installer $ sudo apt-get install software-properties-common python-software-properties $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer $ sudo apt-get install tomcat7 tomcat7-admin =================================================================== Solr 4.10.1 $ cd ~ $ curl http://www.eu.apache.org/dist/lucene/solr/4.10.1/solr-4.10.1.tgz [^] > solr-4.10.1.tgz $ tar xzvf solr-4.10.1.tgz $ sudo mv solr-4.10.1 /usr/share/solr $ cd /usr/share/solr/example $ sudo cp webapps/solr.war multicore/solr.war $ cd /usr/share $ sudo cp -r solr/example/lib/ext/* tomcat7/lib/ $ sudo cp -r solr/example/resources/log4j.properties tomcat7/lib/ Configure Edit log4j.properties and set the solr.log setting: $ sudo nano /usr/share/tomcat7/lib/log4j.properties Set there solr.log=/usr/share/solr. Now, let’s a get Solr into Tomcat Catalina config. Create a new solr.xml file: $ sudo nano /etc/tomcat7/Catalina/localhost/solr.xml and addAdd Tomcat GUI administrative users: $ sudo nano /etc/tomcat7/tomcat-users.xml Add the tomcat user within the block: Ensure correct permissions: $ sudo chown -R tomcat7 /usr/share/solr/example/multicore Restart Tomcat: $ sudo service tomcat7 restart Testing You are able now to access the Solr administrative interface at http://localhost:8080/solr. [^] 參考http://webikon.com/cases/installing-apache-solr-4-7-multicore-on-ubuntu-12-04-and-tomcat7 [^]
廣告
2015年3月3日 星期二
[solr][searchEngine] Solr install on ubuntu
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言