HAProxy 後啓動報錯“cannot bind UNIX socket [/var/lib/haproxy/stats]”解決

報錯信息:

-- Unit haproxy.service has begun starting up.
5月 21 18:33:40 minbo.centos haproxy[16266]: Starting haproxy: [WARNING] 140/183340 (16277) : [/usr/sbin/haproxy.main()] Cannot raise FD limit to 1638478, limit is 4096.
5月 21 18:33:40 minbo.centos haproxy[16266]: [ALERT] 140/183340 (16277) : Starting frontend GLOBAL: cannot bind UNIX socket [/var/lib/haproxy/stats]
5月 21 18:33:40 minbo.centos haproxy[16266]: [失敗]
5月 21 18:33:40 minbo.centos systemd[1]: haproxy.service: control process exited, code=exited status=1
5月 21 18:33:40 minbo.centos systemd[1]: Failed to start SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments..
-- Subject: Unit haproxy.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit haproxy.service has failed.
--
-- The result is failed.

解決方法:

mkdir -p /var/lib/haproxy
touch /var/lib/haproxy/stats
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章