当前位置:网站首页>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 .
边栏推荐
- XML Configuration File
- Robot capture experiment demonstration video
- 聊聊如何利用p6spy进行sql监控
- Beaucoup de CTO ont été tués aujourd'hui parce qu'il n'a pas fait d'affaires
- Map的扩容机制
- (subplots usage) Matplotlib how to draw multiple subgraphs (axis field)
- Gan network thought
- Latest version of source insight
- Why should we rewrite hashcode when we rewrite the equals method?
- DEX net 2.0 for crawl detection
猜你喜欢

今天很多 CTO 都是被干掉的,因为他没有成就业务

Altaro o365 total backup subscription plan

Pan details of deep learning

Technical analysis of qianyuantong multi card aggregation router

"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)

Redis使用Lua脚本简介

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

(subplots usage) Matplotlib how to draw multiple subgraphs (axis field)

谷歌 | 蛋白序列的深度嵌入和比对

How do I migrate my altaro VM backup configuration to another machine?
随机推荐
Congratulations to musk and NADELLA on their election as academicians of the American Academy of engineering, and Zhang Hongjiang and Fang daining on their election as foreign academicians
Make your own dataset
Go practice - gorilla / handlers used by gorilla web Toolkit
Yolov5 model construction source code details | CSDN creation punch in
【无标题】
"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)
Mapbox tasting value cloud animation
Deploy crawl detection network using tensorrt (I)
大学校园IP网络广播-厂家基于校园局域网的大学校园IP广播方案设计指南
Go practice -- gorilla / websocket used by gorilla web Toolkit
Simpleitk learning notes
Progressive multi grasp detection using grasp path for rgbd images
How to install and configure altaro VM backup for VMware vSphere
Introduction to webrtc protocol -- an article to understand dtls, SRTP, srtcp
About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
How to use source insight
C language program ideas and several commonly used filters
【无标题】
Skip table: principle introduction, advantages and disadvantages of skiplist
Introduction to rust Foundation (basic type)