我怎么能用自制软件安装 Elasticsearch 1.2.1
How could I install Elasticsearch 1.2.1 with homebrew
我的工作需要旧版 Elasticsearch。但我无法使用 brew
安装 Elasticsearch 1.2.1
开发环境
$ brew --version
Homebrew 0.9.5 (git revision 567b; last commit 2015-12-23)
我试过的程序
我尝试了以下流程
$ brew search elasticsearch
elasticsearch ✔ homebrew/versions/elasticsearch20
homebrew/versions/elasticsearch17 ✔
没有elasticsearch10.
所以,我找到了这个指南。
Homebrew install specific version of formula?
并键入此命令。
$ brew info elasticsearch
elasticsearch: stable 2.1.1, HEAD
Distributed search & analytics engine
https://www.elastic.co/products/elasticsearch
/usr/local/Cellar/elasticsearch/2.1.1 (52 files, 31M)
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/elasticsearch.rb
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_kent/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_kent.log
Plugins: /usr/local/Cellar/elasticsearch/2.1.1/libexec/plugins/
Config: /usr/local/etc/elasticsearch/
To have launchd start elasticsearch at login:
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Or, if you don't want/need launchctl, you can just run:
elasticsearch
也输入了这个命令,但是找不到安装elasticsearch 1.2.1版的秘钥
$ brew versions elasticsearch
Error: The `versions` command is no longer supported.
You can use the homebrew-versions tap instead:
https://github.com/Homebrew/homebrew-versions
Or use `brew log` to browse the git history.
我需要一些帮助来让自己适应使用 brew 安装 elasticsearch 1.2.1。
你能引导我的脚步吗?
如果您只是想为本地开发做这件事,那么下载 Elasticsearch 并将其解压到一个目录中可能会更容易。
$ cd /path/to/install/at
$ wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.2.1.tar.gz
$ tar -xf elasticsearch-1.2.1.tar.gz
$ cd elasticsearch-1.2.1
解压后,您可以选择删除压缩包:
$ rm elasticsearch-1.2.1.tar.gz
从那里开始,只需配置(根据需要)并启动 Elasticsearch。
$ vi config/elasticsearch.yml
$ bin/elasticsearch
注意:Elasticsearch 1.2.1 是一个非常旧的版本。我强烈 建议您升级到更新的版本以获得可靠性和安全性。例如,ES 1.2.1 使用 MVEL 脚本,充其量是不好的。
对于您的生产场景(当然是在新年之后),您可以轻松地执行 rolling restart from ES 1.2.1 to ES 1.7.4 以获得大量功能和稳定性,而不会冒太多风险。如果您有专用的主节点,那么我建议先从它们开始,以便预先获得一些额外的好处。
我的工作需要旧版 Elasticsearch。但我无法使用 brew
安装 Elasticsearch 1.2.1开发环境
$ brew --version
Homebrew 0.9.5 (git revision 567b; last commit 2015-12-23)
我试过的程序
我尝试了以下流程
$ brew search elasticsearch
elasticsearch ✔ homebrew/versions/elasticsearch20
homebrew/versions/elasticsearch17 ✔
没有elasticsearch10.
所以,我找到了这个指南。
Homebrew install specific version of formula?
并键入此命令。
$ brew info elasticsearch
elasticsearch: stable 2.1.1, HEAD
Distributed search & analytics engine
https://www.elastic.co/products/elasticsearch
/usr/local/Cellar/elasticsearch/2.1.1 (52 files, 31M)
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/elasticsearch.rb
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_kent/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_kent.log
Plugins: /usr/local/Cellar/elasticsearch/2.1.1/libexec/plugins/
Config: /usr/local/etc/elasticsearch/
To have launchd start elasticsearch at login:
ln -sfv /usr/local/opt/elasticsearch/*.plist ~/Library/LaunchAgents
Then to load elasticsearch now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
Or, if you don't want/need launchctl, you can just run:
elasticsearch
也输入了这个命令,但是找不到安装elasticsearch 1.2.1版的秘钥
$ brew versions elasticsearch
Error: The `versions` command is no longer supported.
You can use the homebrew-versions tap instead:
https://github.com/Homebrew/homebrew-versions
Or use `brew log` to browse the git history.
我需要一些帮助来让自己适应使用 brew 安装 elasticsearch 1.2.1。
你能引导我的脚步吗?
如果您只是想为本地开发做这件事,那么下载 Elasticsearch 并将其解压到一个目录中可能会更容易。
$ cd /path/to/install/at
$ wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.2.1.tar.gz
$ tar -xf elasticsearch-1.2.1.tar.gz
$ cd elasticsearch-1.2.1
解压后,您可以选择删除压缩包:
$ rm elasticsearch-1.2.1.tar.gz
从那里开始,只需配置(根据需要)并启动 Elasticsearch。
$ vi config/elasticsearch.yml
$ bin/elasticsearch
注意:Elasticsearch 1.2.1 是一个非常旧的版本。我强烈 建议您升级到更新的版本以获得可靠性和安全性。例如,ES 1.2.1 使用 MVEL 脚本,充其量是不好的。
对于您的生产场景(当然是在新年之后),您可以轻松地执行 rolling restart from ES 1.2.1 to ES 1.7.4 以获得大量功能和稳定性,而不会冒太多风险。如果您有专用的主节点,那么我建议先从它们开始,以便预先获得一些额外的好处。