软件环境
操作系统:CentOS7.5
安装版本:Redis4.0.6
安装包下载
wget http://download.redis.io/releases/redis-4.0.6.tar.gz
安装
- 解压
tar -zxvf redis-4.0.6.tar.gz
- 安装gcc环境
yum install -y gcc
- 编译
cd redis-4.0.6
make MALLOC=libc
cd src && make install
- 修改配置
vi redis-4.0.6/redis.conf
bind 0.0.0.0
protected-mode no
daemonize yes
- 启动
./redis-server /usr/local/redis-4.0.6/redis.conf