CentOS上部署ElasticSearch
2014-12-02 tech

以下命令适用于CentOS 6/7环境

1
2
3
4
5
6
7
8
9
10
11
cd /tmp
yum install java -y
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.1.zip
unzip elasticsearch-1.4.1.zip
rm -rf elasticsearch-1.4.1.zip
mv elasticsearch-1.4.1 /usr/local/elasticsearch
curl -L http://github.com/elasticsearch/elasticsearch-servicewrapper/tarball/master | tar -xz
mv elasticsearch-elasticsearch-servicewrapper-*/service /usr/local/elasticsearch/bin/
rm -rf elasticsearch-elasticsearch-servicewrapper-*
/usr/local/elasticsearch/bin/service/elasticsearch install
service elasticsearch start