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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 堆和栈的区别

    堆和栈的区别

    2021年5月10日
    102
  • CURL常用命令_db2常用命令

    CURL常用命令_db2常用命令原文地址:http://www.thegeekstuff.com/2012/04/curl-examples/下载单个文件,默认将输出打印到标准输出中(STDOUT)中curlhttp://www

    2022年8月3日
    6
  • 4g模块连接阿里云_国外4G模块

    4g模块连接阿里云_国外4G模块作者:如果能编程回忆最后修改时间:2020年6月12日概述Air724模组内置TCP/IP协议栈,提供TCP客户端和服务器端服务(PS:模块没有公网IP所以服务端模式多用于专属VPN网络)。可使用AT指令,LUAT二次开发,CSDK,开源DTU等多种方式开发,开发者根据实际需求合理选择开发方式。AT指令通过AT指令使用TCP服务主要包含设备联网,配置连接,建立连接,发送数据等步骤,具体流程如图高清版TCP流程图.pdf![](https://imgconvert.csdnimg.cn/aHR0c

    2022年9月2日
    6
  • MySQL/Oracle数据库优化总结(非常全面)「建议收藏」

    MySQL/Oracle数据库优化总结(非常全面)

    2022年4月6日
    172
  • 判断回文字符串-C语言

    判断回文字符串-C语言C语言实现判断字符串是否是回文描述所谓回文字符串,就是一个字符串,从左到右读和从右到左读是完全一样的,比如”level”、“aba”。超级简单上代码#include<stdio.h>#include<string.h>#defineNUM100intmain(){charstr[NUM];intflag=0;scanf(“%s”,str);intlen=strlen(str);for(inti=0;i

    2022年6月6日
    37
  • apk签名失败问题[通俗易懂]

    apk签名失败问题[通俗易懂]在给apk签名的时候会出现如下的问题,如何解决呢?Exceptioninthread”main”java.lang.UnsatisfiedLinkError:noconscrypt_openjdk_jniinjava.library.path atjava.lang.ClassLoader.loadLibrary(ClassLoader.java:1864) atj…

    2022年5月25日
    91

发表回复

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

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