Title: Installing Solr on Linux
Before installing Solr, we recommend that you create a solr
user account as which to run the solr process.
To install the Solr server on Linux, download and run the Solr installer as the solr
user.
[solr@localhost ~]$ ./solr6400.bin
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
===============================================================================
Solr (created with InstallAnywhere)
-------------------------------------------------------------------------------
Preparing CONSOLE Mode Installation...
===============================================================================
Choose Install LOcation
-----------------------
Where would you like to install solr?
Default Install Folder: /home/solr/Solr
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
:
===============================================================================
Choose Install Set
------------------
===============================================================================
Choose Product Features
-----------------------
ENTER A COMMA_SEPARATED LIST OF NUMBERS REPRESENTING THE FEATURES YOU WOULD
LIKE TO SELECT, OR DESELECT. TO VIEW A FEATURE'S DESCRIPTION, ENTER
'?<NUMBER>'. PRESS <RETURN> WHEN YOU ARE DONE:
1- [X] Search Engine
2- [ ] Solr Documentation
Please choose the Features to be installed by this installer.:
===============================================================================
Choose Java Virtual Machine
---------------------------
Please Choose a Java VM for Use by the Installed Application
->1- Use the Java VM installed with this application
2- Choose a Java VM already installed on this system
ENTER THE NUMBER FOR THE JAVA VM, OR PRESS <ENTER> TO ACCEPT THE
CURRENT SELECTION:
===============================================================================
Enter the Java Heap Size for Solr
---------------------------------
Please enter the heap size for Solr
Heap (Default: 4g): 4g
===============================================================================
Enter the Java Metaspace Size for Solr
--------------------------------------
Please enter the metaspace size for Solr
Metaspace (Default: 512m):
===============================================================================
Installing...
-------------
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
===============================================================================
Ready to Start Solr
-------------------
Press Enter to start Solr. This is required during installation in order to
install the TeamPage schema.
PRESS <ENTER> TO CONTINUE:
===============================================================================
Ready to Install Schema
-----------------------
Press Enter to install the TeamPage schema.
PRESS <ENTER> TO CONTINUE:
===============================================================================
Installation Complete
---------------------
Solr has been successfully installed to:
/home/solr/Solr
PRESS <ENTER> TO EXIT THE INSTALLER:
To configure Solr to start automatically on boot, copy the Solr/solr/bin/init.d/solr
to /etc/init.d
and either follow the instructions in the script for installing it, or use chkconfig
:
chkconfig --add solr
chkconfig --level 345 solr on
To Stop Solr
If you have installed the init.d
script, you can stop solr using the appropriate command for your Linux distribution:
[root@localhost ~]# service solr stop
[root@localhost ~]# /etc/init.d/solr stop
Sending stop command to Solr running on port 8983 ... waiting up to 180 seconds to allow Jetty process 1359 to stop gracefully.
If you have not installed the init.d
script, you can stop solr using the solr command in the bin directory:
[root@localhost ~]# ~solr/Solr/solr/bin/solr stop -all
Sending stop command to Solr running on port 8983 ... waiting up to 180 seconds to allow Jetty process 2027 to stop gracefully.
To Start Solr
If you have installed the init.d
script, solr should start automatically on boot. You can also start it manually using the appropriate start command:
[root@localhost ~]# /etc/init.d/solr start
[root@localhost ~]# service solr start
Archiving 1 old GC log files to /home/solr/Solr/solr/server/logs/archived
Archiving 1 console log files to /home/solr/Solr/solr/server/logs/archived
Rotating solr logs, keeping a max of 9 generations
Waiting up to 180 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=2306). Happy searching!
If you have not installed the init.d
script, you can start solr when logged in as the solr
user, using the solr
command in the bin directory. Please pay special attention not to forget the mandatory -cloud
parameter:
[solr@localhost ~]$ ./Solr/solr/bin/solr start -cloud
Archiving 1 old GC log files to /home/solr/Solr/solr/server/logs/archived
Archiving 1 console log files to /home/solr/Solr/solr/server/logs/archived
Rotating solr logs, keeping a max of 9 generations
Waiting up to 180 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=2936). Happy searching!
Next: Now you can proceed with Configuring TeamPage to use Solr
Article: solrsearch22 (
permalink)
Date: February 27, 2017; 7:10:55 AM Eastern Standard Time
Author Name: Christopher Nuzum
Author ID: cjn