国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

redis遠程連接

2019-11-08 02:18:30
字體:
來源:轉載
供稿:網友

本文轉自http://blog.csdn.net/baidu_36030459/article/details/55253092

redis開啟遠程訪問

redis默認只允許本地訪問,要使redis可以遠程訪問可以修改redis.conf 打開redis.conf文件在NETWORK部分有說明解決辦法:注釋掉bind 127.0.0.1可以使所有的ip訪問redis若是想指定多個ip訪問,但并不是全部的ip訪問,可以bind注意下面還有個說明在redis3.2之后,redis增加了PRotected-mode,在這個模式下,即使注釋掉了bind 127.0.0.1,再訪問redisd時候還是報錯,如下 
(error) 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.
 修改辦法:protected-mode no

所有的操作完以后必須重啟redis的那個配置文件。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 凤台县| 台州市| 霍城县| 萍乡市| 永胜县| 金沙县| 彩票| 鹤庆县| 双桥区| 武城县| 句容市| 临泽县| 宜良县| 濉溪县| 吐鲁番市| 两当县| 全椒县| 太谷县| 年辖:市辖区| 丁青县| 广饶县| 嘉义县| 通州市| 榕江县| 尉犁县| 虞城县| 札达县| 千阳县| 宝兴县| 枣强县| 秦皇岛市| 依安县| 安泽县| 葵青区| 金秀| 南乐县| 永清县| 阳东县| 榆社县| 绍兴市| 永福县|