linux下使用yum源安装redis

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/Mr_wangB0/article/details/102724700

一、yum源安装redis步骤

1、添加epel安装源
[root@localhost ~]# yum install epel-release

2、安装Redis
[root@localhost ~]# yum -y install redis

3、启动redis
[root@localhost ~]# systemctl start redis

4、设置开机自启动
[root@localhost ~]# chkconfig redis on

[root@localhost ~]# systemctl enable redis

5、查看运行状态
[root@localhost ~]# ps -ef | grep redis

6、进入redis命令:
[root@localhost ~]# redis-cli -h 127.0.0.1 -p 6379

二、查看配置
[root@localhost ~]# more /etc/redis.conf

redis配置文件详解请参考
https://blog.csdn.net/zgrjkflmkyc/article/details/102658771

参考文章:
https://blog.csdn.net/github_38336924/article/details/82224329

猜你喜欢

转载自blog.csdn.net/Mr_wangB0/article/details/102724700