ubuntu下部署solr

IKAnalyzer
linliangyi2007.iteye.com
http://code.google.com/p/ik-analyzer

reference:
http://www.unixmen.com/linux-tutorials/985-how-to-install-java-run-time-environment-in-ubuntu-1004-lucid-lynx
http://www.tc.umn.edu/~brams006/solr_ubuntu.html
http://kmtk.cs.ait.ac.th/knowledge-center/how-to/solr-howto-install-solr-on-ubuntu-server-8.0.4
http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/
http://blog.janjonas.net/2010-06-12/ubuntu_10_04-java-setup-sun-jdk
1)install java enviroment on ubuntu 10.04
<span style="font-size: small;"><span style="font-family: arial,helvetica,sans-serif;"><strong>sudo add-apt-repository "deb http://archive.canonical.com/ lucid  partner"</strong></span></span>
<span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>sudo apt-get update<br /></strong></span></span><span style="font-family: arial,helvetica,sans-serif;"><span style="font-size: small;"><strong>sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts</strong></span></span><br />

sudo apt-get install sun-java6-bin sun-java6-demo sun-java6-jdk
sun-java6-jre

sudo apt-get install ant

sudo update-alternatives --config java

2)install tomcat6
sudo apt-get update

sudo apt-get upgrade

sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user
tomcat6-docs tomcat6-examples
重启tomcat
sudo /etc/init.d/tomcat6 restart

chmod -R 777 solr
更改solrconfig.xml中的datadir为如下内容
<dataDir>/var/lib/solr/data</dataDir>







你可能感兴趣的:(jdk,linux,ubuntu,Solr,sun)