1:下载好的软件上传到服务器
2:安装依赖
yum -y install gcc-c++
3:检查是否安装
redis server -v
4:开始安装
cd /opt
chmod 777 xxxx.tar.gz
tar-zxvf xxxx.tar.gz
cd redis7xxx
make
make install [PREFIX=use/local/application/redis]
cd use/local/bin
cp redis.conf /usr/local/application/redis/
vim /usr/local/application/redis/redis.conf
daemonize no -> yes
protected-mode yes -> no
bind 127.0.0.1 -::1 -> bind 0.0.0.0
requirepass 密码
5:启动
redis-server ./redis.conf
ps -ef | grep redis | grep -v grep
6: 测试连接
redis-cli -a 密码 [-p 6379]
ping
7:关闭服务
redis-server ./redis.conf 启动redis服务
redis-server stop 停止redis服务
redis-server restart ./redis.conf 重启redis服务