当前位置:网站首页>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 2, the concept of statistical analysis
- How do consumer goods enterprises formulate membership interests?
- Common problems and Thoughts on member operation management
- NFS共享存储服务安装
- 介紹一下實現建模中可能用到的時間序列預測之線性二次移動平均,Excel的簡單操作
- Member system + enterprise wechat + applet to help the efficient transformation of private domain
- 杜比全景音效简介
- Wangeditor uploading local video modification
- Build document editor based on slate
- HUST network attack and defense practice | 6_ IOT device firmware security experiment | Experiment 2 MPU based IOT device attack mitigation technology
猜你喜欢

leetcode 715. Range 模块 (hard)

深度理解STM32的串口實驗(寄存器)【保姆級教程】

flannel的host-gw与calico

TCP interview

【Redis 系列】redis 学习十六,redis 字典(map) 及其核心编码结构

FastRCNN

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

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

How to calculate flops and params in deep learning

How to prevent weight loss under Gao Bingfa?
随机推荐
菜鸟实战UML——活动图
Please advise tonghuashun which securities firm to choose for opening an account? Is it safe to open a mobile account?
Machine learning SVM - Experimental Report
Consumer goods enterprises, four pain points of member marketing
Refined operation, extending the full life cycle value LTV
Change calico network mode to host GW
Ctrip ticket app KMM cross end kV repository mmkv kotlin | open source
女性科学家的流失
证券账户可以开通 开户安全吗
UDP协议详解[通俗易懂]
高并发下如何防重?
Random numbers in leetcode 710 blacklist [random numbers] the leetcode path of heroding
Dynamic programming to solve stock problems (Part 2)
Apiccloud implements the document download and preview functions
AD - 将修改后的 PCB 封装更新到当前 PCB 中
Pre knowledge of hash table -- binary search tree
Laravel admin hidden button, and set button display, default sequence, form form form non modifiable value
10 years' experience in programmer career - for you who are confused
HUST network attack and defense practice | 6_ IOT device firmware security experiment | Experiment 3 freertos-mpu protection bypass
请指教同花顺开户选选择哪家券商比较好?手机开户安全么?