1、安装依赖的包
yum -y install jemalloc gcc
2、解压redis的安装文件
tar xf redis-3.2.8.tar.gz
3、进入redis-3.2.8目录
cd redis-3.2.8
4、安装
make && make install
redis的安装文件目录
PREFIX : /usr/local
BINDIR : /usr/local/bin
DATADIR : /usr/local/share
INCLUDEDIR : /usr/local/include
LIBDIR : /usr/local/lib
MANDIR : /usr/local/share/man
5、安装redis服务
./utils/install_server.sh
服务的配置
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
Copied /tmp/6379.conf => /etc/init.d/redis_6379