https://redis.io/download下载最新stable版,当前最新版为redis-5.0.3.tar.gz
cd /usr/local/src && wget http://download.redis.io/releases/redis-5.0.3.tar.gz && tar zxvf redis-5.0.3.tar.gz && cd redis-5.0.3/src
make && make install
./redis-server /usr/local/src/redis-5.0.3/redis.conf
ps -aux | grep redis
kill -9 18714
mkdir /etc/redis
cp /usr/local/src/redis-5.0.3/redis.conf /etc/redis/6379.conf
cp /usr/local/src/redis-5.0.3/utils/redis_init_script /etc/init.d/redis
chkconfig redis on
service redis start
redis服务启动文件:cat /etc/rc.d/init.d/redis
编辑redis配置文件:vi /etc/redis/6379.conf
1. daemonize yes
2. 修改requirepass