lvs-dr-deploy
bash <(curl -s https://raw.githubusercontent.com/marksugar/lvs/master/dr/lvs-dr-deploy.sh|more)
curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/haproxy/scripts/install.sh|bash
部署:
bash <(curl -s https://raw.githubusercontent.com/marksugar/lvs/master/keepliaved/install.sh|more )
而后根据提示,输入角色是MASTER或者BACKUP,以及VIP
[root@linuxea ~]# bash <(curl -s https://raw.githubusercontent.com/marksugar/lvs/master/keepliaved/install.sh|more)
You install role MASTER/BACKUP ?
please enter(block letter):MASTER
Please enter the use VIP: 172.16.100.1
如果有必要,你需要放行iptables
sed -i '/-A INPUT -j REJECT/i\-A INPUT -p 112 -j ACCEPT' /etc/sysconfig/iptables
systemctl restart iptables
curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/redis-cli/install.sh|bash
curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/mariadb-client/mariadb-cli.sh |bash
bash -s nginx用户名 nginx版本号
curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/nginx/nginxInstall.sh|bash -s www 1.16.0
bash -s php用户名 php版本号
curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/php/php7/phpInstall.sh |bash -s www 7.3.8