1、查询redis安装包 命令:rpm -qa | grep redis result:redis-3.2.12-2.el7.x86_642、通过安装包查询redis相关文件的安装目录命令:rpm -ql redis-3.2.12-2.el7.x86_64result:/etc/logrotate.d/redis/etc/redis-sentinel.conf/etc/redis.conf(redis配置文件,配合redis-server启动redis)/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/usr/bin/redis-sentinel/usr/bin/redis-server (这个就是我想要的,用来启动redis)/usr/lib/systemd/system/redis-sentinel.service/usr/lib/systemd/system/redis.service/usr/libexec/redis-shutdown/usr/share/doc/redis-3.2.12/usr/share/doc/redis-3.2.12/00-RELEASENOTES/usr/share/doc/redis-3.2.12/BUGS/usr/share/doc/redis-3.2.12/ConTRIBUTING/usr/share/doc/redis-3.2.12/MANIFESTO/usr/share/doc/redis-3.2.12/README.md/usr/share/licenses/redis-3.2.12/usr/share/licenses/redis-3.2.12/COPYING/usr/share/man/man1/redis-benchmark.1.gz/usr/share/man/man1/redis-check-aof.1.gz/usr/share/man/man1/redis-check-rdb.1.gz/usr/share/man/man1/redis-cli.1.gz/usr/share/man/man1/redis-sentinel.1.gz/usr/share/man/man1/redis-server.1.gz/usr/share/man/man5/redis-sentinel.conf.5.gz/usr/share/man/man5/redis.conf.5.gz/var/lib/redis/var/log/redis/var/run/redis
查看yuminstall安装redis的安装路径
时间:2023-06-28
查看yum install 安装redis的安装路径
相关推荐