当前位置: 首页 > article >正文

Redis的安装和部署教程(Windows环境)

一、安装Redis服务

1、下载Redis压缩包

以下这个是我网盘里面的(这个是v8.0版本的,支持导入.rdb数据文件

链接:百度网盘 请输入提取码

提取码:x0f1

--来自百度网盘超级会员V5的分享

2、解压到文件夹

将下载的压缩包解压到指定的文件夹中,如:D:\redis,内容如下:

3、修改redis.conf

把以下内容直接全部替换掉redis.conf里面的内容,注意是全部覆盖掉,如自己知道怎么修改配置文件的请自便,嘻嘻嘻~~~

# Save the DB to disk.
# save <seconds> <changes> [<seconds> <changes> ...]
#
# Redis will save the DB if the given number of seconds elapsed and it
# surpassed the given number of write operations against the DB.
#
# Snapshotting can be completely disabled with a single empty string argument
# as in following example:
#
# save ""
#
# Unless specified otherwise, by default Redis will save the DB:
#   * After 3600 seconds (an hour) if at least 1 change was performed
#   * After 300 seconds (5 minutes) if at least 100 changes were performed
#   * After 60 seconds if at least 10000 changes were performed
#
# You can set these explicitly by uncommenting the following line.
#
# save 3600 1 300 100 60 10000

save ""
port 6379 
requirepass '123456' 
maxmemory 256mb
appendonly no
maxmemory-policy allkeys-lru

# Examples:
#
# bind 192.168.1.100 10.0.0.1     # listens on two specific IPv4 addresses
# bind 127.0.0.1 ::1              # listens on loopback IPv4 and IPv6
# bind * -::*                     # like the default, all available interfaces
#
# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the
# internet, binding to all the interfaces is dangerous and will expose the
# instance to everybody on the internet. So by default we uncomment the
# following bind directive, that will force Redis to listen only on the
# IPv4 and IPv6 (if available) loopback interface addresses (this means Redis
# will only be able to accept client connections from the same host that it is
# running on).
#
# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
# COMMENT OUT THE FOLLOWING LINE.
#
# You will also need to set a password unless you explicitly disable protected
# mode.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

bind 127.0.0.1

# Redis supports recording timestamp annotations in the AOF to support restoring
# the data from a specific point-in-time. However, using this capability changes
# the AOF format in a way that may not be compatible with existing AOF parsers.
#aof-timestamp-enabled no

# Since version 5 of RDB a CRC64 checksum is placed at the end of the file.
# This makes the format more resistant to corruption but there is a performance
# hit to pay (around 10%) when saving and loading RDB files, so you can disable it
# for maximum performances.
#
# RDB files created with checksum disabled have a checksum of zero that will
# tell the loading code to skip the check.

rdbchecksum no

# By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured.

protected-mode yes

4、启动Redis服务

Redis的安装目录下打开cmd窗口,然后执行命令来启动服务:

redis-server --service-start

出现以上提示则表示启动成功~嘻嘻嘻~

为了方便,建议把Redis路径配置到系统变量Path值中,这样就省得再输路径了。

Redis常用的服务指令

# 卸载服务
redis-server --service-uninstall
 
# 开启服务
redis-server --service-start

# 停止服务
redis-server --service-stop 

二、使用可视化工具

Redis Desktop Manager

需要安装使用,0.9.4以上是要收费的

链接:百度网盘 请输入提取码

提取码:qwqp

--来自百度网盘超级会员V5的分享

把安装包下载下来,改一下安装路径,然后不断下一步即可

无需任何配置直接连接-》

界面如下:

这样就可以可视化操作Redis数据库了~~


http://www.kler.cn/a/274327.html

相关文章:

  • 探索 Seaborn Palette 的奥秘:为数据可视化增色添彩
  • Activiti开启流程实例
  • iClient3D for Cesium 实现限高分析
  • 【优选算法---归并排序衍生题目】剑指offer51---数组中的逆序对、计算右侧小于当前元素的个数、翻转对
  • 代码随想录day23 | leetcode 39.组合总和 40.组合总和II 131.分割回文串
  • 学工管理系统-职校信息化管理平台
  • 全球变暖(蓝桥杯,acwing每日一题)
  • 【DL经典回顾】激活函数大汇总(二十五)(GEGLU附代码和详细公式)
  • 金蝶云星空——插件dll重新发布报错:鏃犳硶鏄剧ず椤甸潰锛屽洜涓哄彂鐢熷唴閮ㄦ湇鍔″櫒閿欒銆�
  • tesseract ocr 安装/调用/训练
  • 使用Java JDBC连接数据库
  • c语言指针(二)
  • 概率统计在AI中的作用
  • Java项目利用Redisson实现真正生产可用高并发秒杀功能 支持分布式高并发秒杀
  • 在线教育平台帮助教培机构打造线上
  • 代码随想录算法训练营第二十八天 | 93.复原IP地址 78.子集 90.子集II
  • IText5填充PDF表单使用自定义字体中文生效而英文和数字不生效?
  • Lua中文语言编程源码-第五节,更改lcorolib.c协程库函数, 使Lua加载中文库关键词(与所有的基础库相关)
  • 构建Helm chart和chart使用管道与函数简介
  • (008)Unity StateMachineBehaviour的坑
  • 自动驾驶决策 - 规划 - 控制 (持续更新!!!)
  • 移除元素(leetcode)
  • 人外周血单核细胞来源树突状细胞(MoDC)的制备(一)
  • 下拉树级带搜索功能
  • 分布式锁的详细解释
  • Linux Shell中的循环控制语句