Permalink
Browse files

Haproxy install script.

  • Loading branch information...
1 parent 0f9b4bd commit 496e506e3a7d2f9a3f4ea4e65ed4e6d98bdc367f @huacnlee committed Dec 14, 2012
Showing with 14 additions and 0 deletions.
  1. +13 −0 rhel5/install_haproxy
  2. +1 −0 rhel5/install_nginx
View
@@ -0,0 +1,13 @@
+curl -O http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.22.tar.gz
+tar zxf haproxy-1.4.22.tar.gz
+cd haproxy-1.4.22
+make TARGET=linux26
+sudo make install
+sudo ln -sf /usr/local/sbin/haproxy /usr/sbin/
+sudo cp examples/haproxy.init /etc/init.d/haproxy
+sudo /sbin/chkconfig haproxy on
+sudo mkdir /etc/haproxy
+sudo cp examples/haproxy.cfg /etc/haproxy/
+echo "Nginx has successed installed to /usr/local/haproxy"
+
+cd ..
View
@@ -6,6 +6,7 @@ cd nginx-1.2.6
make
sudo make install
sudo ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/
+cd ..
echo "Nginx has successed installed to /usr/local/nginx"
sudo cp nginx /etc/init.d/

0 comments on commit 496e506

Please sign in to comment.