β

CentOS 6.X Linux下安装ElasticSearch

远航 338 阅读

一、配置JDK环境
参考 CentOS Linux 下安装Java 来安装JDK

二、下载ElasticSearch


cd /data0/software/
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.3.2/elasticsearch-2.3.2.rpm

三、安装ElasticSearch


rpm -ivh elasticsearch-2.3.2.noarch.rpm

四、设置开机自启动


/sbin/chkconfig --add elastic search
service elasticsearch start

启动之后,在浏览器输入http://ip:9200/如能输出下列信息,即表示安装成功


{
    "status": 200,
    "name": "Shiva",
    "cluster_name": "elasticsearch",
    "version": {
        "number": "1.5.2",
        "build_hash": "62ff9868b4c8a0c45860bebb259e21980778ab1c",
        "build_timestamp": "2015-04-27T09:21:06Z",
        "build_snapshot": false,
        "lucene_version": "4.10.4"
    },
    "tagline": "You Know, for Search"
}

五、安装elasticsearch-head插件


/usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head

安装完成之后,在浏览器输入:http://ip:9200/_plugin/head/ ,可以查看显示效果

除非注明,本博客文章均为原创,转载请以链接形式标明本文地址
本文地址: http://blog.cnwyhx.com/centos-linux-install-elasticsearch/

作者:远航
IT技术 | 生活 | 旅游 | 摄影
原文地址:CentOS 6.X Linux下安装ElasticSearch, 感谢原作者分享。