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
Table of contents Preface Rolling principle accom...
Table of contents 1. v-text text rendering instru...
If we want to make a carousel, we must first unde...
Preface After MySQL version 3.23.44, InnoDB engin...
Result: html <canvas id="starfield"&...
<br />The most common mistake made by many w...
Introduction When writing SQL today, I encountere...
Table of contents introduction Indexing principle...
Table of contents Environmental Description Insta...
Problem Description When we are working on a proj...
1. Download the 64-bit zip file from the official...
1. Prepare in Advance For your convenience, I cre...
Database migration is a problem we often encounte...
Table of contents frame First-class error reporti...
The problem is as follows: I entered the command ...