Skip to main content

Posts

Showing posts from May, 2026

HAProxy cannot bind port not listening

HAProxy is an open-software used as a high-performance load balancer and reverse proxy for TCP. To check whether the proxy config before reloading or restarting the HAProxy service can be done via this command:  haproxy -c -f /etc/haproxy/haproxy.cfg It will show 'configuration file is valid' if everything is okay or the config file syntax is valid. However, the command cannot check whether it can bind the port, or bind the socket. Example, typing: systemctl reload haproxy to reload the new config file. And to check whether the reload is successful or not status of the service can be checked. Typing, systemctl status haproxy to check the status and if it shows Reload: failed then binding issues or other errors causes reloading to fail. Or some alert is shown as Binding like /etc/haproxy/haproxy.cfg cannot bind socket or cannot assign requested address for 192.168.x.x. IP Technically, the error is already giving some hints that the IP on the HAProxy config file cannot be used fo...

Practice Linux vim in Windows using gVim

Vim is a cool and powerful editor in Linux system. It is also available for Windows via this download page: https://www.vim.org/download.php Choose: gvim_9.2.0000_x64.exe (64bit installer) or any format of your choice. After downloading and installing, the installer it will create two desktop icons; something similar to the image shown below. Why there are two icons? As the name suggests "gVim Easy 9.2", gVim Easy is the filename suggests it's "easy", upon opening or clicking the icon it will open gVim in "insert" mode and start typing immediately. While the other icon "gVim Read only 9.2", upon clicking or opening this icon. This will open gVim on "read only" as it names suggest. It's quite good if you only need to review or read the file. However, it says "read only" it doesn't mean that you cannot edit, modify or add text to the file. While inside "gVim Read only", press "insert" key or pre...

PowerShell/Bash Linux get MAC address

Example of PowerShell get MAC address: getmac /s 127.0.0.1 | findstr /I TCPIP Sample output: C4-75-CB-37-BB-BF \Device\Tcpip_{7F29EDBA-C045-4C74-834E-F026BCE8169B} For Linux: ip a | grep -i "link/ether" | awk '{print $1, $2}' Sample output: link/ether 00:15:5d:98:16:36 That's it a quick way, to find MAC address. Ideal for network switch troubleshooting. Pray, hope and don't worry. Always Be Still, God is always in control. Consult God by praying.