Created
June 11, 2015 07:53
-
-
Save brijeshgpt7/1a1527cbe1d3c093b3e5 to your computer and use it in GitHub Desktop.
Elestic search configuration
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
________________________________________________________________________________________________________________ | |
================================================================================================================ | |
Local setup for elastic search | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb | |
sudo dpkg -i elasticsearch-0.20.6.deb | |
sudo service elasticsearch start | |
rake environment tire:import CLASS=Listing FORCE=true | |
________________________________________________________________________________________________________________ | |
================================================================================================================ | |
Staging/Production setup for elastic search | |
if java present than it will show many | |
___________________________________/*CENTOS configuration */_________________________________ | |
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-4-on-centos-7 | |
/*____________________________________________________________*/___________________________________________________*/ | |
Step 1 | |
cd /opt | |
sudo wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ | |
"http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jre-8u40-linux-x64.tar.gz" | |
Step 2 | |
sudo tar xvf jre-8*.tar.gz | |
step 3 | |
sudo chown -R root: jre1.8* | |
step 4 | |
sudo alternatives --install /usr/bin/java java /opt/jre1.8*/bin/java 1 | |
step 5 | |
sudo rm /opt/jre-8*.tar.gz | |
step 6 | |
sudo rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch | |
Step 7 | |
sudo vi /etc/yum.repos.d/elasticsearch.repo | |
STep 8 | |
Add the following repository configuration: | |
/etc/yum.repos.d/elasticsearch.repo | |
elasticsearch-1.4] | |
name=Elasticsearch repository for 1.4.x packages | |
baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos | |
gpgcheck=1 | |
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch | |
enabled=1 | |
Save and exit. | |
Step 9 | |
Install Elasticsearch 1.4.4 with this command: | |
sudo yum -y install elasticsearch-1.4.4 | |
and last start server | |
sudo service elasticsearch restart | |
or | |
sudo service elasticsearch start | |
if u need indexing do like this | |
RAILS_ENV=staging rake environment tire:import CLASS=Listing FORCE=true | |
summery first u need java jdk and than elasticsearch | |
________________________________________________________________________________________________________________ | |
================================================================================================================ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment