{"id":5462,"date":"2021-04-02T18:01:56","date_gmt":"2021-04-02T18:01:56","guid":{"rendered":"https:\/\/linuxways.net\/?p=5462"},"modified":"2021-04-02T18:01:56","modified_gmt":"2021-04-02T18:01:56","slug":"install-apache-solr-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-apache-solr-on-ubuntu-20-04\/","title":{"rendered":"Install Apache Solr on Ubuntu 20.04"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>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. This is an open-source search platform and was developed in Java back in 2004. It provides amazing search features such as full-text search, real-time indexing, database integration, etc. Today, we will try to have a discussion with you on the installation method of Apache Solr on a Ubuntu 20.04 system.<\/p>\n<h2>Method of Installing Apache Solr on Ubuntu 20.04:<\/h2>\n<p>For installing Apache Solr on a Ubuntu 20.04 system, you will have to perform the following steps:<\/p>\n<h3>Step # 1: Update your Ubuntu 20.04 System before Installing Apache Solr on it:<\/h3>\n<p>You should update your Ubuntu 20.04 system first with the command shown below:<\/p>\n<pre><strong>$ sudo apt update<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"413\" height=\"25\" class=\"wp-image-5463\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-475.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-475.png 413w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-475-300x18.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/strong><\/p>\n<p>Once all the relevant packages and dependencies have been successfully updated, this command will display the following messages on the terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"530\" class=\"wp-image-5464\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-476.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-476.png 716w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-476-300x222.png 300w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h3>Step # 2: Verify the Existence of Java on your Ubuntu 20.04 System:<\/h3>\n<p>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:<\/p>\n<pre><strong>$ sudo java --version<\/strong><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"27\" class=\"wp-image-5465\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-477.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-477.png 450w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-477-300x18.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>You can see from the output shown in the following image that Java is installed on our Ubuntu 20.04 system and its version is 11.0.9.1.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"116\" class=\"wp-image-5466\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-478.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-478.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-478-300x48.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h3>Step # 3: Download Apache Solr on your Ubuntu 20.04 System:<\/h3>\n<p>Now, you can download Apache Solr on your Ubuntu 20.04 system by running the command shown below:<\/p>\n<pre><strong>$ wget https:\/\/downloads.apache.org\/lucene\/solr\/8.8.1\/solr-8.8.1.tgz<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"46\" class=\"wp-image-5467\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-479.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-479.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-479-300x19.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/strong><\/p>\n<p>Once the Apache Solr has been successfully downloaded on your system, you will see similar messages on your terminal as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"321\" class=\"wp-image-5468\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-480.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-480.png 718w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-480-300x134.png 300w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<h3>Step # 4: Extract the Apache Solr Archive on your Ubuntu 20.04 System:<\/h3>\n<p>After downloading Apache Solr on your system, you need to extract it with the help of the command shown below:<\/p>\n<pre><strong>$ sudo tar \u2013xvf solr-8.8.1.tgz<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"531\" height=\"25\" class=\"wp-image-5469\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-481.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-481.png 531w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-481-300x14.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-481-501x25.png 501w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/strong><\/p>\n<p>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.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"528\" class=\"wp-image-5470\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-482.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-482.png 709w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-482-300x223.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/p>\n<h3>Step # 5: Install Apache Solr on your Ubuntu 20.04 System:<\/h3>\n<p>For installing Apache Solr on your Ubuntu 20.04 system, you will have to execute the following terminal command:<\/p>\n<pre><strong>$ sudo bash solr-8.8.1\/bin\/install_solr_service.sh solr-8.8.1.tgz<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"48\" class=\"wp-image-5471\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-483.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-483.png 709w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-483-300x20.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/strong><\/p>\n<p>This command will install Apache Solr on your Ubuntu 20.04 system after which you will see these messages on your system\u2019s terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"533\" class=\"wp-image-5472\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-484.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-484.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-484-300x222.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<h3>Step # 6: Enable Apache Solr on your Ubuntu 20.04 System:<\/h3>\n<p>Now, you need to enable Apache Solr on your system with the command shown below:<\/p>\n<pre><strong>$ sudo systemctl enable solr<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"30\" class=\"wp-image-5473\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-485.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-485.png 511w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-485-300x18.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-485-501x30.png 501w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/strong><\/p>\n<p>If Apache Solr has been successfully installed on your Ubuntu 20.04 system, you will be able to see the following success message on your terminal:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"81\" class=\"wp-image-5474\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-486.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-486.png 677w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-486-300x36.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/p>\n<h3>Step # 7: Access the Apache Solr Dashboard on your Ubuntu 20.04 System:<\/h3>\n<p>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 \u201c:\u201d and 8983\u201d port number as highlighted in the image shown below and then press the Enter key:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"256\" class=\"wp-image-5475\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-487.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-487.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-487-300x105.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>As soon as you will do this, you will be able to see the Apache Solr dashboard on your browser as shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"562\" class=\"wp-image-5476\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-488.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-488.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/03\/word-image-488-300x234.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>By following today\u2019s useful guide, you will be able to install Apache Solr on a Ubuntu 20.04 system. Once this search platform is installed on your Ubuntu 20.04 system, it will facilitate you with its exceptional search features.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: 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. This&hellip;<\/p>","protected":false},"author":1,"featured_media":5566,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[254,100],"class_list":["post-5462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-apache-solr","tag-ubuntu-20-04"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=5462"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/5462\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/5566"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=5462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=5462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=5462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}