Linux 常用操作

CentOS查看防火墙状态

1
firewall-cmd --state

停止firewall

1
systemctl stop firewalld.service1

禁止firewall开机启动

1
systemctl disable firewalld.service

重启网络服务

1
systemctl restart network

安装 netstat 命令

1
yum install net-tools