zoukankan      html  css  js  c++  java
  • Redis服务器开启远程访问


    Traceback (most recent call last): File
    "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/scrapy/crawler.py", line 82, in crawl yield self.engine.open_spider(self.spider, start_requests) redis.exceptions.ResponseError: DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions: 1) Just disable protected mode sending the command 'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then restarting the server. 3) If you started the server manually just for testing, restart it with the '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need to do one of the above things in order for the server to start accepting connections from the outside.

    远程连接,本来想把配置文件:

    bind:127.0.0.1 改成 bind:0.0.0.0就可以了

    结果发现不行,无法进行远程连接,报了上面的错误,百度翻译了一下发现,说有保护,然后把电脑的防火墙关闭了,还是不行,最后发现是配置文件里面还有一个保护

    然后重启一下redis就可以了

  • 相关阅读:
    Oracle-数据库的隔离级别测试
    Oracle Filter执行计划
    webug4.0靶场之文件包含
    webug4.0靶场之文件上传
    webug4.0靶场之越权查看admin
    webug4.0靶场之支付漏洞
    webug4.0靶场之越权修改密码
    webug4.0靶场通关之XSS
    webug4.0靶场通关之任意文件下载
    MSF学习之旅之信息收集工具使用
  • 原文地址:https://www.cnblogs.com/liangliangzz/p/10209396.html
Copyright © 2011-2022 走看看