一、安装方法:
brew install elastic/tap/elasticsearch-full
安装成功!
二、启动:
brew services start elastic/tap/elasticsearch-full
启动成功!
brew services 常用命令:
brew services list # 查看使用brew安装的服务列表
brew services run formula|--all # 启动服务(仅启动不注册)
brew services start formula|--all # 启动服务,并注册
brew services stop formula|--all # 停止服务,并取消注册
brew services restart formula|--all # 重启服务,并注册
brew services cleanup # 清除已卸载应用的无用的配置
三、安装过程中遇到的坎坷:
1、网不好:
brew install elastic/tap/elasticsearch-full
解决方案:再执行一遍即可。
2、已被弃用:
brew install elasticsearch
错误信息摘:
Warning: elasticsearch has been deprecated because it is switching to an incompatible license. Check out `opensearch` instead!
Error: elasticsearch: no bottle available!
You can try to install from source with:
brew install --build-from-source elasticsearch
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
按照提示继续操作:
brew install --build-from-source elasticsearch
好了,撞上南墙就回头吧。
|