CentOS 安裝 Redis 5

https://redis.io/download下載最新stable版,當前最新版爲redis-5.0.3.tar.gzredis

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/srcui

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 startspa

 

redis服務啓動文件:cat /etc/rc.d/init.d/redisserver

編輯redis配置文件:vi /etc/redis/6379.conf
1. daemonize yes
2. 修改requirepass


ip

相關文章
相關標籤/搜索