我已经通过Homebrew安装了Elastichsearch 1.7,现在只有#ke; keg-only"。我不完全理解这一点,但这意味着我不能像以前一样使用elasticsearch
来运行它,但我仍然需要。我的Node.js应用程序仅适用于此版本。我可以做什么来对它进行符号链接或其他工具检测它的必要性吗?任何帮助都会非常感激。
自制信息:
elasticsearch@1.7: stable 1.7.6 [keg-only]
Distributed search & analytics engine
https://www.elastic.co/products/elasticsearch
/usr/local/Cellar/elasticsearch@1.7/1.7.6_1 (38 files, 29.7M)
Built from source on 2017-02-09 at 17:45:23
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/elasticsearch@1.7.rb
==> Requirements
Required: java >= 1.7 ✔
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_ourcore/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_ourcore.log
Plugins: /usr/local/var/lib/elasticsearch/plugins/
Config: /usr/local/etc/elasticsearch/
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/elasticsearch@1.7/bin:$PATH"' >> ~/.zshrc
To have launchd start elasticsearch@1.7 now and restart at login:
brew services start elasticsearch@1.7
Or, if you don't want/need a background service you can just run:
elasticsearch --config=/usr/local/opt/elasticsearch@1.7/config/elasticsearch.yml