服务器:阿里云 centos 6 64位
[root@iZ112fail84Z ~]# wget http://download.redis.io/releases/redis-3.0.7.tar.gz
[root@iZ112fail84Z ~]#tar zxvf redis-3.0.7.tar.gz
[root@iZ112fail84Z ~]# ls
redis-3.0.7
[root@iZ112fail84Z ~]# cd redis-3.0.7
[root@iZ112fail84Z redis-3.0.7]# ls
00-RELEASENOTES COPYING Makefile redis.conf runtest-sentinel tests
BUGS deps MANIFESTO runtest sentinel.conf utils
CONTRIBUTING INSTALL README runtest-cluster src
[root@iZ112fail84Z redis-3.0.7]# make
执行之后出现很多,最后显示
Hint: It’s a good idea to run ‘make test’ ;)
make[1]: Leaving directory /root/redis-3.0.7/src'
//application/redis-3.0.7/src’
// 命令是 make install ,下边的cd src && make install是自动显示出来的
[root@iZ112fail84Z redis-3.0.7]# make install
cd src && make install
make[1]: Entering directory
Hint: It’s a good idea to run ‘make test’ ;)
INSTALL install INSTALL install INSTALL install INSTALL install INSTALL install
make[1]: Leaving directory `/application/redis-3.0.7/src’
ln -s /application/redis-3.0.7/src /redis
cd /application/src
mkdir config
cp redis.conf config/
cd config/
mv redis.conf redis-6381.conf
cat redis-6381.conf |grep -v "#" | grep -v "^$" > redis-6382.conf
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/articles/9248316.html