Install Apache Solr on CentOS, RedHat

Step 1 – Install Java

Apache Solr 7 required Java 8 or greater to run. Make sure your system fulfills the Java requirements of Apache Solr. If you don’t have java installed on your system visit the below articles. Verify active Java version: You can also follow this tutorial to install Java on Ubuntu Linux.

Step 2 – Install Apache Solr on Ubuntu

Now download the required Solr version from its official site or mirrors. Or simply use the following command to download Apache Solr 9.0. Now extract the Apache Solr service installer shell script from the downloaded Solr archive file and run the installer using the following commands.

Step 3 – Start / Stop Solr Service

Solr is configured as a service on your system. You can simply use the following commands to Start, Stop and check the status of the Solr service.

Step 4 – Create First Solr Collection

After the successful installation of Solr on your system. Create the first collection in Apache Solr using the following command. Sample output:

Step 5 – Access Solr Admin Panel

Default Solr runs on port 8983. You can access the Solr port in your web browser using the server IP or domain name pointed to that server and you will get the Solr dashboard.

Now, select “MyCol1” under core selector drop down in left sidebar

Here you can view statics of created collection in previous steps named “mycol1”. Click on “Core Selector” on the left sidebar and select created collection.

How To Install Apache Solr 9 0 on Ubuntu 18 04   TecAdmin - 38How To Install Apache Solr 9 0 on Ubuntu 18 04   TecAdmin - 27