国产探花免费观看_亚洲丰满少妇自慰呻吟_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的那個配置文件。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新营市| 莱阳市| 株洲县| 白河县| 平武县| 皮山县| 诸城市| 洞口县| 达日县| 健康| 峨山| 东港市| 衢州市| 五指山市| 邢台市| 邢台县| 山西省| 洪洞县| 牡丹江市| 宁海县| 洛扎县| 遂平县| 池州市| 石柱| 衡阳市| 蒲江县| 霍州市| 开封县| 九江市| 永顺县| 西平县| 南充市| 彭泽县| 克山县| 嘉善县| 上林县| 海伦市| 临邑县| 赫章县| 保亭| 乃东县|