当前位置:网站首页>The database of the server cannot be connected [the service has been started, the firewall has been closed, the port has been opened, and the netlent port is not connected]
The database of the server cannot be connected [the service has been started, the firewall has been closed, the port has been opened, and the netlent port is not connected]
2022-06-29 21:53:00 【Hua Weiyun】
The database of the server is disconnected 【 Service started 、 Firewall OFF 、 The port is open 、netlent Port failure 】
First of all : This article aims at The service is up 、 The firewall is closed 、 The security group port is also open , stay docker Containers can be connected MySQL, however Navicat You can't even , meanwhile netlent IP port Also different ,Navicat An error is as follows :
If you are such a wonderful problem , You can look at the following solutions .
First, confirm the firewall status
systemctl status firewalld
No problem , It's closed .
Look at the port
netstat -antulp | grep XXXX
No problem ,docker mysql The port is in use ,docker mysql If it's closed , Port is not used
Confirm whether the port corresponding to the security group of your server is open
telnet IP port Test the connection
As a result, the connection failed , Don't worry , Then down
Carry out orders :cat /proc/sys/net/ipv4/ip_forward
Be careful , Here is 0, It is not right ,0 Express
ipv4 Forwarding is off
We need to change it to 1
Carry out orders echo 1 > /proc/sys/net/ipv4/ip_forward
So we'll
Open the ipv4 forward
Navicat Reconnection
OK, That's it , I don't know what caused ipv4 forward Shut down the
Probable cause :
After restarting the server, it was restored
Some processes may have modified the system settings
We put ipv4 Just open forwarding , because To deploy a container in the server, you need to open it ip Forwarding function
, Generally, we don't need to deal with it by ourselves , I don't know why I met , We can solve the problem by opening it .
Copyright notice :
Original Blogger : Cowherd Conan
Personal blog links :https://www.keafmd.top/
If it helps you , Thank you for clicking on the like support below !
[ ha-ha ][ Huai Quan ]
come on. !
Joint efforts !
Keafmd
边栏推荐
- 美国隧道法ASTM E84 表面阻燃测试
- Visual analysis and display effect of summer data
- leetcode:307. Area and retrieval - array modifiable
- Cloud native database query optimization - statistics and row count estimation
- Shell implementation of Memcache cache cache hit rate monitoring script
- Report delivery engineer
- Recommended books -- walking in the daytime and at night
- Hardware development notes (VIII): basic process of hardware development, making a USB to RS232 module (VII): creating a basic dip component (crystal oscillator) package and associating the principle
- DB queries the database, merges two unrelated tables, adds non-existent fields, and assigns default values
- Taro2.* applet configuration sharing wechat circle of friends
猜你喜欢
[cloud native] use of Nacos taskmanager task management
The solution to the "undefined symbol: \u cxa\throw\bad\array\new\u length, version qt\u 5" error reported by the Kirin system startup application
leetcode:370. Interval addition
What is a SYN Flood attack? How to protect?
Divide the bonus pool of 10million + million yuan, and empower developers in the 2022 shengteng AI innovation competition
Verilog realizes serial communication and sends it to the nixie tube
Viewing technological changes through Huawei Corps (V): smart Park
Layer 3 loop brought by route Summary - solution experiment
How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native vs traditional technology architecture
2022 openvino DevCon unveils secrets! Intel and many partners deepen the construction of developer ecology and release the innovation potential of AI industry
随机推荐
C. Where‘s the Bishop?
Résumé du projet de petite bibliothèque
Verilog implements DDS waveform generator module, which can realize adjustable frequency and phase, three waveforms
PostgreSQL每周新闻—6月22日
Layer 3 loop brought by route Summary - solution experiment
JD alliance API - universal chain transfer interface - Jingpin library interface - Interface Customization
R language plot visualization: plot visualization box graph and several box plots of multiple classification variables
Live broadcast preview | PostgreSQL kernel Interpretation Series Lecture 1: overview of PostgreSQL system
Is it safe to bind securities accounts to flush? Which securities firm can bind flush after opening an account
STM32 minimum system construction (schematic diagram)
How to use the DVD entry level in taro3.*
Golang operation etcd
yolov6训练自己的数据记录+yolov5对比测试
PostgreSQL Weekly News - 22 juin
企业实施MES系统的关键点详解
ASP. Net cross page submission (button control page redirection)
Numpy's research imitation 1
阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口
报表交付工程师
The explain function of the DALEX package of R language generates a machine learning model interpreter and predict for the specified classification prediction_ The parts function analyzes the contribu