Answer the question
In order to leave comments, you need to log in
What to do if Haproxy immediately crashes on VirtualBox?
Please help, I'm working on a project and need a balancer.
I created 2 virtualbox machines, installed Ubuntu 18 on them and installed Apache.
I put Haproxy on one of the machines, the machines between them ping themselves and have different ips.
I wrote some simple HTML with text to distinguish which machine is running.
On the first car I go in /etc/haproxy/haproxy.conf
and put
frontend my_http_front
bind *:80
default_backend my httpd_back
backend my_httpd_back
balance roundrobin
server myserver1 192.168.56.101:80
server myserver2 192.168.56.102:80
и вот скрин с journalctl -xe
Answer the question
In order to leave comments, you need to log in
"What to do in such a case?" - view logs. There is no Vanga here, who will remotely understand what configuration you have there.
To analyze the cause of the error - you can see that it says "Can not open configuration file / direc ....." (further cut off) immediately after recording and starting HAProxy.
That's right, it's written exactly like this:
PS "put Ubuntu 18 on them" - installing an OS with a graphical interface for such purposes is evil.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question