摘要:
修改配置文件/etc/keepalived/keepalived.conf1.state行主机填MASTRT备机为BACKUP2.priority行备机比主机小3.virtual_ipaddress 所有虚拟IP地址,与virtual_server一一对应.4.virtual_server{}包含real_server的IP和端口.real_server中添加connect_port 80标示连接端口----------------------------------------配置文件示例-------------------------------------------! Configu 阅读全文
摘要:
环境: 系统: CentOS6.4 主机: master:192.168.0.100 slave:192.168.0.101配置文件/etc/my.cnf修改前:[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysql# Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=00.备份配置文件: cp /etc/my.cnf /etc/my.cnf.bk1.改root密码 ... 阅读全文
摘要:
每次新装系统第一件事就是干掉这俩货.不会用的话就先禁用掉免得惹麻烦.#! /bin/bashiptables -Fservice iptables saveservice iptables stopchkconfig iptables offsetenforce 0cp -rf /etc/selinux/config /etc/selinux/config.bksed 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config.bk > /etc/selinux/config 阅读全文