linux系统: centOS 防火墙设置
查看防火墙
firewall-cmd --state
停止防火墙
systemctl stop firewalld.service
禁止开机启动
systemctl disable firewalld.service
如果想增加对外开放的端口,就需要通过防火墙的管理命令firewalld-cmd,例如我想开放80端口,那么命令就是:
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
A little hug, little gift.
All of little something.
these are our meories.