一、环境简述需求描述操作系统:CentOS6.5_X64关闭防火墙和selinux数据库:MySQL5.6数据库分配:functioniphostnameserveridmaster1192.168.137.75db1master-1master2192.168.137.33db2master-2二、安装Mysql1.查看是否安装旧版本使用下面的命令检查是否安装有MySQLServer#rpm-..
分类:
数据库 时间:
2016-06-23 14:32:49
阅读次数:
262
关闭selinuxsed-i"s/SELINUX=enforcing/SELINUX=disabled/"/etc/selinux/config
setenforce0防火墙设置允许zabbix-agent的10050端口通过firewall-cmd--permanent--add-port=10050/tcpfirewall-cmd--reload安装zabbix软件源rpm-ivhhttp://repo.zabbix.com/zabbix/2.4/rhel/7/x86..
分类:
其他好文 时间:
2016-06-22 15:55:10
阅读次数:
524
首先最小化安装centos6及以上版本系统(64位),本此安装为centos6.8[root@CloudBoot~]#cat/etc/redhat-release
CentOSrelease6.8(Final)关闭ipatbles和selinux服务[root@CloudBoot~]#serviceiptablesstop
[root@CloudBoot~]#chkconfigiptablesoff
[root@CloudBoot~]#setenforc..
分类:
数据库 时间:
2016-06-22 06:58:45
阅读次数:
2404
有很多的Linux使用者因为对selinux不熟悉,所以都会将它关闭,避免影响到其它服务的使用,下面小编与大家分享一下如何关闭selinux,希望对大家有所帮助。 首先我们可以用命令来查看selinux的状态 getenforce 这个命令可以查看到selinux的状态,当前可以看到是关闭状态的。 ...
分类:
系统相关 时间:
2016-06-21 12:28:03
阅读次数:
278
1打开文件句柄数:在/etc/security/limits.conf文件尾添加*softnofile65535*hardnofile65535*softnproc65535*hardnproc65535./etc/security/limits.conf2关闭selinux/etc/selinux/configSELINUX=disabled3优化内核:/etc/sysctl.confnet.ipv4.ip_local_port_range=102465000net..
分类:
系统相关 时间:
2016-06-21 11:05:05
阅读次数:
178
1.背景说明由于kvm所在的机器启用了SELINUX,后来将之关闭,关闭之后,发现kvm的虚拟机无法启动,启动过程中的报错信息如下:[root@ESRoller~]#virshstartzabbix
error:Failedtostartdomainzabbix
error:unsupportedconfiguration:Unabletofindsecuritydriverforlabelselinuxli..
分类:
系统相关 时间:
2016-06-20 22:30:50
阅读次数:
772
红帽7.2 首先在启动界面 按↑↓键,进入如下界面,选择第一项,按下e键进行编辑 现在的画面找到 ro 改为 rw init=/sysroot/bin/sh 然后按 ctrl X 启动 启动之后会进入 紧急模式 进入之后执行换根命令 #chroot /sysroot # 查看selinux 是否关闭 ...
分类:
其他好文 时间:
2016-06-19 20:00:04
阅读次数:
388
selinux一.SELINUX的运行模式修改文件/etc/selinux/config设置SELINUX=disabled禁用设置SELINUX=permissive宽松模式设置SELINUX=enforcing强制模式二.查看当前运行模式[root@localhost~]#getenforceEnforcing三.临时修改运行模式[root@localhost~]#setenforceusage:setenforce[..
分类:
系统相关 时间:
2016-06-17 17:32:04
阅读次数:
236
一、在OracleLinux6.5安装Oracle11gR2_64
1、修改selinux
vi/etc/selinux/config
ThisfilecontrolsthestateofSELinuxonthesystem.
#SELINUX=cantakeoneofthesethreevalues:
#enforcing-SELinuxsecuritypolicyisenforced.
#permissive-SELinuxprintswarningsinsteadofenforcing..
分类:
数据库 时间:
2016-06-17 00:52:25
阅读次数:
259
远程连接Linux服务器有时候需要关闭selinux和iptables临时关闭selinux的命令setenforce0(0为关闭,1为开启)获取selinux的命令getenforce永久关闭selinux的方法编辑/etc/selinux/config这个文件把SELINUX=enforcing开启状态改成SELINUX=Disabled关闭状态临时清除防火墙规则iptab..
分类:
其他好文 时间:
2016-06-16 18:26:47
阅读次数:
200