当前位置:   article > 正文

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

redash安装与部署 windows

一、安装Redis服务

1、下载Redis压缩包

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

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

提取码:x0f1

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

2、解压到文件夹

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

3、修改redis.conf

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

  1. # Save the DB to disk.
  2. # save <seconds> <changes> [<seconds> <changes> ...]
  3. #
  4. # Redis will save the DB if the given number of seconds elapsed and it
  5. # surpassed the given number of write operations against the DB.
  6. #
  7. # Snapshotting can be completely disabled with a single empty string argument
  8. # as in following example:
  9. #
  10. # save ""
  11. #
  12. # Unless specified otherwise, by default Redis will save the DB:
  13. # * After 3600 seconds (an hour) if at least 1 change was performed
  14. # * After 300 seconds (5 minutes) if at least 100 changes were performed
  15. # * After 60 seconds if at least 10000 changes were performed
  16. #
  17. # You can set these explicitly by uncommenting the following line.
  18. #
  19. # save 3600 1 300 100 60 10000
  20. save ""
  21. port 6379
  22. requirepass '123456'
  23. maxmemory 256mb
  24. appendonly no
  25. maxmemory-policy allkeys-lru
  26. # Examples:
  27. #
  28. # bind 192.168.1.100 10.0.0.1 # listens on two specific IPv4 addresses
  29. # bind 127.0.0.1 ::1 # listens on loopback IPv4 and IPv6
  30. # bind * -::* # like the default, all available interfaces
  31. #
  32. # ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the
  33. # internet, binding to all the interfaces is dangerous and will expose the
  34. # instance to everybody on the internet. So by default we uncomment the
  35. # following bind directive, that will force Redis to listen only on the
  36. # IPv4 and IPv6 (if available) loopback interface addresses (this means Redis
  37. # will only be able to accept client connections from the same host that it is
  38. # running on).
  39. #
  40. # IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
  41. # COMMENT OUT THE FOLLOWING LINE.
  42. #
  43. # You will also need to set a password unless you explicitly disable protected
  44. # mode.
  45. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. bind 127.0.0.1
  47. # Redis supports recording timestamp annotations in the AOF to support restoring
  48. # the data from a specific point-in-time. However, using this capability changes
  49. # the AOF format in a way that may not be compatible with existing AOF parsers.
  50. #aof-timestamp-enabled no
  51. # Since version 5 of RDB a CRC64 checksum is placed at the end of the file.
  52. # This makes the format more resistant to corruption but there is a performance
  53. # hit to pay (around 10%) when saving and loading RDB files, so you can disable it
  54. # for maximum performances.
  55. #
  56. # RDB files created with checksum disabled have a checksum of zero that will
  57. # tell the loading code to skip the check.
  58. rdbchecksum no
  59. # By default protected mode is enabled. You should disable it only if
  60. # you are sure you want clients from other hosts to connect to Redis
  61. # even if no authentication is configured.
  62. protected-mode yes

4、启动Redis服务

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

redis-server --service-start

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

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

Redis常用的服务指令

  1. # 卸载服务
  2. redis-server --service-uninstall
  3. # 开启服务
  4. redis-server --service-start
  5. # 停止服务
  6. redis-server --service-stop

二、使用可视化工具

Redis Desktop Manager

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

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

提取码:qwqp

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

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

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

界面如下:

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/752210
推荐阅读
相关标签
  

闽ICP备14008679号