es版本6.8 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.0.rpm
kibana版本6.8 https://artifacts.elastic.co/downloads/kibana/kibana-6.8.0-x86_64.rpm
参考文档:
https://www.elastic.co/guide/cn/kibana/current/rpm.html
https://www.elastic.co/cn/downloads/kibana
1.下载rpm文件
下载地址:https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.8.0.rpm
2.rpm命令安装
[root@test tools]# rpm -ivh elasticsearch-6.8.0.rpm
warning: elasticsearch-6.8.0.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Preparing... ################################# [100%]
Creating elasticsearch group... OK
Creating elasticsearch user... OK
Updating / installing...
1:elasticsearch-0:6.8.0-1 ################################# [100%]
### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd
sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
### You can start elasticsearch service by executing
sudo systemctl start elasticsearch.service
Created elasticsearch keystore in /etc/elasticsearch
3.修改配置文件
vi /etc/elasticsearch/elasticsearch.yml
修改内容如下:
cluster.name: my-application
network.host: 192.168.3.11
path.data: /data/elasticsearch
path.logs: /home/log/elasticsearch
保存后退出
修改文件所有者
chown elasticsearch:elasticsearch -R /data/elasticsearch
chown elasticsearch:elasticsearch -R /home/log/elasticsearch
4.启动es
[root@test elasticsearch]# sudo systemctl enable elasticsearch.service
Created symlink from /etc/systemd/system/multi-user.target.wants/elasticsearch.service to /usr/lib/systemd/system/elasticsearch.service.
[root@test data]# sudo systemctl start elasticsearch.service
查看启动状态
[root@test data]# sudo systemctl status elasticsearch.service
测试地址:
[root@test data]# curl http://192.168.3.11:9200
{
"name" : "GpVSJIn",
"cluster_name" : "my-application",
"cluster_uuid" : "bn1AvZcjRqCSZotVRiXgDQ",
"version" : {
"number" : "6.8.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "65b6179",
"build_date" : "2019-05-15T20:06:13.172855Z",
"build_snapshot" : false,
"lucene_version" : "7.7.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
二 安装kibana
1.下载rpm文件
https://artifacts.elastic.co/downloads/kibana/kibana-6.8.0-x86_64.rpm
2.安装
[root@test tools]# rpm -ivh kibana-6.8.0-x86_64.rpm
warning: kibana-6.8.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY
Preparing... ################################# [100%]
package kibana-6.8.0-1.x86_64 is already installed
3.修改配置文件
vi /etc/kibana/kibana.yml
设置es地址,保存退出
server.port: 5601
server.host: 192.168.3.11
elasticsearch.hosts: ["http://192.168.3.11:9200"]
4.启动
[root@test tools]# sudo systemctl enable kibana.service
Created symlink from /etc/systemd/system/multi-user.target.wants/kibana.service to /etc/systemd/system/kibana.service.
[root@test tools]# systemctl start kibana.service
测试http://192.168.3.11:5601
安装完成