当前位置:网站首页>Redis cannot connect remotely.
Redis cannot connect remotely.
2022-07-03 05:34:00 【youandme520】
CentOS9 Installed on redis, And successfully started , Unable to connect on the host .
Mainly parameter setting Incorrect .
First, install by default redis after Direct command start redis-server It's not true . It will call the default parameters to start redis.
We need to use it. redis.conf File to start
redis-server /etc/redis/redis.confThere are several reasons why you can't connect .
1. bind Parameters are not set correctly
redis bind The default parameter is 127.0.0.1 This way redis Bound to local and its The external device cannot be connected
We need to comment it out directly .
# bind 127.0.0.1
then modify redis The protection mode of is no, Is not enabled
protected-mode noFor the sake of safety You need to set the password
requirepass rootthen Can Remote access to
We try to connect on the client

Still unable to connect , Think about it Should be CentOS9 Firewall does not 6379 Ports open .
[[email protected] redis]# firewall-cmd --query-port=6379/tcp
noIt really didn't open after inspection
Then we open the port .
[[email protected] redis]# firewall-cmd --add-port=6379/tcp
success
[[email protected] redis]# firewall-cmd --query-port=6379/tcp
yesAfter opening the port, we are connecting with the client

Successful connection , solve the problem .
边栏推荐
- Overview of basic knowledge of C language
- redis 遇到 NOAUTH Authentication required
- Introduction to rust Foundation (basic type)
- Final review (Day6)
- 期末复习DAY8
- Obtenir et surveiller les journaux du serveur distant
- Apache+PHP+MySQL环境搭建超详细!!!
- Progressive multi grasp detection using grasp path for rgbd images
- Rust基础入门之(基本类型)
- Can altaro back up Microsoft teams?
猜你喜欢

Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in

中职网络子网划分例题解析

DEX net 2.0 for crawl detection

大学校园IP网络广播-厂家基于校园局域网的大学校园IP广播方案设计指南

Latest version of source insight

Apache+PHP+MySQL环境搭建超详细!!!

Mapbox tasting value cloud animation

Technical analysis of qianyuantong multi card aggregation router

About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller

Deep embedding and alignment of Google | protein sequences
随机推荐
Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services
Basic introduction of redis and explanation of eight types and transactions
2022.6.30DAY591
Go practice -- closures in golang (anonymous functions, closures)
(perfect solution) how to set the position of Matplotlib legend freely
How to set up altaro offsite server for replication
Gan network thought
Altaro virtual machine replication failed: "unsupported file type vmgs"
Make your own dataset
Progressive multi grasp detection using grasp path for rgbd images
乾元通多卡聚合路由器的技术解析
Introduction to rust Foundation (basic type)
BTC-密码学原理
Altaro o365 total backup subscription plan
Why should we rewrite hashcode when we rewrite the equals method?
Source insight operation manual installation trial
study hard and make progress every day
ES 2022 正式发布!有哪些新特性?
[basic grammar] Snake game written in C language
How to use source insight