Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 79 章 Piranha - Cluster administation tools

摘要

Piranha 安装与配置

目录

79.1. install
79.2. configure
79.3. real server
79.4. Example
79.4.1. Master
79.4.2. Slave
79.4.3. MySQL

79.1. install

Install piranha and ipvsadm packages on the LVS Routers

yum -y install ipvsadm piranha
		

Turning on Packet Forwarding on the LVS Routers

vi /etc/sysctl.conf

net.ipv4.ip_forward = 1 把原来的0改成1
使刚才的修改生效
sysctl -p

临时生效
echo "1" >/proc/sys/net/ipv4/ip_forward
		

Configuring Services on the LVS Routers

chkconfig pulse on
chkconfig ipvsadm on
chkconfig piranha-gui on
		

Setting a Password for the Piranha Configuration Tool

# piranha-passwd
		

Starting the Piranha Configuration Tool Service

# setenforce 0
setenforce: SELinux is disabled
# service ipvsadm start
# service piranha-gui start