CentOS 安装 Redis 5

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

上一篇:如何使用HTML5的WebSocket实现网页与服务器的双工通信(一)


下一篇:[Effective JavaScript 笔记]第55条:接收关键字参数的选项对象