Last active
March 25, 2020 20:19
-
-
Save DorkNstein/cb72984d609120497f61aa5a25582773 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Solr Server setup | |
----------------------------------------------------------------------------- | |
Use below link as a reference | |
https://www.webfoobar.com/node/16 | |
https://valuebound.com/resources/blog/installing-configuring-apache-solr-520-with-drupal-7-using-search-api-ubuntu-1404 | |
1. If Java is not installed, check the available versions of Java and install it: | |
yum list available java* | |
yum install java-1.8.0-openjdk.x86_64 | |
----------------------------------------------- | |
2. Then verify if it is already installed: | |
which java | |
java -version | |
------------------------------------------------ | |
3. Set the default Java version to the latest using below command. | |
sudo alternatives --config java | |
------------------------------------------------ | |
4. Solr require system user named "solr" and we will create one: | |
adduser solr | |
--------------------------------------------------- | |
5. Download and setup Solr server: | |
a) Goto directory | |
b) download | |
c) unzip the folder. | |
d) Copy install_solr_service.sh into opt directory | |
e) Remove folder | |
f) unzip the folder using sh file. | |
cd /opt | |
sudo curl -O http://www-us.apache.org/dist/lucene/solr/5.5.0/solr-5.5.0.tgz | |
tar zxvf solr-5.5.0.tgz | |
sudo cp /opt/solr-5.5.0/bin/install_solr_service.sh . | |
sudo rm -rf solr-5.5.0 | |
sudo ./install_solr_service.sh solr-5.5.0.tgz | |
a) add user to auto start solr server. | |
sudo chkconfig --add solr | |
chkconfig | grep solr | |
------------------------------------------------------ | |
Solr succesfully installed | |
# Increase SWAP space using following commands | |
# https://aws.amazon.com/premiumsupport/knowledge-center/ec2-memory-swap-file/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment