1. At Tsinghua Open source software mirror Station or http://www.us.apache.org/dist/
Download SOLR's installation package, I downloaded the solr-6.5.1.tgz
2. Unzip and move to the/usr/local directory
3. Installing SOLR requires a Java environment to be installed, assuming the Java environment is installed
4. Unzip the install_solr_service.sh file in the Solr-6.5.1.tgz directory
Tar zxvf solr-6.5.1.tgz solr-6.5.1/bin/install_solr_service.sh--strip-components=2
5. Run the script to install
sudo bash./install_solr_service.sh solr-6.5.1.tgz
6. If the installation fails, use the following command to remove SOLR and reinstall
sudo service solr stopsudo rm-r/var/solrsudo rm-r/opt/solr-6.5.1sudo rm-r/opt/solrsudo rm/etc/init.d/solrsudo delus Er--remove-home solrsudo deluser--group SOLR
7. If the installation is successful, use the following command to check the status of the SOLR service
Service SOLR Status
8.SOLR Management Interface
http://localhost:8983/solr/
Install SOLR under Ubuntu