1.版本:
es:6.5.1
curator:5.8.4 下载地址:https://www.elastic.co/guide/en/elasticsearch/client/curator/current/yum-repository.html#_signing_key_2
2.连接不上网站怎么办?
出现无法访问此网页的话,去修改下本地dns
具体方法:
https://blog.csdn.net/weixin_43736084/article/details/121775676
3.下载
我这里用的离线安装,因为线上环境是隔离的,没有外网,根据CentOS版本选择,执行命令查看
[root@localhost curator-5.6.0]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
curator选择最好看官网上的版本兼容性
我一开始选择的是5.6.0,但是执行rpm -ivh elasticsearch-curator-5.5.4-1.x86_64.rpm
报错如下:
[root@localhost curator-5.6.0]# rpm -ivh elasticsearch-curator-5.6.0-1.x86_64.rpm
warning: elasticsearch-curator-5.6.0-1.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID d88e42b4: NOKEY
error: Failed dependencies:openssl-libs >= 1:1.0.2k-8.el7 is needed by elasticsearch-curator-5.6.0-1.x86_64
[root@localhost curator-5.6.0]# curator --version
Traceback (most recent call last):File "/home/buh/.local/lib/python3.6/site-packages/cx_Freeze/initscripts/__startup__.py", line 14, in runFile "/home/buh/.local/lib/python3.6/site-packages/cx_Freeze/initscripts/Console.py", line 26, in runFile "run_singleton.py", line 24, in <module>File "/home/buh/curator/curator/__init__.py", line 6, in <module>File "/home/buh/curator/curator/utils.py", line 2, in <module>File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/__init__.py", line 17, in <module>File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 4, in <module>File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/transport.py", line 4, in <module>File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/connection/__init__.py", line 3, in <module>File "/home/buh/.local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 2, in <module>File "/usr/local/lib/python3.6/ssl.py", line 101, in <module>
ImportError: /lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by /opt/elasticsearch-curator/lib/_ssl.cpython-36m-x86_64-linux-gnu.so)
因为当前linux版本的OPENSSL版本太低导致的,最好不要随便去更新OPENSSL版本,可能导致系统崩溃,如果你有经验的话可以
后面找到了官网的回复说在后续的版本中会加入此问题的依赖,所以下载了最新的5.8版本就成功安装好了。
2.安装
直接执行rpm -ivh elasticsearch-curator-5.8.4-1.x86_64.rpm
就可以了
[root@localhost curator-5.6.0]# ls
elasticsearch-curator-5.8.4-1.x86_64.rpm
[root@localhost curator-5.6.0]# rpm -ivh elasticsearch-curator-5.8.4-1.x86_64.rpm
warning: elasticsearch-curator-5.8.4-1.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID d88e42b4: NOKEY
Preparing... ################################# [100%]
Updating / installing...1:elasticsearch-curator-5.8.4-1 ################################# [100%]
[root@localhost curator-5.6.0]#
[root@localhost curator-5.6.0]# curator --version
curator, version 5.8.4