From 95467bb4c48ab1ca534c39dfb7eec487aa1d44d7 Mon Sep 17 00:00:00 2001 From: Vitaliy Filyuchkov Date: Mon, 13 Mar 2023 16:28:03 +0300 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 55a21aa..089056e 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Resulting RPM will be stored in ./RPMS/ -### Install (for CentOS8 replase `yum` to `dnf`): +### Install (for CentOS8/9 replaсe `yum` to `dnf`): sudo yum -y install /opt/HAProxy-2-RPM-builder/rpmbuild/RPMS/x86_64/haproxy-2.7.4-1.el7.x86_64.rpm @@ -68,12 +68,6 @@ or, if you build *.rpm with Docker: haproxy -v -Must be like this: - - HAProxy version 2.7.3-1065b10 2023/02/14 - https://haproxy.org/ - Status: stable branch - will stop receiving fixes around Q1 2024. - - ### :exclamation: If some not working: Check SELINUX: @@ -91,7 +85,15 @@ After installation you can access a stats page **without** authenticating via th ### Common problem: + +#### :exclamation: Cannot chroot1 [/usr/sbin/haproxy.main()] Cannot chroot1(/var/lib/haproxy) ##### Solution: - Create `/var/lib/haproxy` directory - Check on the rpcbind service to ensure that this service is started + +#### :exclamation: Failed to download metadata for repo ‘AppStream’ (CentOS8/9) +##### Solution: + cd /etc/yum.repos.d/ + sudo sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* + sudo sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*