centos7-安装redis

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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值