selinux iptables

selinux关闭 

getenforce 查看状态

enforcing:开启的

permissive: setenforce 0 关闭的

disable: /etc/selinux/config reboot修改过后的

如果reboot出现问题

1. centos怎么让进入GRUB 菜单界面?
    Linux开机引导的时候,按键盘上的e 就可以进入进入GRUB菜单界面。
2. 在出现GRUB引导画面时(CentOS(2.6.18-274**)),按字母e键,进入GRUB编辑状态。
3. 把光标移动到kernel ...那一行,再敲入“e”进入命令行编辑,
    在kernel 一行的最后加上空格single,回车敲入“b”,启动系统,即进入单用户模式

4. 把前面的配置改回来

Dell的机器centOS改了selinux配置出现的问题:

CPU#0 stuck for 67s!

通过冷启动解决

https://bugs.centos.org/view.php?id=6487 

iptables

iptables -nL查看

service iptables status查看状态

iptables开机自动启动:
开启: chkconfig iptables on 
关闭: chkconfig iptables off
iptables关闭服务:
开启: service iptables start 
关闭: service iptables stop

猜你喜欢

转载自tcxiang.iteye.com/blog/2078742