putty进入服务器安装redis
redis安装步骤:
1.第一步 :进入putty后直接输入命令直接在线下载最新稳定版本
wget http://download.redis.io/redis-stable.tar.gz
ps: enter键之后遇到了这个问题:
2.第二步:redis解压缩
tar xzf redis-stable.tar.gz
3.第三步:到redis路径下
cd redis-stable
4.第四步:安装
make
遇到的问题:1. make: cc: Command not found make
解决方法:yum install gcc
如果出现 Is this ok [y/d/N],直接输入y(意思:y-yes,n-no,d-只下载,不安装)
2.jemalloc/jemalloc.h: No such file or directory
解决方法:make添加参数 输入命令: make MALLOC=libc
(ps:这个问题我没遇到,但是参考的他人博客,
如果输入 make test出现下列错误:
You need tcl 8.5 or newer in order to run the Redis test
解决方法:yum install tcl
)
我进行测试下,输入./src/redis-server,出现了这个,表示成功了。
博主小白,第一次写,自己研究安装时出现的问题。