Purpose: 1. In order to map the server's external network through Alibaba Cloud Server, it is necessary to add security group port external network access in Alibaba Cloud Server 2. Solution to the problem that the port cannot be accessed after adding the security group port Prerequisites: Troubleshooting plan (if there is a new troubleshooting direction, it will be added later): 1. If telnet is not working, consider whether it is a server firewall problem 1) Check all information to see if the added port exists (Note: the port after ports is the corresponding open port) # firewall-cmd --list-all #Note the permission issue public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services:dhcpv6-client ports: 1130/tcp 80/tcp 10051/tcp 5672/tcp 2) If not, add it, for example, add port 18002 #firewall-cmd --zone=public --add-port=18002/tcp --permanent illustrate: Other operations: To add multiple ports: firewall-cmd --zone=public --add-port=80-90/tcp --permanent #Delete firewall-cmd --zone=public --remove-port=80/tcp --permanent 3) Restart the firewall #firewall-cmd --reload 4) Check again whether the port is open (if it is open, the problem is solved perfectly) # firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services:dhcpv6-client ports: 1130/tcp 80/tcp 10051/tcp 18002/tcp 7660/tcp Protocols: masquerade: yes Some basic firewall commands: 1: Check the fire protection status systemctl status firewalld service iptables status 2: Temporarily turn off the firewall systemctl stop firewalld service iptables stop 3: Permanently turn off the firewall systemctl disable firewalld chkconfig iptables off 4: Restart the firewall systemctl enable firewalld service iptables restart 5: Start the firewall sudo systemctl start firewalld This is the end of this article about the security group port added by Alibaba Cloud and the troubleshooting of the inaccessible problem after adding it. For more information about the security group port added by Alibaba Cloud, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Summary of vue's webpack -v error solution
>>: Summary of MySql storage engine and index related knowledge
Because a certain function of my project requires...
Preface This article will focus on the use of Typ...
Table of contents Preface text 1. Panel 2. Huaron...
Ubuntu does not allow root login by default, so t...
The main text page of TW used to have a width of 8...
Connecting to MySQL Here I use navicat to connect...
This article example shares the specific code of ...
Table of contents introduce Installation and Usag...
Before understanding this problem, let's firs...
1. Preparation 1.1 harbor download harbor downloa...
Since the entire application needs to be deployed...
1. es startup command: docker run -itd -e TAKE_FI...
Install pymysql pip install pymysql 2|0Using pymy...
In the actual project development process, the pag...
Table of contents Preface 1. 404 Page 1. Causes 2...