Hot Article
- Centos7 closes and restarts the system firewall and opens firewall ports
- How IID server uses Xshell to connect to Linux (centos) server
- BT panel forgets the background login URL, and the solution to the security entrance verification failure
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- Error connecting to MySQL: Cant connect to MySQL server (10060)
- The php domain name points to ip, how to use the specified ip address to access a server in the url request domain name in curl mode
When connecting to the server via SSH, first check whether the firewall is enabled.
View firewall status:
systemctl status firewalld
Seeing the active (running) instruction has been opened
If not, turn on the firewall:
systemctl start firewalld
View all open ports in the firewall:
firewall-cmd --zone=public --list-ports
Open port, for example, I want to open port 8888:
firewall-cmd --zone=public --add-port=8888/tcp --permanent
If you need to close this port:
firewall-cmd --zone=public --remove-port=8888/tcp --permanent
Restart the firewall to make the configuration take effect:
firewall-cmd --reload
If you want to turn off the firewall:
systemctl stop firewalld
Set the startup firewall:
systemctl disable firewalld related topic
- IDGlobal teaches you how to set up root remote login in Ubuntu SSH
- ubuntu 20.04 newbie installation tutorial
- Expand the root directory space of the CentOS system, and expand the home directory space to the root directory
- How to restart the Redis service command
- linux how to change the user password (linux command to change the password)
- Several common server port numbers and corresponding services are organized