1.下载redis
wget http://download.redis.io/releases/redis-5.0.7.tar.gz
2.解压缩
tar -zvxf redis-5.0.7.tar.gz
3.安装gcc依赖
yum install -y gcc tcl
4.编译安装
cd redis-5.0.7
make && make install
默认会安装在/usr/local/bin
5.修改密码
vi redis.conf
找到requirepass,去掉注释,修改密码
5.启动
redis-server& ./home/ec2-user/redis-4.0.8/redis.conf
6.查看运行
ps -ef|grep redis
7.关闭
redis-cli
shutdown
quit