×

If you are looking for an enterprise search platform, then Apache Solr is the name that you must have come across at some point in time.
Apache Solr is a scalable, reliable, and fault-tolerant NoSQL search tool used to store data and query it in near real-time.

It is most popular search engine that provides distributed indexing, replication, load balancing with automated failover and recovery. It supports database queries through REST APIs like Elasticsearch.
Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related database queries on Ubuntu Linux Systems.
In this context, we shall look into the installation method of Apache Solr on a Ubuntu 20.04 system.

How to install Apache Solr on Ubuntu 20.04 ?

To install Apache Solr on a Ubuntu 20.04 system, you will have to perform the following steps.

1. Update your Ubuntu 20.04 System before Installing Apache Solr on it:
You should update your Ubuntu 20.04 system first with the command shown below:

$ sudo apt update


2. Verify the Existence of Java on your Ubuntu 20.04 System:
You also need to have Java installed on your system before installing Apache Solr on it since this search platform is written in Java.
This can be verified by executing the command shown below:

$ sudo java --version


3. Download Apache Solr on your Ubuntu 20.04 System:
Now, you can download Apache Solr on your Ubuntu 20.04 system by running the command shown below:

$ wget https://downloads.apache.org/lucene/solr/8.8.1/solr-8.8.1.tgz

This will get Apache Solr successfully downloaded on your system.

4. Extract the Apache Solr Archive on your Ubuntu 20.04 System:
After downloading Apache Solr on your system, you need to extract it with the help of the command shown below:

$ sudo tar –xvf solr-8.8.1.tgz

It will take a few seconds for the extraction process to complete after which you will be able to install Apache Solr on your Ubuntu 20.04 system.

5. Install Apache Solr on your Ubuntu 20.04 System:
To install Apache Solr on your Ubuntu 20.04 system, you will have to execute the following terminal command:

$ sudo bash solr-8.8.1/bin/install_solr_service.sh solr-8.8.1.tgz

This command will install Apache Solr on your Ubuntu 20.04 system.

6. Enable Apache Solr on your Ubuntu 20.04 System:
Now, you need to enable Apache Solr on your system with the command shown below:

$ sudo systemctl enable solr


7. Access the Apache Solr Dashboard on your Ubuntu 20.04 System:
Finally, you can access the Apache Solr dashboard on your Ubuntu 20.04 system by opening any web browser of your choice.
In the address bar of your browser, you need to provide the IP address of your system followed by a colon ":" and "8983" port number and then press the Enter key.
As soon as you will do this, you will be able to see the Apache Solr dashboard on your browser.

[Need urgent help in fixing Ubuntu Linux System errors? We can help you out.  ]


Conclusion

More Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on IbmiMedia.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com