(1)下载Redis源码包
下载地址
https://redis.io/download
(2)检查gcc && g++ 环境
ubuntu上用apt安装,centos使用yum安装即可
sudo apt-get install -y gcc
sudo apt-get install -y g++
(3)编译安装
tar -zxvf redis-6.0.9.tar.gz -C /opt/module
cd /opt/module/redis-6.0.9/src
/opt/module/redis-6.0.9/src » make
/opt/module/redis-6.0.9/src » make install
(4)安装客户端
下载地址:
https://github.com/qishibo/AnotherRedisDesktopManager/releases
(5)启动Redis
/usr/local/bin » /usr/local/bin/redis-server