当前位置:网站首页>Redis cannot connect to the server through port 6379
Redis cannot connect to the server through port 6379
2022-06-26 11:56:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
I saw a lot of solutions on the Internet , It's all about ports , take 127.0.0.1 Change it to 0.0.0.0, Just ok 了 , But my problem is not the port problem , The port itself is 0.0.0.0. Actually redis There are only a few possibilities that you can't connect to the database , A firewall , Security group , password , binding IP. This time the problem is still puzzling , You can change the port number , Default port 6379 Just not .
Check the firewall in order , Security group , password , The configuration file , After confirming that there is no problem , Start again redis, The server is still accessible , Local telnet Can't connect . This problem is much like firewall and binding IP Why .
So I checked again firewall A firewall (firewall-cmd –state) and iptables(service iptables status) A firewall , The first thing I see is firewall The firewall is not running
, Check again iptables The state of the firewall
The meaning of this sentence is , Can't find iptables, That is because of the system version , Already by firewall The firewall took over . That's natural It is no longer considered because of the firewall , Result in unable to connect to the server . But this is where the egg hurts , When using iptables -L -n View the set iptables The rules , It has security group rules , My mind is in a mess .
The port numbers in the above result display range can only be accessed locally ,6379 Naturally, it can not be accessed . It's easy to know why , Use it directly
iptables -FMake these rules clear , Again using
iptables -L -nsee , There are no rules , Use telnet Test server port number , It can also be connected normally . The most incomprehensible part of this is why iptables Firewall does not exist , There are still its rules .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/133957.html Link to the original text :https://javaforall.cn
边栏推荐
- 高并发下如何防重?
- Statistical genetics: Chapter 1, basic concepts of genome
- 2021 q3-q4 investigation report on the use status of kotlin multiplatform
- 统计遗传学:第二章,统计分析概念
- 18:第三章:开发通行证服务:1:短信登录&注册流程,简介;(这儿使用短信验证码)
- 动态规划解决股票问题(下)
- DD command tests the read and write speed of Huawei Kunpeng & Hongshan solid state storage disk
- 【Redis 系列】redis 学习十六,redis 字典(map) 及其核心编码结构
- 证券账户一般需要在哪里开通 开户安全吗
- The best CMDB system
猜你喜欢

2、 MySQL Foundation
![[probability theory] conditional probability, Bayesian formula, correlation coefficient, central limit theorem, parameter estimation, hypothesis test](/img/2f/f44381ea759f4c1c957a8f9434f0ee.png)
[probability theory] conditional probability, Bayesian formula, correlation coefficient, central limit theorem, parameter estimation, hypothesis test

10 years' experience in programmer career - for you who are confused

Omnichannel membership - tmall membership 1: opening tutorial

2021 q3-q4 investigation report on the use status of kotlin multiplatform

Ctfshow web getting started command execution web75-77

Solidworks渲染技巧如何不显示边线--显示样式设定

Flannel's host GW and calico

Apiccloud implements the document download and preview functions
![In depth understanding of STM32 serial port experiment (register) [nanny level tutorial]](/img/b2/f09e220918a85b14a1993aa85f7720.png)
In depth understanding of STM32 serial port experiment (register) [nanny level tutorial]
随机推荐
深度理解STM32的串口实验(寄存器)【保姆级教程】
PC qq Hall upload Update Modifying versioninfo
. Net, the usage of log components NLog, seriallog, log4net
高并发下如何防重?
哈希表的前置知识---二叉搜索树
Consumer goods enterprises, four pain points of member marketing
Cross platform members get through the two channels of brand Ren Du
C language -- operators and expressions
Laravel admin uses native JS to realize sound prompt and automatic playback
AD - 将修改后的 PCB 封装更新到当前 PCB 中
UDP协议详解[通俗易懂]
This paper introduces the simple operation of realizing linear quadratic moving average of time series prediction that may be used in modeling and excel
Loggie encoding and newline character test
中国十大证券app排名 开户安全吗
[graduation season · advanced technology Er] I remember the year after graduation
Vulnerability scanning and reverse osmosis of Internet anti artifact
开通证券账户需要注意事项 开户安全吗
Refined operation, extending the full life cycle value LTV
汇编语言(7)运算指令
利用 Repository 中的方法解决实际问题