centos8下查看防火墙状态

  1. 安装dnf命令。
    • 1)运行命令:
    yum install epel-release -y
    
    • 2)运行命令:
    	yum install dnf -y
    
  2. 安装firewall。
 sudo dnf install firewalld
  1. 查看防火墙状态:
 sudo firewall-cmd --state
发布了15 篇原创文章 · 获赞 0 · 访问量 3480

猜你喜欢

转载自blog.csdn.net/XXX1238XGH/article/details/103805814