• Redis安装教程


    1. Linux下Redis安装教程

    (1)安装

    #tar xf  redis-2.6.14.tar.gz
    #cd redis-2.6.14
    #make
    #make install

    (2)配置

    
    修改redis.conf配置文件
    #cp redis.conf /etc/
    #vi /etc/redis.conf
    #以守护进程方式运行
    daemonize no改为 daemonize yes 
    #修改dir ./为绝对路径,
    ./ redis  #改为/usr/local/
    #修改appendonly为yes
    #指定是否在每次更新操作后进行日志记录,
    appendonly no  改为 appendonly yes

    (3)启动

    #/usr/local/bin/redis-server /etc/redis.conf
    查看redis是否己启动 
    #ps -ef | grep redis
    #netstat -tnlp |grep redis
    1.4 将redis添加到自启动中
    #echo "/usr/local/bin/redis-server /etc/redis.conf" >> /etc/rc.local

    2. Windows下Redis安装教程

    (1)安装

    unzip redis-2.0.0.zip

    (2)配置

    网上下载一个redis.conf,解压到同级目录

    (3)启动

    redis-server.exe redis.conf

    (4)windows版redis为非官方正式版,仅可作为开发调试使用,建议在Linux系统上安装Redis

  • 相关阅读:
    ansible管理windows实践
    SQL server 备份/恢复/压缩 进度查询
    什么是容器
    pycharm 快捷键
    SUSE Linux--zypper程序包管理(实战命令总结)
    源码编译安装
    CentOS-yum基本使用
    rpm管理
    btrfs的精简总结版
    btrfs的介绍与使用
  • 原文地址:https://www.cnblogs.com/yeahwell/p/redis-install.html
Copyright © 2020-2023  润新知