Elasticsearch 2.1 安装

Elasticsearch requires at least Java 7. Specifically as of this writing, it is recommended that you use the Oracle JDK version 1.8.0_25. Java installation varies from platform to platform so we won’t go into those details here. Oracle’s recommended installation documentation can be found on Oracle’s website. Suffice to say, before you install Elasticsearch, please check your Java version first by running (and then install/upgrade accordingly if needed):  需要jdk1.7 以上版本

Once we have Java set up, we can then download and run Elasticsearch. The binaries are available fromwww.elastic.co/downloads along with all the releases that have been made in the past. For each release, you have a choice among a zip or tar archive, or a DEB or RPM package. For simplicity, let’s use the tar file.

Let’s download the Elasticsearch 2.1.0 tar as follows (Windows users should download the zip package):

下载Elasticsearch 压缩包

https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.1.0/elasticsearch-2.1.0.tar.gz

Then extract it as follows (Windows users should unzip the zip package):

解压Elasticsearch 压缩包

tar -xvf elasticsearch-2.1.0.tar.gz

It will then create a bunch of files and folders in your current directory. We then go into the bin directory as follows:

cd elasticsearch-2.1.0/bin

And now we are ready to start our node and single cluster (Windows users should run the elasticsearch.bat file):

 

启动Elasticsearch 

./elasticsearch

 

注意不能使用root用户启动,elasticsearch 所在目录应具有读写权限。

 

 原文链接:http://blog.csdn.net/z6978445/article/details/50205835

猜你喜欢

转载自kfcman.iteye.com/blog/2266630
2.1
今日推荐