环境搭建:(服务器,客户端)首先关闭selinux与iptables#vi/etc/sysconfig/selinuxSELINUX=disabled#setenforce0#serviceiptablesstop在使用sersync之前,我们必须安装配置好rsync服务器rsync(客户端)一.安装rsync#yuminstallrsync-y#yuminstallxinetd-y二.启动rsync依赖服务#ser..
分类:
其他好文 时间:
2014-12-30 19:14:13
阅读次数:
191
1、 把MySQL服务进程停掉:(整个过程请注意备份。把selinux关掉!)2、 把/var/lib/mysql整个目录移到/data/mysql3、 找到my.cnf配置文件为保证MySQL能够正常工作,需要指明mysql.sock文件的产生位置。修改socket=/var/lib/mysql/mysql.sock一行中等号右边的值为:/data/mysql..
分类:
数据库 时间:
2014-12-30 17:18:15
阅读次数:
191
// 注释 # root用户 $oracle用户1. 关闭安全措施# chkconfig iptables off // 永久关闭防火墙# serviceiptables stop // 暂时关闭防火墙,重启系统后会自动打开# sed -i "s/SELINUX=enforcing/SELINUX=...
分类:
数据库 时间:
2014-12-26 18:30:52
阅读次数:
1451
selinux导致故障一例
这样的报错还是第一次遇到,排查过程没有头绪,一直纠结在child setpgid这个地方,还好在google过程中看到有人在设置selinux的时候的相关案例,于是想到从这方面入手。
原因为selinux开启导致的,但是比较诡异的是从别的terminal ssh 跳转过去之后无法执行任何操作,包括配置selinux,后来还是从后台远程管理口登陆上去之后设置并重启,彻...
分类:
系统相关 时间:
2014-12-26 14:36:39
阅读次数:
210
系统版本:D2.6.32-431.el6.x86_64虚拟机:四台环境准备:关闭selinux;关闭iptables;其中两台nginx+keepalive已安装且正常;另外两台的节点web工作正常;#为了更好的测试,web1:www.22web2:www.23;nginx安装:yuminstallpcre*-yyuminstallopensslopenssl-devel-yuseradd-s/..
分类:
其他好文 时间:
2014-12-26 06:17:07
阅读次数:
213
【初始化-sshd】init_sshd.sh#!/bin/bash
#
#2014/09/02
#1)禁用selinux
#modify/etc/sysconfig/selinux
#to:SELINUX=disabled
#andrebootlater.
cp-a/etc/selinux/config/etc/selinux/config.bak
echo‘SELINUX=disabled‘>/etc/selinux/config
#2)清空firewall
iptables-..
分类:
其他好文 时间:
2014-12-24 18:33:51
阅读次数:
161
1、关闭SELinux查看SELinux状态:(1)/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态SELinux status: enabled(2)getenforce ...
分类:
其他好文 时间:
2014-12-23 13:53:39
阅读次数:
177
实验节点如下:源节点:192.168.0.111备份节点:192.168.0.112------------------------------以下部分在两个节点上执行1、防火墙开放873端口(两个节点)#/sbin/iptables-IINPUT-ptcp--dport873-jACCEPT#/etc/rc.d/init.d/iptablessave#serviceiptablesrestart2、关闭selinux..
分类:
其他好文 时间:
2014-12-20 18:23:58
阅读次数:
179
申明:程序:icinga2网页:icingaweb2一、设置SELinux[root@localhost~]#setenforce0[root@localhost~]#echo‘setenforce0‘>>/etc/rc.local二、设置iptables[root@localhost~]#vi/etc/sysconfig/iptables-AINPUT-mstate--stateNEW-mtcp-ptcp--dport80-jACCEPT[root@localh..
分类:
其他好文 时间:
2014-12-19 12:20:55
阅读次数:
648
环境介绍
系统:CentOS 5.8 64位
MySQL版本:mysql-5.6.22-linux-glibc2.5-x86_64
注意:以二进制安装。因为MySQL的编译需要很长的时间。
安装步骤
1.安装的前期准备工作。
a.关闭selinux
vim /etc/sysconfig/selinu...
分类:
数据库 时间:
2014-12-17 09:08:54
阅读次数:
283