apache (httpd):
保存为httpd-setup.txt
在linux下执行: cat httpd-setup.txt |col -b > httpd-setup.sh
#--------------------------------------------------------------------------------------
#!/bin/sh
echo "########## Extract...... ####################"
tar -zxvf httpd-2.2.6.tar.gz
sleep 3
echo "########## Install...... ####################"
cd httpd-2.2.6
./configure /
--prefix=/usr/local/httpd /
--enable-module=so /
--enable-deflate=shared /
--enable-expires=shared /
--enable-rewrite=shared /
--enable-cache /
--enable-file-cache /
--enable-mem-cache /
--enable-disk-cache /
--enable-static-support /
--enable-static-htpasswd /
--enable-static-htdigest /
--enable-static-rotatelogs /
--enable-static-logresolve /
--enable-static-htdbm /
--enable-static-ab /
--enable-static-checkgid /
--disable-cgid /
--disable-cgi /
--disable-userdir /
--with-mpm=worker /
--enable-authn-dbm=shared /
--enable-authn-anon=shared /
--enable-authn-dbd=shared /
--enable-auth-basic=shared /
make
make install
sleep 3
echo "########## Install Succeed ####################"
#--------------------------------------------------------------------------------------
保存为httpd-setup.txt
在linux下执行: cat httpd-setup.txt |col -b > httpd-setup.sh
#--------------------------------------------------------------------------------------
#!/bin/sh
echo "########## Extract...... ####################"
tar -zxvf httpd-2.2.6.tar.gz
sleep 3
echo "########## Install...... ####################"
cd httpd-2.2.6
./configure /
--prefix=/usr/local/httpd /
--enable-module=so /
--enable-deflate=shared /
--enable-expires=shared /
--enable-rewrite=shared /
--enable-cache /
--enable-file-cache /
--enable-mem-cache /
--enable-disk-cache /
--enable-static-support /
--enable-static-htpasswd /
--enable-static-htdigest /
--enable-static-rotatelogs /
--enable-static-logresolve /
--enable-static-htdbm /
--enable-static-ab /
--enable-static-checkgid /
--disable-cgid /
--disable-cgi /
--disable-userdir /
--with-mpm=worker /
--enable-authn-dbm=shared /
--enable-authn-anon=shared /
--enable-authn-dbd=shared /
--enable-auth-basic=shared /
make
make install
sleep 3
echo "########## Install Succeed ####################"
#--------------------------------------------------------------------------------------