这里为了方便直接用rpm包安装
下载安装包
1 | wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.2.rpm |
安装
1 | yum localinstall elasticsearch-5.5.2.rpm |
启动ES
1 | systemctl enable elasticsearch |
启动Logstash
如果es启动没有问题现在我们就可以启动logstash了
1 | ./bin/logstash -f conf/nginx_access.conf |