Elk (Elasticsearch 2.0.0, Logstash 2.0.0, Kibana4.2.0) Redis centos6.6 installation and configuration

Source: Internet
Author: User
Tags kibana logstash

Related environments for this installation: centos_x64_6.6 redis2.8.23 Elasticsearch 2.0.0, Logstash 2.0.0, Kibana4.2.0

Software:

redis: http://redis.io/downloadelasticsearch: wget https ://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.0.0/ elasticsearch-2.0.0.rpmlogstash: wget https://download.elastic.co/logstash/logstash/packages/centos/ logstash-2.0.0-1.noarch.rpmkibana: wget  https://download.elastic.co/kibana/kibana/ kibana-4.2.0-linux-x64.tar.gzkibana: wget https://download.elastic.co/kibana/kibana/ Kibana-4.2.0-linux-x64.tar.gzjdk:  wget --no-cookies --no-check-certificate --header   "Cookie: gpw_e24=http%3a%2f%2fwww.oracle.com%2f; oraclelicense=accept-securebackup-cookie"   "http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.rpmyum localinstall  jdk-8u65-linux-x64.rpm 

Install Java 8
[[email protected] src]# rpm -ivh jdk-8u65-linux-x64.rpm preparing...                 #################### ####################### [100%]   1:jdk1.8.0_65             ########################################### [100%]Unpacking JAR  files...        tools.jar...         plugin.jar...        javaws.jar...         deploy.jar...        rt.jar...         jsse.jar...        charsets.jar...         localedata.jar...         Jfxrt.jar ... [[email Protected] src]# ln -s  /usr/java/jdk1.8.0_65/jre/bin/java /usr/bin/java 
Install redis2.8
First install dependent Tcl[[email protected] src]# yum install TCL installation redis[[email protected] src] #tar zxvf redis-2.8.23.tar.gz [email prote CTED] src]# CD redis-2.8.23[[email protected] redis-2.8.23]#[[email protected] redis-2.8.23]# Make[[email protected] redis-2.8.23]# make Installredis post-installation configuration
[Email protected] redis-2.8.23]# CD Utils/[[email protected] utils]#./install_server.sh
Welcome to the redis service installerthis script will help you  easily set up a running redis serverplease select the redis  port for this instance: [6379] Selecting default: 6379Please  select the redis config file name [/etc/redis/6379.conf] selected  Default - /etc/redis/6379.confplease select the redis log file name  [/var/log/redis_6379.log] Selected default - /var/log/redis_6379.logPlease  select the data directory for this instance [/var/lib/redis/6379]  Selected default - /var/lib/redis/6379please select the redis executable  path [/usr/local/bin/redis-server] Selected config:Port            : 6379Config file    : /etc/redis/6379.confLog file        : /var/log/redis_6379.logdata dir       :  /var/lib/redis/6379Executable     : /usr/local/bin/redis-serverCli  Executable : /usr/local/bin/redis-cliis this ok? then press enter to  go on or ctrl-c to abort. Copied /tmp/6379.conf => /etc/init.d/redis_6379installing service ... successfully added to chkconfig! successfully added to runlevels 345! Starting redis server ... installation successful!
Install Elasticsearch
[[EMAIL PROTECTED] SRC] #rpm  -ivh elasticsearch-2.0.0.rpmwarning:  ELASTICSEARCH-2.0.0.RPM: HEADER V4 RSA/SHA1 SIGNATURE, KEY ID D88E42B4:  NOKEYPreparing...                 ########################################### [100%]creating elasticsearch group ...  OKCreating elasticsearch user... OK   1:elasticsearch           ########################################### [100%]### not  starting on installation, please execute the following statements  to configure elasticsearch service to start automatically using  chkconfig sudo chkconfig --add elasticsearch### you can start  elasticsearch service by executing sudo service elasticsearch start [[email protected] src]# /etc/init.d/ elasticsearch start   is starting  elasticsearch:                                     [Determine] [[email protected] src]#  Chkconfig elasticsearch on
Install Kibana
[[email protected] opt] #groupadd  -g 1005 kibana[[email protected] opt]# Useradd -u 1005 -g 1005 kibana[[email protected] opt]# tar zxvf  kibana-4.2.0-linux-x64.tar.gz  -c /opt/[[email protected] ~]# cd /opt [[email protected] opt]# mv kibana-4.2.0-linux-x64/ kibana[[email protected]  OPT] #chown  -r kibana: /opt/kibana[[email protected] opt] #cd  /etc/init.d  &&  curl -o kibana https://gist.githubusercontent.com/thisismitch/ 8b15ac909aed214ad04a/raw/fc5025c3fc499ad8262aff34ba7fde8c87ead7c0/kibana-4.x-init[[email protected]  OPT] #cd  /etc/init.d &&  curl -o kibana https:// gist.githubusercontent.com/thisismitch/8b15ac909aed214ad04a/raw/fc5025c3fc499ad8262aff34ba7fde8c87ead7c0/ Kibana-4.x-initcd /etc/default &&  curl -o kibana https://gist.githubusercontent.com/thisismitch/8b15ac909aed214ad04a/ RAW/FC5025C3FC499AD8262AFF34BA7FDE8C87EAD7C0/KIBANA-4.X-DEFAULT[[EMAIL PROTECTED] OPT] #service   KIBANA START[[EMAIL PROTECTED] OPT] #chkconfig  kibana on
Install Logstash
[[email protected] src]rpm -ivh logstash-2.0.0-1.noarch.rpm preparing...                 ########################## ################# [100%]   1:logstash                ########################################### [100%] equivalent to client configuration     [[email protected] conf.d]# cat /etc/logstash/conf.d/ agent.confinput {        file {                 type =>  "Nginx_access"                 path = > ["/usr/share/nginx/logs/test.access.log"]        }}output  {        redis {                 host =>  "localhost"                  data_type =>  "List"                  key =>  "Logstash:redis"          }} is equivalent to server-side configuration [[email protected] conf.d]# cat /etc/logstash/conf.d/ index.conf input {        redis {                 host =>  "localhost"                 data_type  =>  "List"                  port => 6379                key = >  "Logstash:redis"                  type =>  "Redis-input"         }}output {   elasticsearch { hosts => ["localhost:9200"] }}
[[email protected] src]#/etc/init.d/logstash start
[Email protected] src]# chkconfig Logstash on


This article is from "Linux Technology sharing" blog, please make sure to keep this source http://guomt.blog.51cto.com/150883/1710500

Elk (Elasticsearch 2.0.0, Logstash 2.0.0, Kibana4.2.0) Redis centos6.6 installation and configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.