This EnvoyinStack script is written using the shell, in order to quickly deploy (Linux, Nginx/OpenResty, MySQL in a production environment/MariaDB/, JAVA,ElasticStack,Powerline), applicable to CentOS 7 ~ 8(including redhat) of 64.
Supports automatic deployment in the intranet environment. Just put some required rpm packages in src/yum-custom/packages/ and execute ./install.sh --help to initialize the index file of the warehouse directory.
Script properties:
- Continually updated, Provide Shell Interaction and Autoinstall
- Source compiler installation, most stable source is the latest version, and download from the official site
- Some security optimization
- Providing a plurality of database versions (MySQL-8.0, MySQL-5.7, MySQL-5.6, MariaDB-10.6, MariaDB-10.5, MariaDB-10.4, PostgreSQL, MongoDB)
- Provide Nginx, OpenResty, Rabbitmq, Fastdfs + Fastdht
- Provide Mysql group replication and Proxysql,multi source replication(master slaves)
- Provide Gateway kong server and konga
- Provide ElasticStack-7.15.2(elasticsearch and kibana The platinum version never expires)
- Provide Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including bash
- Provide Automatically push keys to remote servers
- Providing a plurality of Tomcat version (Tomcat-10,Tomcat-9, Tomcat-8, Tomcat-7)
- Providing a plurality of JDK version (JDK-11.0, JDK-1.8, JDK-1.7)
- Install redis according to their needs
- Jemalloc optimize MySQL, Nginx
- Provide Nginx/OpenResty/Tomcat, MySQL/MariaDB, Redis upgrade script
- Provide local,remote(rsync between servers),Aliyun OSS backup script
Install the dependencies for your distro, download the source and run the installation script.
yum -y install wget screen
If you disconnect during installation, you can execute the command screen -r runname
to reconnect to the install window
screen -S envoyinstack
If you need to modify the directory (installation, data storage, Nginx logs), modify options.conf
file before running install.sh
./install.sh
Automatically push keys to remote servers
set remote servers list(./tools/iplist.txt) ==> run ./keygen.sh
./install.sh --keygen
Install Nginx
./install.sh --nginx_option 1
Install OpenResty
./install.sh --nginx_option 2
Install Tomcat
./install.sh --tomcat_option 1
Install Java
./install.sh --jdk_option 1
Install MySQL/MariaDB/PostgreSQL/MongoDB
./install.sh --db_option 1 --dbinstallmethod 1 --dbrootpwd Infvie123456
Install Redis
./install.sh --redis
Install Rabbitmq
./install.sh --rabbitmq
Install Fastdfs + Fastdht
./install.sh --fastdfs
Install Mysql group replication and Proxysql
set vars config
~/envoyinstack/include/replmgr/deploy/ansible/mysql/vars/{group_replication.yaml,master_slaves.yaml,multi_source_replication.yaml}
set template config
~/envoyinstack/include/replmgr/deploy/ansible/mysql/template/
set run config
~/envoyinstack/include/replmgr/config.yaml
./install.sh --replmgr
Install Mysql master slaves
./install.sh --replms
Install Mysql multi source replication
set run config
mtls_with_mysql_group_replication: 0
./install.sh --replmsr
Install Gateway kong server and konga
./install.sh --kong
Install the platinum version never expires(elasticsearch,kibana)
./install.sh --elasticstack
Install powerline is a statusline plugin for vim and bash
./install.sh --powerline
~/envoyinstack/backup_setup.sh // Backup parameters
~/envoyinstack/backup.sh // Perform the backup immediately
crontab -l // Can be added to scheduled tasks, such as automatic backups every day 1:00
0 1 * * * cd ~/envoyinstack/backup.sh > /dev/null 2>&1 &
~/envoyinstack/upgrade.sh
~/envoyinstack/uninstall.sh
For feedback, questions, and to follow the progress of the project:
Tencent QQ : 1473934158
Telegram Group
Infvie Envoy. All Rights Reserved.