Skip to content

scripts install lvs-dr-deploy,haproxy,nmp,keepalived,redis-ci,mariadb-ci

License

Notifications You must be signed in to change notification settings

marksugar/Maops

Repository files navigation

  • #f03c15 红色 echo -e "\033[31m\033[01m[ $1 ]\033[0m"

  • #f03c15 红色动态 echo -e "\033[31m\033[01m\033[05m[ $1 ]\033[0m"

  • #335BFF 蓝色 echo -e "\033[34m[ $1 ]\033[0m"

  • #4CFF33 绿色 echo -e "\033[32m[ $1 ]\033[0m"

  • #c5f015 黄色 echo -e "\033[33m\033[01m[ $1 ]\033[0m"

  • #c5f015 黄色动态 echo -e "\033[33m\033[01m\033[05m[ $1 ]\033[0m"

version

# App Version scripts type User ID port date
1 haproxy 1.9.0 shell haproxy haproxy 1080 2018
2 Linux Virtual Server 1.27-7.el7 shell Linux Virtual Server root 112 2018
3 keepalived 2.0.10 shell Keepalived root 112 2018
4 redis-cli 3.0.0 shell None None 20190111
5 nginx 1.16.0 shell None None 20190803
6 php-fpm 7.3.8 shell None None 20190803

目录

lvs

lvs-dr-deploy

bash <(curl -s https://raw.githubusercontent.com/marksugar/lvs/master/dr/lvs-dr-deploy.sh|more)

haproxy

curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/haproxy/scripts/install.sh|bash

keepalived

部署:

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

redis-cli

curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/redis-cli/install.sh|bash

mariadb-cli

curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/mariadb-client/mariadb-cli.sh |bash

nginx

bash -s nginx用户名 nginx版本号

curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/nginx/nginxInstall.sh|bash -s www 1.16.0

php

bash -s php用户名 php版本号

curl -Lk https://raw.githubusercontent.com/marksugar/Maops/master/php/php7/phpInstall.sh |bash -s www 7.3.8

About

scripts install lvs-dr-deploy,haproxy,nmp,keepalived,redis-ci,mariadb-ci

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages