wget http://download.redis.io/releases/redis-3.2.11.tar.gz //下载redis tar zxvf redis-3.2.11.tar.gz //解压 cd redis-3.2.11 make make test cp redis.conf /etc/ cd /src/ cp redis-server /usr/bin/ cp redis-cli /use/bin/ cd ../ vim /etc/redis.conf redis-server /etc/redis.conf
*报错1:gcc:命令未找到 yum install gcc-c++ *报错2:You need tcl 8.5 or newer in order to run the Redis test wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz sudo tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/ cd /usr/local/tcl8.6.1/unix/ sudo ./configure sudo make sudo make install *报错3:致命错误:jemalloc/jemalloc.h:没有那个文件或目录 make MALLOC=libc