GNU General Public License v3.0

项目介绍

philyuchkoff/HAProxy-2-RPM-builder 是一个托管在 GitHub 上的开源项目,主要使用 Makefile 编写,采用 GNU General Public License v3.0 许可证,目前获得 67 个 Star、29 次 Fork。

仓库全名
philyuchkoff/HAProxy-2-RPM-builder
开源许可证
GNU General Public License v3.0
Star 数
67
Fork 数
29
未关闭 Issue
5

README 摘要

RPM builder for HAProxy 2.9 (CentOS/RHEL 6/7/8/9) HAProxy 3.0 builder here Build latest HAProxy binary with prometheus metrics support HAProxy 2.9.9 2024/06/14 Perform the following steps on a build box as a regular user: CentOS7 sudo yum -y groupinstall 'Development Tools' cd /opt sudo git clone https://github.com/philyuchkoff/HAProxy-2-RPM-builder.git cd ./HAProxy-2-RPM-builder CentOS8 sudo dnf -y groupinstall…

完整内容见 GitHub 原始 README 或本页 。

常见问题

HAProxy-2-RPM-builder 用什么语言开发?

主要使用 Makefile 编写,采用 GNU General Public License v3.0 许可证,目前有 67 个 Star。

HAProxy-2-RPM-builder 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 HAProxy-2-RPM-builder 的源码?

可以直接克隆仓库:git clone https://github.com/philyuchkoff/HAProxy-2-RPM-builder.git;安装与运行步骤见仓库 README。

HAProxy-2-RPM-builder 最近还在维护吗?

仓库最近一次更新为 2024年8月14日,当前有 5 个未关闭 Issue;Star 数为 67,可作为社区活跃度的参考。

关于

Build latest HAProxy binary for CentOS/RHEL 6/7/8/9 with prometheus metrics support

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

README

RPM builder for HAProxy 2.9 (CentOS/RHEL 6/7/8/9)

HAProxy 3.0 builder here

Build latest HAProxy binary with prometheus metrics support

GitHub last commit GitHub All Releases

HAProxy 2.9.9 2024/06/14

Perform the following steps on a build box as a regular user:

CentOS7
sudo yum -y groupinstall 'Development Tools'
cd /opt
sudo git clone https://github.com/philyuchkoff/HAProxy-2-RPM-builder.git
cd ./HAProxy-2-RPM-builder
CentOS8
sudo dnf -y groupinstall 'Development Tools'
cd /opt
sudo git clone https://github.com/philyuchkoff/HAProxy-2-RPM-builder.git
cd ./HAProxy-2-RPM-builder
sudo sed -i 's/yum/dnf/' Makefile

Build:

Without Lua:
sudo make
With Lua:
sudo make USE_LUA=1
With Prometheus module:
sudo make USE_PROMETHEUS=1
Without sudo for YUM:
sudo make NO_SUDO=1

Resulting RPM will be stored in

/opt/HAProxy-2-RPM-builder/rpmbuild/RPMS/x86_64/
Build using Docker:
sudo make run-docker

Resulting RPM will be stored in

./RPMS/

Install (for CentOS8/9 replaсe yum to dnf):

sudo yum -y install /opt/HAProxy-2-RPM-builder/rpmbuild/RPMS/x86_64/haproxy-2.9.9-1.el7.x86_64.rpm

or, if you build *.rpm with Docker:

sudo yum -y install RPMS/haproxy-2.9.9-1.el7.x86_64.rpm 

Check after install:

haproxy -v

Stats page

After installation you can access a stats page without authenticating via the URL: http://<YourHAProxyServer>:9000/haproxy_stats

Common problem:

:o: If some not working - check SELINUX:
sestatus

If SELINUX is enabled - switch off this: open /etc/selinux/config and change SELINUX to disabled:

sudo sed -i s/^SELINUX=.*$/SELINUX=disabled/ /etc/selinux/config
:o: 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
:o: 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-*

评论

暂无评论