第一步,下载redis-stack
下载链接:Downloads - Redis
第二步,redis安装包解压缩
gzip -d redis-stack-server-7.2.0-v10.rhel8.x86_64.tar.gz
tar -xvf redis-stack-server-7.2.0-v10.rhel8.x86_64.tar
第三步,编辑etc下的redis-stack-service.conf文件
port 12345
protected-mode no
daemonize no
requirepass 123.comloadmodule /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/rediscompat.so
loadmodule /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/redisearch.so
loadmodule /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/redistimeseries.so
loadmodule /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/rejson.so
loadmodule /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/redisbloom.so
loadmodule /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/redisgears.so v8-plugin-path /data1/work/xiehao/redis/redis-stack-server-7.2.0-v10/lib/libredisgears_v8_plugin.so
loadmodule后面的地址替换为自己的path
第四步,启动服务
./redis-server ../etc/redis-stack-service.conf