查看selinux
[root@mode ~]# getenforce
Disabled
[root@mode ~]# /usr/sbin/sestatus -v
SELinux status: disabled
临时关闭selinux
[root@mode ~]# setenforce 0
setenforce: SELinux is disable...
分类:
系统相关 时间:
2015-03-12 15:10:38
阅读次数:
181
默认情况下 mysql更改端口后是不能通过selinux的提示启动错误,那么首先就要看mysql的错误日志可是我不知道mysql错误日志的位置首先,更改selinux的模式为passive 然后启动mysql(passive模式下是能够启动mysql的)setenforce 0然后是用ps命令查看日...
分类:
数据库 时间:
2015-02-11 14:26:07
阅读次数:
226
本文针对的是内核2.6及以上版本的Ubuntu。
1. 安装SELinux工具
#sudo apt-get install selinux-utils
2. 开启/关闭SELinux
关闭:
sudo setenforce 1
开启:
setenforce 0...
分类:
系统相关 时间:
2015-02-09 07:07:45
阅读次数:
296
搭建过程难免会出现各种错误,所以之前最好做一个备份!!!
service iptables stop 关闭防火墙
[root@localhost ~]# setenforce 0
[root@localhost ~]# getenforce
Permissive
主库
[root@localhost ~]# su - oracle
[oracle@localhos...
分类:
其他好文 时间:
2015-01-23 23:02:18
阅读次数:
364
设置selinux时候出现setenforce:SELinuxisdisabled说明selinux被永久关闭了。需要重新开启selinux,请按下面步骤:1、编辑vi/etc/selinux/config文件将SELINUX=0改为12、必须重启linux,不重启是没办法立刻开启selinux的重启完以后,我们就可以用setenforce命令来动态的调整当..
分类:
系统相关 时间:
2015-01-21 20:29:13
阅读次数:
326
1. 物理服务器配置1.1安装#yum install -y net-snmp net-snmp-utils1.2 配置复制【附件】中snmpd.conf文件到/etc/snmp/目录下。(原有的重命名,保存)关闭selinux和防火墙#setenforce 0#vi /etc/sysconfig/...
分类:
其他好文 时间:
2014-12-08 10:27:45
阅读次数:
843
服务器端:
yum
-y install nfs* rpcbind
vi /etc/exports
/home/willserver 192.168.1.100(rw,sync,no_root_squash)
service rpcbind restart
service nfs restart
setenforce 0
客...
分类:
其他好文 时间:
2014-11-19 01:51:20
阅读次数:
138
1、关闭防火墙/etc/init.d/iptable stop2、关闭selinux1、临时禁用SELinux:root@server# setenforce 0这样重启服务器之后,还是会启动SELinux,2、永久禁用:打开服务器上的SELinux配置文件,默认为:/etc/selinux/con...
分类:
系统相关 时间:
2014-11-14 22:33:40
阅读次数:
312
环境:CentOS6.5+vsFTPvsftpd-2.2.2-13.el6_6.1.x86_64第一步:安装vsftppamdb4yuminstallvsftpdpam*db4*-y关闭防火墙#/etc/init.d/iptablesstop#chkconfig–level35iptablesoff关闭setenforce#setenforce0在多用户和界面模式vsftpd开机启动#chkconfig--level35vsftpdon第二?.
分类:
系统相关 时间:
2014-11-11 23:06:08
阅读次数:
499
Redhat使用了SELinux来增强安全,关闭的办法为:1. 永久有效修改 /etc/selinux/config 文件中的 SELINUX="" 为 disabled ,然后重启。2. 即时生效setenforce 0关闭防火墙的方法为:1. 永久性生效开启:chkconfig iptables...
分类:
系统相关 时间:
2014-10-16 18:34:02
阅读次数:
254