【文件属性】:
文件名称:haproxy-1.8.23-1.el7.x86_64.rpm haproxy 1.8.23 rpm包
文件大小:2.83MB
文件格式:RPM
更新时间:2023-02-09 16:38:00
haproxy haproxy1.8.23 haproxy1.8.23rpm haproxy开机自启动
haproxy-1.8.23 RPM包 for Centos7
rpm -ivh 安装即可,软件目录:/usr/local/haproxy-1.8.23 配置文件: /etc/haproxy/haproxy.cfg
可通过 systemctl 来进行 start 、stop 、restart
可通过 systemctl enable 、disable 来开启和禁止开机自动
演示:
[root@web_test ~]# rpm -ivh haproxy-1.8.23-1.el7.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:haproxy-1.8.23-1 ################################# [100%]
[root@web_test ~]#
[root@web_test ~]# systemctl start haproxy
[root@web_test ~]# systemctl enable haproxy
Created symlink from /etc/systemd/system/multi-user.target.wants/haproxy.service to /usr/lib/systemd/system/haproxy.service.
[root@web_test ~]# netstat -lntup | grep haproxy
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1753/haproxy
udp 0 0 0.0.0.0:46705 0.0.0.0:* 1753/haproxy
[root@web_test ~]# ps -ef | grep haproxy
200 1753 1 0 22:36 ? 00:00:00 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
200 1754 1 0 22:36 ? 00:00:00 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
200 1755 1 0 22:36 ? 00:00:00 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
200 1756 1 0 22:36 ? 00:00:00 /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
root 1782 1686 0 22:36 pts/0 00:00:00 grep --color=auto haproxy