yum -y install libevent-devel
cd ..
tar zxf libunwind-snap-070410.tar.gz
cd libunwind-snap-070410.tar.gz
cd libunwind-0.99-alpha/
./configure
make && make install
cd ..
tar zxf gperftools-2.0.tar.gz
cd gperftools-2.0
./configure
make && make install
touch /etc/ld.so.conf.d/usr_local_lib.conf
echo '/usr/local/lib' >>/etc/ld.so.conf.d/usr_local_lib.conf
ldconfig
updatedb
sleep 2
cd ..
tar zxf nginx-1.0.12.tar.gz
cd nginx-1.0.12
./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_ssl_module --with-google_perftools_module
make
make install
sleep 2
cd ../
ls
tar zxf libpng-1.2.47.tar.gz
cd libpng-1.2.47
./configure
make && make install
sleep 2
cd ../
ls
tar zxf jpegsrc.v6b.tar.gz
cd jpeg-6b/
FLAGS="-O3 -fPIC" ./configure
./configure
make install-lib
make install
mkdir /usr/local/man/man1
make insatll
sleep 2
cd ..
tar zxf gd-2.0.35.tar.gz
cd gd
ls
cd 2.0.35/
./configure --with-png --with-freetype=/usr/local/freetype --with-jpeg
make
make install
cd ../..
tar zxf libxml2-2.6.30.tar.gz
cd libxml2-2.6.30
./configure
make
make install
cd ..
tar zxf fontconfig-2.8.0.tar.gz
cd fontconfig-2.8.0
./configure
make
cd ..
ll -rht
ls
tar zxf libevent-1.4.9-stable.tar.gz
cd libevent-1.4.9-stable
./configure
make
make install
cd ..
ls
tar libart_lgpl-2.3.21.tar.gz
tar zxf libart_lgpl-2.3.21.tar.gz
cd libart_lgpl-2.3.21
./configure
make
make install
cd ..
ls
tar zxf libiconv-1.11.tar.gz
cd libiconv-1.1
cd libiconv-1.11
./configure
make
make install
cd ..
ls
tar zxf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/libltdl
./configure -enable-ltdl-install
make
make install
cd ..
ls
tar zxf mhash-0.9.9.tar.gz
cd mhash-0.9.9
./configure
make && make install
cd ..
ls
tar zxf zlib-1.2.6.tar.gz
cd zlib-1.2.6
./configure
make
make
./configure
make
make install
tar zxf libpng-1.2.47.tar.gz
./configure
make && make install
ldconfig
cd ../
tar zxf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure
make
make install
ldconfig
tar zxf php-5.2.13.tar.gz
wget http://blog.s135.com/soft/linux/nginx_php/phpfpm/php-5.2.13-fpm-0.5.13.diff.gz
gzip -cd php-5.2.13-fpm-0.5.13.diff.gz | patch -d php-5.2.13 -p1
cd php-5.2.13
#此行注释./configure --with-pgsql=/usr/local/pgsql --with-pdo-pgsql=/usr/local/pgsql --with-freetype-dir --with-png-dir --with-zlib --enable-fpm --enable-xml --disable-rpath --enable-discard-path --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring=all --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --without-sqlite --without-pdo-sqlite --enable-zip --enable-sysvshm
./configure --with-jpeg-dir=/usr/local/lib/ --with-mcrypt=/usr/local/lib/ --with-pcre-dir==/usr/local/lib/ --with-pgsql=/usr/local/pgsql --with-pdo-pgsql=/usr/local/pgsql/lib --with-freetype-dir --with-png-dir --with-zlib --enable-fpm --enable-xml --disable-rpath --enable-discard-path --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring=all --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --without-sqlite --without-pdo-sqlite --enable-zip --enable-sysvshm --with-pcre-dir=/usr/local/lib
vi Makefile(查找以EXTRA_LIB开头的行的末尾增加,-liconv)
echo '/usr/local/pgsql/lib' > /etc/ld.so.conf.d/postgres-i386.conf
ldconfig
#mv Makefile Makefile.bak
#cp ../Makefile .
make
make test
make install
tar zxf redis-2.4.10.tar.gz
cd redis-2.4.10
ls
more README
make
make test
make install
netstat -anp|grep 6379
cp redis.conf /etc/
redis-server -h
redis-server /etc/redis.conf
vi /etc/redis.conf
redis-server /etc/redis.conf
netstat -anp|grep 6379
cd ../
gunzip php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip
unzip php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip
rm -fr php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip
rm -fr php_redis.dll
rz
tar zxf nicolasff-phpredis-2.2.1-2-gc265627.tar.gz
ll -rth
cd nicolasff-phpredis-c265627/
ls
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
vi /etc/redis.conf
把bind 127xxx前的#删除
make instll
vi php.ini
把extension_dir修改成extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613"
在extension后增加extension=redis.so
get http://soft.vpser.net/web/zend/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
1139 20120427-163027: tar zxf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
1140 20120427-163043: cp ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/ZendOptimizer.so /usr/local/zend/
1141 20120427-163048: ls /usr/local/zend/
1142 20120427-163059: vi /usr/local/php5/etc/php.ini
在php.ini末尾增加:
[Zend Optimizer]
zend_optimizer.optimization_level=1
zend_extension="/usr/local/zend/ZendOptimizer.so"
122编译选项:
./configure --with-iconv-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib/ --with-mcrypt=/usr/local/lib/ --with-pcre-dir==/usr/local/lib/ --with-pgsql=/usr/local/pgsql --with-pdo-pgsql=/usr/local/pgsql/lib --with-freetype-dir --with-png-dir --with-zlib --enable-fpm --enable-xml --disable-rpath --enable-discard-path --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-force-cgi-redirect --enable-mbstring=all --with-gd=/usr/local/gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --without-sqlite --without-pdo-sqlite --enable-zip --enable-sysvshm --with-pcre-dir=/usr/local/lib