redis

本文介绍了Redis的安装过程,详细讲解了如何设置密码,并概述了Redis的基础命令使用。
摘要由CSDN通过智能技术生成

redis安装

//安装依赖包
[root@localhost ~]# yum -y install gcc gcc-c++ centos-release-scl 

//升级gcc版本
[root@localhost ~]# yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils && scl enable devtoolset-9 bash

//安装redis
[root@localhost redis-6.0.6]# make

//把这个移到/usr/bin下就可以直接使用
[root@localhost src]# cp redis-server redis-cli /usr/bin/
[root@localhost src]# redis-server 
24093:C 13 Aug 2020 05:00:31.734 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
24093:C 13 Aug 2020 05:00:31.734 # Redis version=6.0.6, bits=64, commit=00000000, modified=0, pid=24093, just started
24093:C 13 Aug 2020 05:00:31.734 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
24093:M 13 Aug 2020 05:00:31.735 * Increased maximum number of open files to 10032 (it was originally set to 1024).
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 6.0.6 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.`
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值