Elasticsearch:开源的分布式全文检索和分析引擎,可以进行实时快速存储,搜索,分析海量的数据
高版本安装会出错,如:
log [10:00:51.161] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command. log [10:00:51.161] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended. log [10:00:51.181] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command. log [10:00:51.182] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended. log [10:00:51.199] [warning][config][plugins][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command. log [10:00:51.215] [warning][encryptedSavedObjects][plugins] Saved objects encryption key is not set. This will severely limit Kibana functionality. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command. log [10:00:51.229] [warning][actions][plugins] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command. log [10:00:51.244] [warning][alerting][plugins] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
极简式(不会出各种错误)安装步骤
使用6.3.2版本。elasticsearch和kibana版本要一致
下载地址:
Kibana 6.3.2 | Elastic
Elasticsearch 6.3.2 | Elastic
点击elasticsearch.bat 跳出cmd窗口,不要关,否则安装会报一堆错
再点击kibana.bat也跳出cmd窗口,两个有关联,不要关
安装后测试elaticsearch
访问localhost:9200,如果结果是如下图的json数据,则安装正确
测试kibana,访问http://localhost:5601
安装成功
此时并不是完整的,这两个软件的打开只是一次性的,每次重启电脑需要重新打开
以kibana为例,elasticsearch的方法一样
①下载NSSM,下载地址:http://www.nssm.cc/download
②将NSSM解压并将nssm.exe拷贝到kibana的bin目录下
③配置系统环境变量
④cmd命令进入到kibana的bin文件夹下
⑤执行安装命令nssm install kibana,回车
⑥弹出这个窗口,如图配置路径
⑦成为服务



