1.es主要概念
 
 
2.es架构
 
 
3.优缺点
 
(1)优点:检索快、数据量大
 
(2)缺点:事务、权限比较差
 
4.es 安装(mac)
 
brew install elasticsearch    -----安装
 
elasticsearch  ----- 启动
 
 
elasticsearch --version    ----版本
 
 
访问网址:http://localhost:9200/
 
 
5.es 可视化插件
 
(1)head 插件:
 
git clone git://github.com/mobz/elasticsearch-head.git    ----下载head插件
 
cd elasticsearch-head/
 
检查下node是否安装:  node -v
 
brew install node  ---安装node
 
npm run start   ----启动head插件
 
修改配置文件(/usr/local/etc/elasticsearch/elasticsearch.yml)
 
 
http.cors.enabled: true
 
http.cors.allow-origin: "*"
 
重启es,jps-> kill -9 id
 
连接es即可
 
localhost:9100
 
 
(2)kibana 插件:
 
brew install kibana   ----安装
 
kibana       ----启动
 
 
http://localhost:5601