mac 安装redis5
安装
brew install redis
修改redis密码, 查找requirepass
vi /usr/local/etc/redis.conf
启动redis
brew services start redis
centos7 安装 redis 5
安装
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
tar xzf redis-5.0.5.tar.gz
cd redis-5.0.5
make
编译好后,可以移动到/usr/local/redis目录
mv ./redis-5.0.5 /usr/local/redis
修改redis密码, 查找requirepass
vi /usr/local/redis/redis.conf
设置为后台运行,把daemonize
设置为yes
daemonize yes
运行redis, 在/usr/local/redis
目录
src/redis-server redis.conf