CentOS7与CentOS6.5防火墙的区别

总体思路是一致的,都是防火墙放行,把服务加入运行级配置文件。只是CentOS7中防火墙和运行级管理程序均发生彻底改变了。firewalld代替iptables,systemd代替SystemV init,所以需要重新熟悉相关命令。个人感觉新的程序更加人性化,操作也很容易。 配置文件也都采用了标准的xml格式,放弃了容易出错的老式配置文件。

Systemctl status firewalld     查询目前firewalld启动状态

Service firewalld stop             

Systemctl disable firewalld   从启动组删除

(/etc/init.d/firewalld start)   --启动命令

posted @ 2016-03-04 11:30  又是十年  Views(321)  Comments(0Edit  收藏  举报