未识别的命令 firewall-cmd
可能是没有安装firewall。安装命令:
1.yum install firewalld
firewalld的基本使用
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用 : systemctl disable firewalld
开机启用 : systemctl enable firewalld
查看开放的端口:firewall-cmd --list-ports
————————————————
原文链接:https://blog.csdn.net/qq_27751535/article/details/89633138