1. Check the firewall status Check the firewall status systemctl status firewalld Start the firewall systemctl start firewalld Disable the firewall systemctl stop firewalld Start the firewall service firewalld start If you cannot open First use: systemctl unmask firewalld.service Then: systemctl start firewalld.service 2. Check the status of open ports Query the open ports netstat -ntulp | grep port number: You can check a specific port number Check whether the specified port is open firewall-cmd --query-port=666/tcp If the prompt is yes, it means it is enabled; if the prompt is no, it means it is not enabled. 3. External development port Check whether the port you want to open is open: firewall-cmd --query-port=6379/tcp Add the specified port to be opened: firewall-cmd --add-port=123/tcp --permanent Reload the added port: firewall-cmd --reload Check whether the specified port is opened successfully: firewall-cmd --query-port=123/tcp Remove the specified port: firewall-cmd --permanent --remove-port=123/tcp Summarize The above is my introduction to checking the firewall status and the status of open ports in Linux. I hope it will be helpful to you! You may also be interested in:
|
<<: Detailed explanation of MySQL cursor concepts and usage
>>: Node.js uses express-fileupload middleware to upload files
1. Introduction to MySQL permissions There are 4 ...
Because of network isolation, MySQL cannot be ins...
Preface The effect problems used in personal actu...
Preface This article uses pdo's preprocessing...
VMWare (Virtual Machine ware) is a "virtual ...
This article example shares the specific code of ...
MySQL Query Cache is on by default. To some exten...
Introducing Server-U software Server-U is a very ...
Preface I believe that everyone has had experienc...
Preface The delay of MySQL master-slave replicati...
This article shares the specific code of react+an...
Things to note 1. First, you need to create a my....
Page layout has always been my concern since I st...
1. Use CSS to draw a small pointed-corner chat di...
This article uses an example to describe the simp...