1、解压软件包redis-7.0.0.tar.gz;
tar -zxvf redis-7.0.0.tar.gz
2、切换至解压后的软件目录,执行make命令安装;
cd redis-7.0.0/
make
make install
3、以服务形式安装redis;
cd utils/
./install_server.sh
执行./install_server.sh遇到报错信息:
Welcome to the redis service installer
This script will help you easily set up a running redis server
This systems seems to use systemd.
Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!
Linux安装Redis 6.0.5 ./install_server.sh报错 - ws_hawk - 博客园Linux安装Redis 6.0.5 ./install_server.sh报错 linux 安装Redis6.0.5时 进行到./install_server.sh时报错, This systemshttps://www.cnblogs.com/strive-for-life/p/13194306.html4、修改install_server.sh文件后,重新执行安装(对于提示信息,直接Enter,使用默认配置)。
附:redis服务启动与停止
# 停止
/etc/init.d/redis_6379 stop
# 启动
/etc/init.d/redis_6379 start
# 重启
/etc/init.d/redis_6379 restart
# 查看运行状态
/etc/init.d/redis_6379 status