centos7编译安装redis
young 5/24/2020 redis
# 下载源码
wget https://download.redis.io/redis-stable.tar.gz
1
# 解压
tar -xzvf redis-stable.tar.gz
1
# 安装
cd redis-stable
make
make install
1
2
3
2
3
# 复制配置文件
cp redis.conf /etc/redis.conf
1
# 编辑配置文件
vim /etc/redis.conf
bind 0.0.0.0
deamonize yes
1
2
3
4
2
3
4
# 启动
redis-server /etc/redis.conf
1
# 验证
[root@7bae56ca58a3 etc]# redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>
1
2
3
4
2
3
4