redis安装与配置(Linux) 1. 下载 2. 安装 3. 配置 4. 启动 5. 查看

 

去官网下载或使用链接下载:

wget http://download.redis.io/releases/redis-5.0.7.tar.gz

2. 安装

解压:

tar -xvf redis-5.0.7.tar.gz

安装:

cd redis-5.0.7

make && make install

3. 配置

修改配置:

vi redis.conf

daemonize yes

bind 10.168.4.78

4. 启动

redis-server redis.conf &

5. 查看

lsof -i:6379