1、首先安装一个redis
[root@iZbp1eem925ojwyx17ao9kZ ~]# yum install redis
2、查找redis的安装包
[root@iZbp1eem925ojwyx17ao9kZ ~]# rpm -qa|grep redis redis-3.2.10-2.el7.x86_64 [root@iZbp1eem925ojwyx17ao9kZ ~]#
3、查找安装包的安装路径
[root@iZbp1eem925ojwyx17ao9kZ ~]# rpm -ql redis-3.2.10-2.el7.x86_64 /etc/logrotate.d/redis /etc/redis-sentinel.conf /etc/redis.conf /etc/systemd/system/redis-sentinel.service.d /etc/systemd/system/redis-sentinel.service.d/limit.conf /etc/systemd/system/redis.service.d /etc/systemd/system/redis.service.d/limit.conf /usr/bin/redis-benchmark /usr/bin/redis-check-aof /usr/bin/redis-check-rdb /usr/bin/redis-cli
4、ok,现在就找到了!