zoukankan      html  css  js  c++  java
  • windows系统上安装Redis,并且设置Redis密码

    一、Windows版本的Redis下载

    下载地址:https://github.com/MSOpenTech/redis/releases

    我下载的是最新版的3.2

    二、安装Redis

    我下载的是安装版本,一路Next,即可完成安装,并且安装完成后会自动设为Windows服务,这个很赞,以前都是dos窗口一直打开,分分钟逼死强迫症的节奏

    三、设置Redis密码

    打开redis.windows-service.conf文件,找到修改密码这一段

    ################################## SECURITY ###################################
    
    # Require clients to issue AUTH <PASSWORD> before processing any other
    # commands.  This might be useful in environments in which you do not trust
    # others with access to the host running redis-server.
    #
    # This should stay commented out for backward compatibility and because most
    # people do not need auth (e.g. they run their own servers).
    #
    # Warning: since Redis is pretty fast an outside user can try up to
    # 150k passwords per second against a good box. This means that you should
    # use a very strong password otherwise it will be very easy to break.
    #
    # requirepass foobared

    加上这么一行:

    requirepass 这里是你的密码

    重新启动Redis,密码生效

  • 相关阅读:
    济南空中课堂视频下载辅助脚本
    npm 修改仓库源
    Java后端实现登陆的方式
    java 新词汇
    数据库系统,设计、实现与管理(基础篇)阅读笔记
    java 面试01
    js rem 适配多端
    了解Java
    linux 查看内存使用情况
    linux 日志查看
  • 原文地址:https://www.cnblogs.com/modou/p/6381973.html
Copyright © 2011-2022 走看看