31 原 Mac 安装Elasticsearch 5.0
2016-12-24 14:15
531 查看
Install Elasticsearch 5.0
Download .zip/.tar.gz 下载地址tar -xzf elasticsearch-5.0.0.tar.gz
修改配置文件(xx/config/elasticsearch.yml):
path.data:/data/elasticsearch/data #数据目录
path.logs:/data/elasticsearch/logs #日志目录
network.host:x.x.x.x
http.cors.enabled:true #这个参数设置head插件连接es集群
http.cors.allow-origin:”*” #同上(如果不设置最后这两个参数head插件连接不到es集群)
启动es,nohup bin/elasticsearch > logs/xxx.log 2>&1 &
Install elasticsearch-head(es5.0不支持site plugin,所以需要单独安装head插件)
elasticsearch-headenable cors by adding http.cors.enabled: true in elasticsearch configuration. Don’t forget to also set
http.cors.allow-origin because no origin allowed by default. http.cors.allow-origin: “*” is valid value, however it’s considered as a security risk as your cluster is open to cross origin from anywhere. Check
Elasticsearch documentation on this parameter
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
grunt server(如果没有grunt,执行npm install -g grunt-cli安装)
open http://localhost:9100/
相关文章推荐
- Mac安装Elasticsearch5.0 head插件
- Mac 安装Elasticsearch 5.0
- 将ESXi 5.0 系统安装到Apple Mac Mini
- mac 10.9 xcode 5.0 安装opencv2.4.7和libjpeg.8后出现libjpeg不兼容(解决方法)
- Elasticsearch 5.0-安装使用
- ElasticSearch学习25_ elasticsearch5.0 安装流程
- ElasticSearch5.0 插件 Head 安装
- Win7虚拟机安装 Mac OS X Lion 10.7.2 及 XCode 4.2.1 (iOS SDK5.0) 作开发
- Elasticsearch 入门:CentOS 5.6 安装 Elasticsearch 5.0
- 安装Elasticsearch,Logstash,Kibana(5.0.1-mac版)
- elasticsearch5.0 安装流程
- elasticsearch5.0集群+kibana5.0+head插件插件的安装
- mac下elasticsearch安装日记
- Elasticsearch5.0 版本安装错误
- elasticsearch 5.0 版本安装head插件
- [elk]elasticsearch5.0及head插件安装
- mac安装ElasticSearch
- 安装elasticsearch5.0
- 在Windows上安装Elasticsearch 5.0
- elasticsearch5.0集群+kibana5.0+head插件插件的安装