当前位置:网站首页>Troubleshooting of service port failure
Troubleshooting of service port failure
2022-06-12 20:30:00 【lihongbao80】
Solutions
1、 Use netstat -nplt View on port tcp, still tcp6
2、 Check to see if it is only bound to ipv6 On sysctl net.ipv6.bindv6only
3、 see ipv4 Data can be forwarded on :sysctl net.ipv4.ip_forward
4、 Check whether the firewall disables ports
One 、 Check the port
[[email protected] ~]# netstat -tnlp |grep 80
tcp 0 0 192.168.180.45:2379 0.0.0.0:* LISTEN 17092/etcd
tcp 0 0 192.168.180.45:2380 0.0.0.0:* LISTEN 17092/etcd
tcp6 0 0 :::20080 :::* LISTEN 11937/docker-proxy
tcp6 0 0 :::1080 :::* LISTEN 13449/docker-proxy
It can be seen that 20080 Ports only appear in tcp6 On .
Two 、 see ipv6
[[email protected] ~]# sysctl net.ipv6.bindv6only
net.ipv6.bindv6only = 0
0 It means that it is not only bound to ipv6 On
If you want to solve it :
vim /etc/sysctl.conf
# Add the following line
net.ipv6.bindv6only=1
# Then save to exit . Restart the network
systemctl restart network
3、 ... and 、 see ipv4 Forwarding status
[[email protected] ~]# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
1 Indicates that you can forward , in other words tcp6 The data on the can also pass tcp forward
If it is 0, solve
vi /etc/sysctl.conf
# Add the following line
net.ipv4.ip_forward=1
# Then save to exit . Restart the network
5. Reload sysctl Configure or restart the network
sysctl -p
#or
systemctl restart network
Four 、 A firewall
firewall-cmd --zone=public --add-port=20080/tcp --permanent # allow tcp Of 3306 Port to public Area .
reference :
centos7 A firewall (firewalld、iptables)
边栏推荐
- Detailed explanation of SQL exists usage
- Overview of object detection
- 代理与反射
- Microsoft Word tutorial, how to insert a header or footer in word?
- MySQL log
- Halcon angle and radian interchange
- Go memory escape analysis
- What is a federated index?
- Operating instructions for installing mysql5.7 in centos7
- EDI 855 purchase order confirmation
猜你喜欢

EditText控制从左上角开始

解决cvxpy报错The solver GLPK_MI is not installed

How to make a computer installation and startup USB flash disk

Axure RP 9 for MAC (interactive product prototyping tool) Chinese version

Lightroom Ambassador series: capturing nostalgia with MEG loeks

半路自学测试成功转行,第一份测试工作就拿10k

Wall Street cheat sheet

7 R read / write data

Compilation of programs

Event distribution mechanism of view
随机推荐
How can CTCM in the inspection lot system status of SAP QM be eliminated?
Low code enables rural construction to open "smart mode"
Operating instructions for installing mysql5.7 in centos7
20 shortcut keys for vs code!
Deploy etcd cluster in static pod mode
Restful API interface specification
Maximize tensorflow* CPU performance (shell)
Parameter meaning of random forest randomforestclassifier in sklearn
How to determine the sample size of an inspection lot in SAP QM's initial sampling strategy?
What is disk IO?
Why can't fields with high duplicate values be indexed (such as gender fields)
Detect current system language
可测性设计学习笔记
Since using low code development, the development efficiency has been increased by 10 times
golang类型断言理解[go语言圣经]
P5076 [deep base 16. Example 7] common binary tree (simplified version)
SAP QM preliminary - cannot assign a sampling policy to an inspection characteristic when maintaining an inspection plan by executing transaction code qp02?
How mysterious is "PIP not an internal or external command, nor a runnable program or batch file"
Generate API documents using swagger (go language example)
4 R basic exercises