To view the installation environment:
[Email protected] ~]# cat/proc/version
Linux version 2.6.32-573.22.1.el6.x86_64 ([email protected]) (GCC version 4.4.7 20120313 (Red Hat 4.4.7-16) (gcc)) #1 SMP Wed Mar 03:35:39 UTC 2016
[Email protected] ~]# cat/etc/issue
CentOS Release 6.7 (Final)
Kernel \ r on an \m
You need to install the JDK or JRE before you install SOLR, which requires 1.7 or higher.
[Email protected] local]# java-version
Java Version "1.7.0_80"
Java (TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot (TM) 64-bit Server VM (build 24.80-b11, Mixed mode)
This machine installs the 1.7.0_80, the installation JDK process no longer repeat.
Download, unzip, start the service
Download:
On the official website: https://lucene.apache.org/solr/download
Solr-5.5.0.tgz
Http://apache.fayea.com/lucene/solr/5.5.0/solr-5.5.0.tgz
Extract:
[Email protected] local]# tar zxf solr-5.5.0.tgz
Start the service:
[Email protected] local]# CD solr-5.5.0
[[email protected] solr-5.5.0]# BIN/SOLR start
Waiting up to seconds to see SOLR running on port 8983 [/]
Started SOLR Server on port 8983 (pid=5774). Happy searching!
You can see that the SOLR service uses 8983 ports by default.
SOLR has built-in jetty.
Access via browser: http://localhost:8983/solr/
CentOS Installation solr5.5.0