一.安装
小弟下的是elasticsearch-8.1.3版本,现阶段最新。但是我建议用elasticsearch-8.1.2
分词插件下载地址: github.com/medcl/elast…
当时只支持到elasticsearch-8.1.2
安装分词插件: 路径:elasticsearch-8.1.3-windows-x86_64\elasticsearch-8.1.3\plugins 建立文件夹ik,把下载的分词插件解压到ik文件夹内,重启es。
由于我的es是8.1.3 分词插件 8.1.2所以报错:
Plugin [analysis-ik] was built for Elasticsearch version 8.2.0 but version 8.1.3 is running
办法就是修改插件版本号:
重启完美。
一.重置默认的证书
跳到安装目录的bin cmd 执行:elasticsearch-certutil http
参照这个:
./bin/elasticsearch-certutil http
Generate a CSR? [y/N] N
Use an existing CA? [y/N] N
Do you wish to change any of these options? [y/N] y
CA Name [CN=Elasticsearch HTTP CA] www.minxyz.com
CA password: [<ENTER> for none] 123456
Repeat password to confirm: 123456
For how long should your certificate be valid? [5y] [ENTER]
Generate a certificate per node? [y/N]N
Enter all the hostnames that you need, one per line.
When you are done, press <ENTER> once more to move on to the next step.
www.minxyz.com
You entered the following hostnames.
- www.minxyz.com
Is this correct [Y/n]Y
Key Name: www.minxyz.com
Subject DN: CN=www, DC=minxyz, DC=com
Key Size: 2048
Do you wish to change any of these options? [y/N]N
If you wish to use a blank password, simply press <enter> at the prompt below.
Provide a password for the "http.p12" file: [<ENTER> for none] 123456
Repeat password to confirm: 123456
What filename should be used for the output zip file? [/software/elasticsearch-8.1.0/elasticsearch-ssl-http.zip] [ENTER]
Zip file written to /software/elasticsearch-8.1.0/elasticsearch-ssl-http.zip
\
但是要注意: 要绑定自己的域名和IP
最后生成:
把需要的文件拷贝覆盖到config/certs
kibana-8.1.3配置也要修改:
路径改成新生成的证书:
当然,其他一些操作,例如生成token啊这些ES界面会输出的,自行留意和查看命令就可以了。