wget http://download.redis.io/releases/redis-3.2.3.tar.gz
tar zxf redis-3.2.3.tar.gz
cd redis-3.2.3
make
make PREFIX=/usr/local/redis install
mkdir /usr/local/redis/conf
cp redis.conf /usr/local/redis/conf/redis.conf.bak
cd /usr/local/redis/conf
cp redis.conf.bak redis.conf
ERROR: bootstrap checks failed
问题:max file descriptors [65535] for elasticsearch process likelytoo low, increase to at least [65536]
解决:vi /etc/security/limits.conf
* - nofile 65536
或者
* soft nofile 65536
* hard nofile 131072
* soft nproc 2048
* hard nproc 4096
问题:max number of threads [1024] for user [elasticsearch] likely toolow, increase to at least [2048]
解决:vi/etc/security/limits.d/90-nproc.conf
* soft nproc 2048
需重启生效。
问题:max virtual memory areas vm.max_map_count [65530] likely toolow, increase to at least [262144]
解决:vi /etc/sysctl.conf
vm.max_map_count=655360
sysctl -p
配置kibana:
1
2
3
4
5
修改配置文件:
vi /usr/local/kibana/config/kibana.yml
server.port: 5601
server.host: "192.168.0.248"
elasticsearch.url: http://192.168.0.248:9200
测试logstash:
1
2
3
4
cd logstash-5.0.0
bin/logstash -e 'input { stdin { } } output {stdout {} }'
hello world
2013-11-21T01:22:14.405+0000 0.0.0.0 helloworld
配置logstash服务端:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
vi /usr/local/logstash/config/logstash.yml
input {
redis {
host => “192.168.0.248”
port => 6379
type =>”redis-input”
data_type =>”list”
key =>”logstash:redis”
}
}
output{
elasticsearch {
hosts=> ["192.168.0.248:9200"]
}
}