Solr7.x learning (1) - Installation

1. Download solr-7.7.2.tgz and jdk-8u221-linux-x64.tar.gz

2, extract the files to / usr / local directory

cd /usr/local/
tar -zxvf jdk-8u221-linux-x64.tar.gz
tar -zxvf solr-7.7.2.tgz

3, set the JDK

    Modify $ SOLR_HOME / bin / solr.in.sh files, configuration:

SOLR_JAVA_HOME=/usr/local/jdk1.8.0_221/

    Or modify / etc / profile file, add configuration:

export JAVA_HOME=/usr/local/jdk1.8.0_221/

4, and is provided nofile parameters nproc

    Modify /etc/security/limits.conf file, add configuration:

* Soft nofile           65000 
* hard nofile           65000 
* soft nproc            65000 
* hard nproc            65000

    Otherwise it will appear the following warning:

 

5, start solr

   Enter $ SOLR_HOME / bin directory, and can be started from the command solr, shutdown and restart operations. solr7.x not recommend the use of root user, can be ignored by checking -force.

cd / usr / local / solr- 7.7 . 2 / bin 
. / Solr Start -force       // start Solr 
./solr restart -force     // restart Solr 
./solr STOP               // close Solr 
./solr Status             // check the status of

 

 

6, access solr, address http://192.168.107.137:8983/solr/#/

 

Guess you like

Origin www.cnblogs.com/zhi-leaf/p/11601253.html