tags: Operation and maintenance linux iptables
Firewall by firewall in CentOS 7 or RHEL 7 or Fedora is managed by firewalld
Add to
FireWall-cmd --zone = public --Add-port = 80 / tcp --Permanent (--Permanent is permanently effective, there is no failure after the parameter is restarted)
firewall-cmd --zone=public --add-port=1000-2000/tcp --permanent
Reload
firewall-cmd --reload
Check
firewall-cmd --zone=public --query-port=80/tcp
delete
firewall-cmd --zone=public --remove-port=80/tcp --permanent
Open firewall
systemctl start firewalld.service
View the running status
FireWall-cmd --state // running means running
View status:
systemctl status sshd.service
Start service:
systemctl start sshd.service
Restart the service:
systemctl restart sshd.service
Boot start:
systemctl enable sshd.service
Reference blog
Centos7 Failed to Start iptables.service: Unit Not Found Firewall
Pit when configuring fastDfs: restart firewall on CentOs7 or Reference blog: Difference between CentOs7 and CentOs6 The default firewall for centos7 is firewalld firewall, not using iptables, so you m...
Reference: How can i use iptables on centos 7? [closed]...
The restart service in the cloud server ECS Linux Centos 7 is no longer via the SystemCTL operation. The instructions are as follows: 1. Check if the SSHD service is started: It can be determined to b...
The following error message: (1) Close firewalld: systemctl stop firewalld systemctl mask firewalld (2) use the iptables service: 1. Installation iptables-services: yum install ipt...
Project scene: CentOS7 closes the firewall appearance: Failed to stop iptables.service: Unit iptables.service not loaded. Problem Description: CentOS7 executes: Service iptables stops appears when the...
When starting, shutting down and restarting docker This Redirecting to /bin/systemctl start docker.service appears. https://docs.docker.com/config/daemon/systemd/ Most Linux distributions usesystemctl...
After reloading MySQL, when restarting the service, how to solve the service that cannot be restarted? Figure: Remove this folder and restart the service again....
In CentOS 7 or Fedora or RHEL 7 firewall to manage the firewalld Add to Reload View delete ...
In order to build svn under the local server, install mysql in CentOS, use yum install mysql-server mysql mysql-devel to install mysql but the mysql service cannot be started Use service mysqld start ...
1. Error source When learning docker, when I add a mirror container, restart the docker service error 2. Reasons for errors One of the reasons is that the new version of CentOS has built -in container...