摘要: 升级python2.7 wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz mkdir /usr/local/python27 ./configure --prefix=/usr/local/python27 Make Make 阅读全文
posted @ 2017-10-15 21:35 两年十一时 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 配置EPEL源 [root@ansible ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [root@ansible ~]# rpm --import /etc/pki/r 阅读全文
posted @ 2017-10-15 13:38 两年十一时 阅读(426) 评论(0) 推荐(0) 编辑
摘要: <html><head> <style type="text/css"> .bg-blur { float: left; background-repeat: no-repeat; background-position: center; background-size: cover; -webki 阅读全文
posted @ 2017-09-13 12:50 两年十一时 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: --linode 防火墙设置vi /etc/iptables.firewall.rules*filter # Allow all loopback (lo0) traffic and drop all traffic to 127/8 that doesn't use lo0-A INPUT -i 阅读全文
posted @ 2017-07-25 01:58 两年十一时 阅读(1944) 评论(0) 推荐(0) 编辑
摘要: --安装fail2banyum install -y epel-release yum install -y fail2ban --配置fail2banvi /etc/fail2ban/jail.conf[http-get-dos]enabled = trueport = httpfilter = 阅读全文
posted @ 2017-07-25 00:57 两年十一时 阅读(4306) 评论(0) 推荐(0) 编辑
摘要: heartbeat安装,主要用于linux ha,采用VIP的方式,failover/failback,当服务器故障时能够自动切换到备机,保证应用服务的可靠运行 --由于源码安装繁琐,本次采用yum方式安装 --hosts 配置 所有节点vi /etc/hosts192.168.33.190 sql 阅读全文
posted @ 2017-07-12 00:37 两年十一时 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: --###MYSQL 半同步配置 用于主备切换所以主备配置相同 --1、插件位置mysql> show variables like 'plugin_dir' -> ;+ + +| Variable_name | Value |+ + +| plugin_dir | /usr/local/mysql 阅读全文
posted @ 2017-07-08 09:56 两年十一时 阅读(364) 评论(0) 推荐(0) 编辑
摘要: --mysql 复制搭建 准备sql2服务器 ,采用复制sql1的方法 --###sql2 解决vm网卡复制问题vi /etc/udev/rules.d/70-persistent-net.rules1、找到与ifconfig -a得出的MAC相同的一行改成"NAME=eth0 " 2、把上面一行 阅读全文
posted @ 2017-07-08 09:55 两年十一时 阅读(520) 评论(0) 推荐(0) 编辑
摘要: --###安装xtrabackupsu - rootyum install perl-Time-HiRes ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql vi .bash_profileexport PATH=$PATH:/usr/local/mys 阅读全文
posted @ 2017-07-06 15:53 两年十一时 阅读(188) 评论(0) 推荐(0) 编辑
摘要: --linux 基础配置 指定机器名为sql1 --查看centos内核uname -acat /etc/issue --修改机器名 1、 echo "192.168.33.190 sql1 localhost.localdomain localhost4 localhost4.localdomai 阅读全文
posted @ 2017-07-05 18:55 两年十一时 阅读(219) 评论(0) 推荐(0) 编辑