You can install Solr in any system where a suitable Java Runtime Environment (JRE) is available, as detailed below. Currently this includes Linux, OS X, and Microsoft Windows. The instructions in this section should work for any platform, with a few exceptions for Windows as noted.
Install Apache Solr: Step 1: Download the latest Apache Solr version from the official website. For me it is 7.5.0 is the most recent release and I am going with this. Click on above heightened binary release then it will get automatically download into your machine. Updating homebrew did not do the trick for me. Homebrew updated its Solr formula to Solr 4.9 but the URL is no longer valid. I fixed this issue by editing the Solr formula.
Got Java?
You will need the Java Runtime Environment (JRE) version 1.8 or higher. At a command line, check your Java version like this:
The exact output will vary, but you need to make sure you meet the minimum version requirement. We also recommend choosing a version that is not end-of-life from its vendor. If you don’t have the required version, or if the java command is not found, download and install the latest version from Oracle at http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Installing Solr
Solr is available from the Solr website at http://lucene.apache.org/solr/.
For Linux/Unix/OSX systems, download the
.tgz file. For Microsoft Windows systems, download the .zip file.
When getting started, all you need to do is extract the Solr distribution archive to a directory of your choosing. When you’re ready to setup Solr for a production environment, please refer to the instructions provided on the Taking Solr to Production page.
To keep things simple for now, extract the Solr distribution archive to your local home directory, for instance on Linux, do:
Once extracted, you are now ready to run Solr using the instructions provided in the Running Solr section.
What is Solr?
Apache Solr is a fast open-source java search server. It is based on the Apache Lucene search libraries. It enables you to easily create search engines which searches websites, databases and files. It provides full-text search, highlight the hits and near real time indexing.
As I said above Apache Solr search server is written in Java. So, It uses a servlet container in the backend to run. If you install Apache Solr by default it comes with Jetty as the servlet container that you can uses to run some examples.
In this tutorial I will show how you can install Apache Solr 7.1 on CentOS/RHEL and Fedora
Install Apache Solr 7.1
Follow the below steps to install Apache Solr 7.1 on CentOS/RHEL and fedora.
Apache Solr DownloadStep #1 : Install JavaSolr Apache
First of all you have to install Java 8 or greater to run Apache Solr 7. Follow the below link to install Java 9 if you don’t have Java installed on your system.
After installing Java confirm using below command.
Step #2 : Download and Install Apache Solr 7.1
Next download the required Apache Solr version from its official website. In my case I am going to download Apache Solr 7.1 for its official website.
After downloading the Solr 7.1, now extract Apache Solr service installer shell script from the downloaded solr tar file and run the installer using below command.
Step #3 : Start/Stop Solr ServiceApache Solr Indexing
Follow the below command to start and stop the solr service.
For SysVinit Users
For Systemd Users
Step #4 : Create First Solr Collection
Now create your first Solr Collection using below command after installing Solr.
Step #5 : Access Solr Using Web Admin Panel
By default solr runs on port 8983, now open your web browser and type the below URl to access Solr dashboard.
Now click on “Core Selector” on the left side to access the created collections.
Apache Solr Download WindowsThank you! for visiting Look Linux.Apache Solr Azure
If you find this tutorial helpful please share with your friends to keep it alive.For more helpful topic browse my website www.looklinux.com.To become an author at Look Linux Submit Article.Stay connected to Facebook.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |