×

Step by step process to install and configure HAproxy on Ubuntu 20.04 LTS ?

This article will guide you on how to #install and configure #HAproxy load balancer on the #Linux system. 

You will learn the basic setup and configuration of HAproxy as a load balancer for #Apache web servers. Also, we looked at some commands for managing the HAproxy server. In the end, we tested the load balancing through the browser and the #curl command. 

HAProxy is free, open source #software that provides a high availability #load #balancer and proxy server for #TCP and HTTP-based applications that spreads requests across multiple servers.

To Deploy on Linux :

1. Download the source code of HAProxy.

2. Unzip the file into the desired location tar xvzf haproxy-1.8-dev1.

3. Compile the source code.

4. Create config file haproxy.cfg with the configuration details.

5. Start the haproxy with ./haproxy -f haproxy.

6. Access the status page on http:localhost:9999/stats.


Steps to restart network services in Linux ?

This article will guide you on how to start, stop, and restart the #network service on different Linux distribution like Ubuntu, #Debian, Linux Mint, and CentOS 8. Moreover, you can troubleshoot the network #error through the #NetworkManager tool on #CentOS 8.

Please don't stop services if you have a remote ssh connection that may create a problem.

Restarting networking on a desktop machine will cause dbus and a bunch of #service to stop and never be started again, usually leading to the whole system being unusable.

To restart a Linux service:

1. Linux provides fine-grained control over system services through #systemd, using the systemctl command.

2. To verify whether a service is active or not, run this command: sudo systemctl status apache2.

3. To stop and restart the service in Linux, use the command: sudo systemctl restart SERVICE_NAME.