systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。

1、关闭firewall

systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
firewall-cmd --state

2、关闭iptables

yum install iptables-services
systemctl status iptables.service
systemctl stop iptables.service
systemctl disable iptables.service
cd /etc/sysconfig
mv /etc/sysconfig/iptables  /etc/sysconfig/iptables.bak
mv /etc/sysconfig/iptables-config /etc/sysconfig/iptables-config.bak
touch /etc/sysconfig/iptables
touch /etc/sysconfig/iptables-config
reboot

转载于:https://www.cnblogs.com/ctypyb2002/p/9793027.html

centos 7 关闭 firewall、iptables相关推荐

  1. linux 关闭防火墙firewall,centos中关闭防火墙(firewall)及SELinux

    centos在不断的版本更新迭代过程中,在centos7中默认使用的是firewall作为防火墙. centos7关闭firewall 查看运行状态:firewall-cmd --state 临时停止 ...

  2. mysql查看防火墙状态命令,centos 7中firewall防火墙的常用命令总结

    前言 在CentOS7.0中默认使用firewall代替了iptables service.虽然继续保留了iptables命令,但已经仅是名称相同而已. firewall是centos7的一大特性,最 ...

  3. centos 7 关闭防火墙

    CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙步骤. firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后 ...

  4. centos 防火墙关闭/开启

    centos 防火墙关闭/开启 从配置菜单关闭防火墙是不起作用的,索性在安装的时候就不要装防火墙 查看防火墙状态: /etc/init.d/iptables status 暂时关闭防火墙: /etc/ ...

  5. Centos中关闭tty以及禁止ipv6

    Centos中关闭tty以及禁止ipv6 1.Centos6.x关闭/sbin/mingetty方法 修改/etc/sysconfig/init,把23行的ACTIVE_CONSOLES=/dev/t ...

  6. CentOS 6.x 配置iptables

    CentOS 6.x 配置iptables 来源 https://www.cnblogs.com/chillax1314/p/7976067.html iptables -P INPUT DROP-- ...

  7. CentOS 7关闭firewalld启用iptables

    在CentOS7中,有很多CentOS 6中的常用服务发生了变化. 其中iptables是其中比较大的一个.防火墙iptables被firewalld取代. 本文将介绍,如果采用systemctl关闭 ...

  8. centos服务器关闭iptables防火墙后仍然无法通过公网ip访问http端口的问题

    前几天在阿里云买了台服务器,装上centos,今天在配置tomcat的时候发现,localhost:8080是可以访问的,但是无法通过公网IP访问8080端口.马上就想到了防火墙的问题,查到cento ...

  9. centos 7配置firewall防火墙的地址伪装和端口转发实例

    环境如下图所示,网关服务器和网站服务器都采用centos 7操作系统,网关服务器安装3块千兆网卡,分别连接Internet.企业内网.网站服务器. 网关服务器连接互联网卡ens33配置为公网IP地址, ...

最新文章

  1. 运行cmd直接进入指定目录下的命令
  2. C++实现删除字符串中所有重复出现的字符
  3. 【比较面】真核生物和原核生物的异同
  4. android 百度开发论坛,Android 百度地图开发(一)
  5. 反向输出一个三位数(信息学奥赛一本通-T1031)
  6. Effective Java 学习笔记(第53条:接口优先于反射机制)
  7. 00 后 CEO 何以“将马云和马化腾两家一网打尽”
  8. Sea Level Anomaly 和 Sea Surface Height Anomaly 的区别
  9. 恒生电子Java开发岗的面试题汇总
  10. Java后台调用API的方法
  11. java sqlldr_sqlldr详解
  12. 自动检测技术学习心得体会_自动化学习心得
  13. L13:MySQL - 性能与SQL优化2
  14. OpenJ_Bailian - 2714 求平均年龄
  15. linux命令top查看进程,linux 查看进程的命令(top)
  16. 什么是动态 SQL
  17. LocaSpaceViewer:自定义图源与无偏影像下载
  18. python 中的 import
  19. 百度网盘终于不限速了!
  20. 洛谷P1830 轰炸

热门文章

  1. 使用XmlReader读Xml
  2. MySql 数据操作类
  3. 二维数组求最大子矩阵的和
  4. 【python】 字符串转小写(含汉字等时仍work)
  5. “雏鹰”的最近感想……
  6. 调试Android之system.img的来回切换。
  7. android APP常用的颜色及代码
  8. LAMP介绍,Apache安装细节过程
  9. java封装的快捷_Fast-boot:针对SpringBoot 封装的一系列的快捷包
  10. 树状数组 java_算法模板之树状数组