首页 > 其他 > 详细

Linux使用脚本关闭iptables和SELinux.

时间:2014-01-16 08:35:46      阅读:434      评论:0      收藏:0      [点我收藏+]

每次新装系统第一件事就是干掉这俩货.不会用的话就先禁用掉免得惹麻烦.

bubuko.com,布布扣
#! /bin/bash

iptables -F
service iptables save
service iptables stop
chkconfig iptables off

setenforce 0

cp -rf /etc/selinux/config /etc/selinux/config.bk
sed s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config.bk > /etc/selinux/config
bubuko.com,布布扣

Linux使用脚本关闭iptables和SELinux.

原文:http://www.cnblogs.com/viator42/p/3517502.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!