redis安装配置

cd /usr/local/src/
wget http://download.redis.io/releases/redis-3.2.2.tar.gz
tar xzf redis-3.2.2.tar.gz
cd redis-3.2.2
make
cd src
make install
  • 配置管理
mkdir -p /usr/local/redis/bin

mkdir -p /usr/local/redis/etc
  • 复制配置文件
cd /usr/local/src/redis-3.2.2
mv redis.conf /usr/local/redis/etc/
  • 复制命令文件
cd /usr/local/src/redis-3.2.2/src
cp mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-sentinel redis-server redis-trib.rb /usr/local/redis/bin/
  • 修改后台启动
vim /usr/local/redis/etc/redis.conf
将 daemonize no

改为daemonize yes
  • 启动
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis.conf
  • 安装redis的python api
pip install redis
    原文作者:_简_述_
    原文地址: https://www.jianshu.com/p/2c686e077253
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞