yum -y install ntpdate pcre pcre-devel libjpeg-devel libpng libpng-devel freetype freetype-devel curl curl-devel compat-libgcc-296 zlib curl libcurl libxml2 libxml2-devel libxslt bzip2 bzip2-devel ncurses ncurses-devel openssl openssl-devel pcre-devel gd gd-devel libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxsltl gd gd-devel zlib wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz tar -zxvf lighttpd-1.4.28.tar.gz -C /tmp/ groupadd lighttpd -g 501
useradd -M -s /sbin/nologin -u 501 -g 501 lighttpd cd /tmp/lighttpd-1.4.28/
./configure --prefix=/usr/local/lighttpd make && make install
cp -R doc/config /usr/local/lighttpd/
cp doc/initscripts/rc.lighttpd.redhat /etc/init.d/lighttpd chmod 755 /etc/init.d/lighttpd chkconfig --level 345 lighttpd on groupadd -g 2001 mysql
useradd -M -s /sbin/nologin -u 2001 -g 2001 mysql cd -
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.55.tar.gz tar -zxvf mysql-5.1.55.tar.gz -C /tmp/ cd /tmp/mysql-5.1.55/
./configure --prefix=/usr/local/mysql --with-extra-charsets=all --enable-shared --enable-static --with-comment --with-pthread --enable-assembler --with-mysqld-ldflags=-all-static --with-plugins=innobase make && make install
cp support-files/my-large.cnf /etc/my.cnf
cp support-files/mysql.server /etc/init.d/mysqld chmod 755 /etc/init.d/mysqld chkconfig --level 345 mysqld on
./scripts/mysql_install_db --user=mysql cd -
wget http://monkey.org/~provos/libevent-2.0.10-stable.tar.gz tar -zxvf libevent-2.0.10-stable.tar.gz -C /tmp/ cd /tmp/libevent-2.0.10-stable/
./configure && make && make install cd -
wget http://nchc.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz tar -zxvf libmcrypt-2.5.8.tar.gz -C /tmp/ cd /tmp/libmcrypt-2.5.8/ ./configure make
make install cd -
wget http://am.php.net/distributions/php-5.3.6.tar.bz2 tar -jxvf php-5.3.6.tar.bz2 -C /tmp/ cd /tmp/php-5.3.6/
cp -frp /usr/lib64/libjpeg.* /usr/lib/ cp -frp /usr/lib64/libpng* /usr/lib/ cp -frp /usr/lib64/libldap* /usr/lib/
./configure --disable-debug --enable-gd-native-ttf --with-freetype-dir=/usr/lib --enable-safe-mode --with-libxml-dir --with-mysql=/usr/local/mysql/ --with-gd --with-zlib-dir --with-jpeg-dir --with-png-dir --disable-posix --with-config-file-path=/etc --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-zip --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-curlwrappers --with-gettext --enable-shmop --enable-sockets --with-pdo-mysql=/usr/local/mysql/bin/mysql_config --with-mcrypt --with-curl --enable-ftp make && make install
cp php.ini-production /etc/php.ini cd -
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz tar -zxvf memcached-1.4.5.tar.gz -C /tmp/ cd /tmp/memcached-1.4.5/
./configure && make && make install cp -l /usr/local/lib/libevent* /usr/lib cd - ldconfig
wget http://pecl.php.net/get/memcache-3.0.6.tgz tar -zxvf memcache-3.0.6.tgz -C /tmp/ cd /tmp/memcache-3.0.6/ phpize
./configure --enable-memcache make && make install cd -
wget http://xcache.lighttpd.net/pub/Releases/1.3.2/xcache-1.3.2.tar.gz tar -zxvf xcache-1.3.2.tar.gz -C /tmp/ cd /tmp/xcache-1.3.2/ phpize
./configure --enable-xcache make && make install cd - ldconfig
groupadd -g 2002 httpd
useradd -M -s /sbin/nologin -u 2002 -g 2002 httpd wget http://nginx.org/download/nginx-1.0.9.tar.gz tar -zxvf nginx-1.0.9.tar.gz -C /tmp/ cd /tmp/nginx-1.0.9/
./configure --user=httpd --group=httpd --prefix=/usr/local/nginx --with-http_realip_module
--with-http_image_filter_module
--with-http_random_index_module --with-http_perl_module make && make install cd -
--with-http_gzip_static_module
因篇幅问题不能全部显示,请点此查看更多更全内容