網(wǎng)站首頁 編程語言 正文
鏈接服務(wù)器的Redis(由于遠(yuǎn)程連接不上,使用服務(wù)器連接,也連接不上產(chǎn)生)
Unable to connect to remote host: Connection refused
連接不上,有可能是服務(wù)沒有對外開放。
1. 修改redis配置:redis.conf.
路徑:C:\develop\Redis-x64-5.0.14\redis.windows.conf
步驟一:注釋掉redis.window.conf文件中的bind屬性設(shè)置
步驟二:把protected-mode屬性設(shè)置no
2. 修改密碼
修改redis.windows.conf配置文件
指定密碼123
# requirepass foobared
requirepass 123
3、重啟redis
redis-server.exe redis.windows.conf
?
原文鏈接:https://blog.csdn.net/qq_39997939/article/details/122790134
相關(guān)推薦
- 2022-06-20 正則表達(dá)式之字符串模式匹配實例詳解_正則表達(dá)式
- 2022-06-10 Flutter實現(xiàn)心動的動畫特效_Android
- 2022-04-10 elasticsearch + spring boot 配置
- 2022-07-30 SpringBoot的數(shù)據(jù)校驗(@Validated注解)、關(guān)于validation無法導(dǎo)入的問題解
- 2021-11-15 Linux網(wǎng)絡(luò)設(shè)置之基礎(chǔ)操作命令詳解_Linux
- 2022-02-11 為了兼容IE,配置Babel+Webpack
- 2023-02-01 Python?asyncore?socket客戶端開發(fā)基本使用教程_python
- 2022-09-09 python中.format()方法使用詳解_python
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡單動態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支