做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁 - 科技 - 知識百科 - 正文

Redis3.2開啟遠(yuǎn)程訪問詳細(xì)步驟

來源:懂視網(wǎng) 責(zé)編:小OO 時間:2020-11-27 18:49:14
文檔

Redis3.2開啟遠(yuǎn)程訪問詳細(xì)步驟

redis默認(rèn)只允許本地訪問,要使redis可以遠(yuǎn)程訪問可以修改redis.conf。打開redis.conf文件在NETWORK部分有說明。################################## NETWORK ###################################### By default.if no ";bind";bind"。使redis可以遠(yuǎn)程訪問只要注釋掉redis.conf配置文件中的 bind 127.0.0.1 即可以使所有的ip訪問redis。若是想指定多個ip訪問,但并不是全部的ip訪問,可以bind多個IP。注意;
推薦度:
導(dǎo)讀redis默認(rèn)只允許本地訪問,要使redis可以遠(yuǎn)程訪問可以修改redis.conf。打開redis.conf文件在NETWORK部分有說明。################################## NETWORK ###################################### By default.if no ";bind";bind"。使redis可以遠(yuǎn)程訪問只要注釋掉redis.conf配置文件中的 bind 127.0.0.1 即可以使所有的ip訪問redis。若是想指定多個ip訪問,但并不是全部的ip訪問,可以bind多個IP。注意;

Redis是一個開源的使用ANSI C語言編寫、支持網(wǎng)絡(luò)、可基于內(nèi)存亦可持久化的日志型、Key-Value數(shù)據(jù)庫,并提供多種語言的API。Redis支持遠(yuǎn)程訪問,詳細(xì)步驟小編已為大家整理出來了,具體步驟如下:

redis默認(rèn)只允許本地訪問,要使redis可以遠(yuǎn)程訪問可以修改redis.conf
打開redis.conf文件在NETWORK部分有說明

################################## NETWORK #####################################
# By default, if no "bind" configuration directive is specified, Redis listens
# for connections from all the network interfaces available on the server.
# It is possible to listen to just one or multiple selected interfaces using 
# the "bind" configuration directive, followed by one or more IP addresses.
#
# Examples:
#
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
#
# ~~~ 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 into
# the IPv4 lookback interface address (this means Redis will be able to
# accept connections only from clients running into the same computer it
# is running).
#
# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES
# JUST COMMENT THE FOLLOWING LINE.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bind 127.0.0.1

使redis可以遠(yuǎn)程訪問只要注釋掉redis.conf配置文件中的 bind 127.0.0.1 即可以使所有的ip訪問redis

若是想指定多個ip訪問,但并不是全部的ip訪問,可以bind多個IP

注意

在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 yes為protected-mode no

保存配置文件重啟redis即可。

相關(guān)推薦:

PHP操作Redis實例講解

一個php+redis的簡單實例分享

ThinkPhP5框架中redis以及Redis的使用詳解

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

Redis3.2開啟遠(yuǎn)程訪問詳細(xì)步驟

redis默認(rèn)只允許本地訪問,要使redis可以遠(yuǎn)程訪問可以修改redis.conf。打開redis.conf文件在NETWORK部分有說明。################################## NETWORK ###################################### By default.if no ";bind";bind"。使redis可以遠(yuǎn)程訪問只要注釋掉redis.conf配置文件中的 bind 127.0.0.1 即可以使所有的ip訪問redis。若是想指定多個ip訪問,但并不是全部的ip訪問,可以bind多個IP。注意;
推薦度:
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 宜丰县| 水城县| 佛坪县| 肃南| 那坡县| 福鼎市| 桂东县| 常德市| 正安县| 辉南县| 鄂托克旗| 大宁县| 洛浦县| 晋宁县| 师宗县| 张家口市| 博野县| 佛山市| 金门县| 容城县| 绥宁县| 玛多县| 龙泉市| 简阳市| 蕉岭县| 五峰| 浦江县| 酒泉市| 阿克苏市| 宜章县| 青岛市| 通许县| 湄潭县| 陇川县| 札达县| 漳浦县| 兰溪市| 仪征市| 宝丰县| 安新县| 道孚县|