安装gcc
yum -y install gcc automake autoconf libtool make
或者执行
yum install cpp
yum install binutils
yum install glibc
yum install glibc-kernheaders
yum install glibc-common
yum install glibc-devel
yum install gcc
yum install make
注意:运行yum时出现/var/run/yum.pid已被锁定,PID为xxxx的另一个程序正在运行的问题解决
rm -f /var/run/yum.pid
1.解压
tar -zxvf redis文件
2.编译及安装
make
make PREFIX=/usr/local/redis install
3.
cp redis-server redis-cli /usr/local/redis
cp redis.conf /usr/local/redis
4. 修改redis.conf 以后台方式启动
5. 启动
./redis-server redis.conf
7.出现问题
make distclean 清空上次编译失败残留文件