https://github.com/nikoo-asadnejad/haproxy-config
https://github.com/nikoo-asadnejad/haproxy-config
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikoo-asadnejad/haproxy-config
- Owner: Nikoo-Asadnejad
- Created: 2025-01-07T19:25:32.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-01-10T07:23:34.000Z (4 months ago)
- Last Synced: 2025-01-16T03:46:36.083Z (3 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HAProxy Load Balancer Setup Guide
This guide demonstrates how to install, configure, and use HAProxy as a load balancer for HTTP traffic on a Linux system.
## **Installation**
1. Update system packages:
```bash
sudo apt update && sudo apt upgrade -y
```
2. Install HAProxy:
```bash
sudo apt install haproxy -y
```
3.Verify installation:
```bash
haproxy -v
```## **Configuration**
Copy config file in :
```bash
sudo nano /etc/haproxy/haproxy.cfg
```## **Starting HAProxy**
1. Start HAProxy:
```bash
sudo systemctl start haproxy
```
2.Enable HAProxy to start on boot:
```bash
sudo systemctl enable haproxy
```
3.Verify the status of the HAProxy service:
```bash
sudo systemctl status haproxy
```
## **LOGS**
```bash
tail -f /var/log/haproxy.log
```