Redis源码安装

Redis源码安装

1、下载源码包

http://download.redis.io/releases/

2、安装

# 查看是否有安装gcc
gcc --version

# 安装gcc
yum -y install gcc automake autoconf libtool make

# 解压redis
tar zxvf redis-6.2.6.tar-2.gz

# 编译、安装redis
cd redis-6.2.6
make && make install

# 配置redis.conf
# 修改 daemonize=yes
# 修改密码 requirepass
# 修改端口 port
# 修改IP bind

# 后台启动
redis-server /XXX/redis.conf
posted @ 2023-02-01 14:02  啊发包  阅读(143)  评论(0)    收藏  举报