centos6.5防火墙关闭命令(cmd关闭防火墙)

cmd命令关闭防火墙netstopmpssvc CentOS6关闭防火墙使用以下命令,//临时关闭serviceiptablesstop//禁止开机启动chkconfigiptablesoffCentOS7中若使用同样的命令会报错,stop iptables.serviceFailedtostopiptables.service:Unitipt…

大家好,又见面了,我是你们的朋友全栈君。

cmd命令关闭防火墙

net stop mpssvc

 

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

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

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

stop  iptables.service
Failed to stop iptables.service: Unit iptables.service not loaded.

这是因为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 stop
Redirecting to /bin/systemctl stop  iptables.service
//检查防火墙状态
service iptables status
Redirecting to /bin/systemctl status  iptables.service
鈼iptables.service – IPv4 firewall with iptables
   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
——————— 
作者:post_yuan 
来源:CSDN 
原文:https://blog.csdn.net/Post_Yuan/article/details/78603212?utm_source=copy 
版权声明:本文为博主原创文章,转载请附上博文链接!

 

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

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/128071.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长

相关推荐

  • 监控android USB拔插

    监控android USB拔插最近在做项目中遇到一个需要监控USB拔插来关闭服务的问题,当时查了不少资料,都是说android3.0以上的USB类可以监控,╮(╯▽╰)╭比较难搞后来发现其实可以变通的监控外部电源来实现,相当于监控USB了呵呵,记录下来Intent.ACTION_POWER_DISCONNECTED就是它了

    2022年5月7日
  • win10下pycharm+Qtdesigner+Pyqt 成功配置

    win10下pycharm+Qtdesigner+Pyqt 成功配置请在安装之前,将整个博客看完之后再进行操作!我的安装过程有点曲折//使用Qtdesigner做可视化的界面设计,是一项很强大的工具。今天用到了,就在pycharm下配置一下,随手做点记录Qtdesigner可以可视化拖动生成界面。我的环境:win10pycharm+anaconda(python3.6.4)配置过程:1.在安装pyqt5的时候需要有sip的支持,sip…

    2022年8月25日
  • WPF中的StackPanel、WrapPanel、DockPanel

    WPF中的StackPanel、WrapPanel、DockPanel一、StackPanelStackPanel是以堆叠的方式显示其中的控件1、可以使用Orientation属性更改堆叠的顺序Orientation=”Vertical”默认,由上到下显示各控件。控件在未定义的前提下,宽度为StackPanel的宽度,高度自动适应控件中内容的高度1:2:ButtonA3:ButtonB4:B

    2022年7月22日
  • mysql自定义函数详解_数据库自定义函数

    mysql自定义函数详解_数据库自定义函数1.创建自定义函数DELIMITER$$DROPFUNCTIONIFEXISTSgenPerson$$CREATEFUNCTIONgenPerson(namevarchar(20))RETURNSvarchar(50)BEGINDECLAREstrVARCHAR(50)DEFAULT”;SET@tableName=name;SETst…

    2022年9月4日
  • linux5432端口在哪里打开,在ubuntu上打开端口5432

    linux5432端口在哪里打开,在ubuntu上打开端口5432我试图使用ufw使用sudoufwallow5432/tcp在ubuntu上打开端口5432然后我使用nmap来查看端口5432是否已打开,我得到了这个:[emailprotected]:~#sudonmap-sS-O127.0.0.1StartingNmap5.21(http://nmap.org)at2011-12-0114:28MSKNmapscan…

    2022年6月19日
  • Spring Cloud Alibaba与Spring Boot、Spring Cloud版本对应关系

    Spring Cloud Alibaba与Spring Boot、Spring Cloud版本对应关系一、前言在搭建SpringCloud项目环境架构的时候,Springboot版本与SpringCloud版本对应关系很重要,如果版本不对应,常见的会遇见项目启动不起来,怪异的会是项目出现一些诡异的问题。ReleasetrainSpringBootcompatibilitySpringCloudReleaseTrainSpringBootVersionHo…

    2022年6月3日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号