Skip to content

ozkuran/haproxy-installation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAProxy Install Script

v0.0.2

This is a simple installation script for different versions of HAProxy. Initially created for yum based linux distros and tested for CentOS 7.

Current versions

CentOS 7

Installation procedure

1. Download the script:

sudo wget https://raw.githubusercontent.com/ozkuran/haproxy-installation/master/[VERSION_TO_INSTALL]/ha_install.sh

2. Make the script executable

sudo chmod +x ha_install.sh

3. Execute the script:

sudo ./ha_install.sh

Post-Installation steps

1. Change username and password of

Load haproxy.cfg file.

sudo nano /etc/haproxy/haproxy.conf

Find line with contents of:

stats auth admin:password

Change contents of line with username and password you like.

stats auth [YOUR_USERNAME]:[YOUR_PASSWORD]

Save and quit document. Then restart HAProxy.

sudo systemctl restart haproxy

Check status of HAProxy.

sudo systemctl status haproxy

About

HAProxy installation and basic configuration scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages