当前位置:网站首页 > 资讯百科 > 科技知识 > 正文

centos系统防火墙怎么关闭?(centos关闭防火墙命令推荐)

小武-网站专员小武-网站专员 2022-05-07 12:32:57 190

centos关闭防火墙命令:

centos系统防火墙怎么关闭?(centos关闭防火墙命令推荐)

CentOS6关闭防火墙使用以下命令,

//临时关闭service iptables stop //禁止开机启动chkconfig iptables off

CentOS7中若使用同样的命令会报错,

stopiptables.service Failedtostopiptables.service: Unit iptables.service notloaded.

这是因为CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令,

//临时关闭 systemctl stop firewalld //禁止开机启动 systemctl disable firewalld Removed symlink/etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

当然,如果安装了iptables-service,也可以使用下面的命令,

yum install-y iptables-services //关闭防火墙 service iptables stopRedirecting to/bin/systemctl stopiptables.service //检查防火墙状态 service iptables statusRedirecting to/bin/systemctl statusiptables.service iptables.service - IPv4 firewall withiptables Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled) Active: inactive (dead)

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 3561739510@qq.com 举报,一经查实,本站将立刻删除。

转载请注明来自专注SEO技术,教程,推广 - 8848SEO,本文标题:《centos系统防火墙怎么关闭?(centos关闭防火墙命令推荐)》

标签:

关于我

关注微信送SEO教程

搜索
最新文章
热门文章
热门tag
抖音提升网站排名优化百度SEO优化网站优化提高网站排名SEO优化技巧抖音小店SEO优化seo优化网站SEO优化网站排名seo网站优化seo小红书关键词优化百度SEO排名SEO优化排名关键词排名搜索引擎优化
友情链接