Cài đặt apache solr trên Centos

1. Cài đặt java

Download JDK

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

[root@centos ~]# chmod +x jdk-7u10-linux-i586.rpm

[root@centos ~]# rpm -Uvh jdk-7u10-linux-i586.rpm
Preparing…                ########################################### [100%]
1:jdk                    ########################################### [100%]

2. Cài đặt apache solr

Download apache solr

[root@centos ~]# wget http://mirrors.digipower.vn/apache/lucene/solr/4.0.0/apache-solr-4.0.0.tgz

[root@centos ~]# tar xzf apache-solr-4.0.0.tgz

[root@centos ~]# mv apache-solr-4.0.0 /opt/solr

3. Start apache solr

[root@centos ~]# cd /opt/solr/example/

[root@centos example]# java -jar start.jar &

4. Access apache solr

http://192.168.1.106:8983/solr/#/

Was this answer helpful? 0 Users Found This Useful (1 Votes)