ELK 环境安装
用户
新建用户并设置密码
1 2 adduser wenders passwd wenders
sudo提权
1 2 visudo wenders ALL=(ALL) ALL
Java安装
1 yum install -y java-1.8.0-openjdk
Nginx安装
elasticsearch安装
Download and install the public signing key:
1 rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Installing from the RPM repositoryedit
Create a file called elasticsearch.repo
in the /etc/yum.repos.d/
directory for RedHat based distributions,containing:
1 2 3 4 5 6 7 8 [elasticsearch] name=Elasticsearch repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=0 autorefresh=1 type =rpm-md
And your repository is ready for use. You can now install Elasticsearch with one of the following commands:
1 sudo yum install --enablerepo=elasticsearch elasticsearch
给予权限
1 2 3 4 5 chmod 777 -R /usr/share/elasticsearch chmod 777 -R /etc/elasticsearch chmod 777 -R /var/lib/elasticsearch chmod 777 -R /var/log /elasticsearch chmod 777 -R /etc/sysconfig/elasticsearch
运行
1 /usr/share/elasticsearch/bin/elasticsearch
Kibana
Download and install the public signing key:
1 rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
Installing from the RPM repositoryedit
Create a file called kibana.repo
in the /etc/yum.repos.d/
directory for RedHat based distributions,containing:
1 2 3 4 5 6 7 8 [kibana-7.x] name=Kibana repository for 7.x packages baseurl=https://artifacts.elastic.co/packages/7.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type =rpm-md
And your repository is ready for use. You can now install Kibana with one of the following commands: