ELK企业应用-elk快速搭建-redis

版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37960324/article/details/82978738

ELK企业应用-elk快速搭建-redis

1、下载源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum makecache

2、安装

yum install -y redis

3、配置

根据需要,取消redis的本地绑定,允许所有地址登录。
根据需要设置密码。

vim /etc/redis.conf

#########################################

# bind 127.0.0.1

requirepass 123456

4、启动

systemctl enable redis

systemctl start redis

5、检查

检查端口

[root@r yum.repos.d]# netstat -lntup

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name    

tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 2343/redis-server *

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 885/sshd            

tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1036/master        

tcp6 0 0 :::6379 :::* LISTEN 2343/redis-server *

tcp6 0 0 :::22 :::* LISTEN 885/sshd            

tcp6 0 0 ::1:25 :::* LISTEN 1036/master  

测试

 

能读取数据库

猜你喜欢

转载自blog.csdn.net/qq_37960324/article/details/82978738
elk