Mac 使用brew安装ElasticSearch

Mac 使用brew安装ElasticSearch


 

brew update
brew install elasticsearch
安装后的路径
elasticsearch:  /usr/local/Cellar/elasticsearch/5.5.0
Data:    /usr/local/var/elasticsearch/elasticsearch_xuchen/
Logs:    /usr/local/var/log/elasticsearch/elasticsearch_xuchen.log
Plugins: /usr/local/opt/elasticsearch/libexec/plugins/
Config:  /usr/local/etc/elasticsearch/
plugin script: /usr/local/opt/elasticsearch/libexec/bin/elasticsearch-plugin


 

如果需要额外安装插件

 

curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.0.tar.gz
 

将这个文件解压到 elasticsearch/plugins 目录中

需要进入config中配置一些属性

比如可以吧cluster.name注释掉

 

最后执行

/usr/local/Cellar/elasticsearch/5.5.0/bin/elasticsearch

你可能感兴趣的:(面试)