查看selinux状态:

[root@VM000000518 upload]# getenforce
Enforcing

禁用:

[root@VM000000518 upload]# setenforce 

再次查看状态变化:

[root@VM000000518 upload]# getenforce
Permissive

禁用开机启动选项:

[root@VM000000518 upload]# cat /etc/sysconfig/selinux

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

关掉iptable, ip6table, system-config-firewall:

[root@VM000000518 upload]# /etc/init.d/iptables stop
[root@VM000000518 upload]# /etc/init.d/ip6tables stop
system-config-firewall

         ┌───────────────────────┤ 防火墙配置 ├───────────────────────┐
│ │
│ 防火墙保护网络免遭未经授权的网络入侵。启用防火墙会阻塞所有 │
│ 进入的连接。禁用防火墙会允许所有连接,我们不推荐您这么做。 │
│ │
│ 防火墙: [ ] 启用 │
│ │
│ ┌──────┐ ┌──────┐ ┌──────┐ │
│ │ 确定 │ │ 定制 │ │ 取消 │ │
│ └──────┘ └──────┘ └──────┘ │
│ │
│ │
└────────────────────────────────────────────────────────────┘ <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen

最新文章

  1. CSS的重要性
  2. 在Swift中使用JavaScript的方法和技巧
  3. OC-点语法
  4. 文件大boss
  5. 关于求解不定方程的n(n-1)=2m(m-1)的解法的总结
  6. ##解决 ViewPager 调用 notifyDataSetChanged()无刷新:原理、解决办法##
  7. 查看当前支持的MySQL字符集的命令
  8. css3实现的三种loading动画(转载)
  9. android studio 9.png 报错
  10. java.io.IOException: Unable to open sync connection!的解决方案
  11. [转载] ASP.NET MVC4使用百度UEDITOR编辑器
  12. 201521123087《Java程序设计》第10周学习总结
  13. python3全栈开发- 元类metaclass(面试必考题)
  14. UNIX网络编程——带外数据
  15. 搭建centos7的开发环境2-单机版Hadoop2.7.3配置
  16. HTML 重定向 页面跳转
  17. mybatis 开发规范
  18. spring+mybatis+mina+logback框架搭建
  19. svn checkout单个文件
  20. Java反射机制介绍

热门文章

  1. Android Studio 签名打包
  2. mysql计算两个日期相差的天数
  3. linux 双网卡桥接,实现网卡流量镜像与转发
  4. Angular2入门:TypeScript的类 - 定义、继承和作用域
  5. Django组件之cookie与session
  6. jQuery中的事件绑定的几种方式
  7. c# 对象集合转Json
  8. vb.net 发Mail
  9. java_二进制的前导的零
  10. 性能监控(5)&ndash;JAVA下的jstat命令