The firewall of Centos7 is changed to “iptables” and is no longer called “iptables”. The firewall of Centos7 is not called “iptables” anymore. The firewall of Centos7 is changed to “iptables”.
firewall-cmd --zone=public --add-port=80/tcp --permanent
1
Command meaning:
— zone # scope
— add-port=80/ TCP # Add port in format: port/communication protocol
— permanent # is permanent and will fail if restarted without this parameter
Restart firewall:
systemctl stop firewalld.service
systemctl start firewalld.service
Read More:
- The solution of centos7 in VMware virtual machine unable to access after installing nginx
- CentOS7 nginx Failed to read PID from file /run/nginx.pid: Invalid argument?
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- Solution to inaccessibility of Vue cli scaffold project after startup
- Solution to redis error in CentOS of idea connected virtual machine
- Centos7 installing Kafka
- [extremely simple and effective] installing docker under centos6. X
- Linux CentOS installing protobuf
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- Re installing Android studio always fails to install SDK when installing software (solution)
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- Firewall CMD command in CentOS 7
- Cannot find module ‘.. / lib / utils / unsupported. JS’ problem in installing node in centos7
- The most complete solution for service network restart failure under CENTOS 7
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- Error in installing MySQL devel for CentOS MySQL
- nginx: [error] invalid PID number ““ in “/data/nginx/logs/nginx.pid“
- Nginx start error: job for nginx.service failed because the control process exited with error code
- CentOS 8.1 solution to error in executing #systemctl restart network.service
- Error: command error out with exit status 1: Python when installing mysqlclient in centos7 setup.py egg_ info Check