Created
October 19, 2012 15:03
-
-
Save thanos/3918697 to your computer and use it in GitHub Desktop.
installs haproxy on ubuntu 11.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-get update | |
| sudo apt-get install haproxy | |
| sudo sed 's/ENABLED\s*=\s*0/ENABLED=1/' < /etc/default/haproxy > /tmp/haproxy | |
| sudo cp /tmp/haproxy /etc/default/haproxy | |
| sudo update-rc.d -f haproxy remove | |
| sudo update-rc.d -f networking remove | |
| sudo update-rc.d haproxy start 37 2 3 4 5 . stop 20 0 1 6 . | |
| sudo update-rc.d networking start 34 2 3 4 5 . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment