[root@129-2-10-2 src]# cat kuozhan.sh
#!/bin/bash###install redis extend #########cd /usr/local/srctar fxvz redis-2.2.7.tgzcd redis-2.2.7/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmake && make installecho 'extension=redis.so' >> /usr/local/php/etc/php.iniservice php-fpm restartservice nginx restart ###install amqp extend #########cd /usr/local/srctar zxf rabbitmq-c.tar.gz#mkdir rabbitmq-c#cd rabbitmq-c#wget https://github.com/alanxz/rabbitmq-c/tarball/0.2#tar zxvf 0.2#rm -rf 0.2cd rabbitmq-cwget https://github.com/rabbitmq/rabbitmq-codegen/tarball/mastertar zxvf mastermv rabbitmq-rabbitmq-codegen-4e725d8 codegenrm -rf masterautoreconf -i./configuremake && make installcd /usr/local/srcwget http://pecl.php.net/get/amqp-1.0.7.tgztar -zxvf amqp-1.0.7.tgzcd amqp-1.0.7/usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-amqpmake && make installecho 'extension=amqp.so' >> /usr/local/php/etc/php.iniservice php-fpm restartservice nginx restart ###install mongo extend #########cd /usr/local/srctar fxvz mongo-1.6.11.tgzcd mongo-1.6.11/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-configmake && make installecho 'extension=mongo.so' >> /usr/local/php/etc/php.iniservice php-fpm restartservice nginx restart