对于centos系统:
如果小于6.5的版本:
$>sudo service firewall stop(start/status)
如果是7.0的版本:
$>sudo systemctl enable firewall.service
$>sudo systemctl stop firewall.service
$>sudo systemctl start firewall.service
$>sudo systemctl disable firewall.service
$>sudo systemctl status firewall.service
本文介绍了如何在不同版本的CentOS系统中进行防火墙的基本操作,包括启动、停止及状态查询等。针对CentOS 6.5及以下版本使用service命令,而7.0及以上版本则采用systemctl命令。
966

被折叠的 条评论
为什么被折叠?



