#!/bin/sh
創(chuàng)新互聯(lián)主要為客戶(hù)提供服務(wù)項(xiàng)目涵蓋了網(wǎng)頁(yè)視覺(jué)設(shè)計(jì)、VI標(biāo)志設(shè)計(jì)、成都全網(wǎng)營(yíng)銷(xiāo)推廣、網(wǎng)站程序開(kāi)發(fā)、HTML5響應(yīng)式網(wǎng)站建設(shè)公司、移動(dòng)網(wǎng)站建設(shè)、微商城、網(wǎng)站托管及網(wǎng)站維護(hù)、WEB系統(tǒng)開(kāi)發(fā)、域名注冊(cè)、國(guó)內(nèi)外服務(wù)器租用、視頻、平面設(shè)計(jì)、SEO優(yōu)化排名。設(shè)計(jì)、前端、后端三個(gè)建站步驟的完善服務(wù)體系。一人跟蹤測(cè)試的建站服務(wù)標(biāo)準(zhǔn)。已經(jīng)為雨棚定制行業(yè)客戶(hù)提供了網(wǎng)站推廣服務(wù)。
##一鍵優(yōu)化lamp之php
#安裝eaccelerator緩存加速器
cd /home/lvnian/tools
tar jxf eaccelerator-0.9.6.tar.bz2
cd eaccelerator-0.9.6
/application/php/bin/phpize
./configure --enable-eaccelerato=shared --with-php-config=/application/php/bin/php-config
echo $?
make && make install
ls -l /application/php5.3.27/lib/php/extensions/no-debug-zts-20090626/
######編譯安裝xcache,xcache和eaccelerator都是加速模塊,在生產(chǎn)中選擇一個(gè)安裝就可以了
cd /home/lvnian/tools
tar jxf xcache-1.3.2.tar.bz2
cd xcache-1.3.2
/application/php/bin/phpize
./configure --enable-xcache --with-php-config=/application/php/bin/php-config
echo $?
make && make install
ls -l /application/php5.3.27/lib/php/extensions/no-debug-zts-20090626/
###安裝PDO_MySQL擴(kuò)展插件(可選擇的)
cd /home/lvnian/tools
tar zxf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/application/php/bin/phpize
./configure --with-php-config=/application/php/bin/php-config \
--with-pdo-mysql=/application/mysql
echo $?
make && make install
ls -l /application/php5.3.27/lib/php/extensions/no-debug-zts-20090626/
###安裝數(shù)據(jù)量Memcache緩存客戶(hù)端軟件(客戶(hù)端軟件)
cd /home/lvnian/tools
tar zxf memcache-2.2.5.tgz
cd memcache-2.2.5
/application/php/bin/phpize
./configure --with-php-config=/application/php/bin/php-config
make && make install
ls -l /application/php5.3.27/lib/php/extensions/no-debug-zts-20090626/
###安裝圖像軟件
yum -y instals -l perl-CPAN
cd /home/lvnian/tools
tar zxf ImageMagick.tar.gz
cd ImageMagick-6.5.1-2/
./configure
make && make install
##安裝擴(kuò)展插件
cd /home/lvnian/tools
tar zxf imagick-2.3.0.tgz
cd imagick-2.3.0
/application/php/bin/phpize
./configure --with-php-config=/application/php/bin/php-config
make && make install
ls -l /application/php5.3.27/lib/php/extensions/no-debug-zts-20090626/
##配置php加速和緩存模塊擴(kuò)展
cp /application/php/lib/php.ini /application/php/lib/php.ini.ori
grep ' extension_dir = "./"' /application/php/lib/php.ini
sed -i 's#; extension_dir = "./"#extension_dir = "/application/php/lib/php/extensions/no-debug-zts-20090626/"#g' /application/php/lib/php.ini
grep 'extension_dir = ' /application/php/lib/php.ini
cat >> /application/php/lib/php.ini < extension = memcache.so extension = pdo_mysql.so extension = imagick.so eof ##配置eaccelerator 緩存目錄 grep User /application/apache/conf/httpd.conf mkdir -p /tmp/eaccelerator chown lvnian.lvnian /tmp/eaccelerator -R ##配置eaccelerator參數(shù) cat >>/application/php/lib/php.ini< [eaccelerator] extension=eaccelerator.so eaccelerator.shm_size="128" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="3600" eaccelerator.shm_prune_period="3600" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9" eof echo "------------php eaccelerator-------------" /application/php/bin/php -v
當(dāng)前題目:一鍵安裝lamp之php插件
文章來(lái)源:http://weahome.cn/article/goicpc.html