快速业务通道

网站运维架构设计及安装过程(linux nginx php-fpm pgsql memcached varnish mysql)

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-14
conv,例如:
EXTRA_LIBS = ….. -lcrypt -liconv
然后重新再次 make 即可,不用make clean 直接make)
make install
cp php.ini-dist /usr/local/web_server/php5/etc/php.ini

5、编译安装PHP5扩展模块 (参考:http://willko.javaeye.com/blog/332993)
安装memcached (memcached: http://www.danga.com/memcached/dist/memcached-1.2.6.tar.gz )
tar zxvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure --prefix=/usr/local/web_server/memcached --enable-threads --enable-64bit --with-libevent=/usr/local/web_server/libevent/
make && make install

php安装对memcached的支持
php有两个版本的memcached客户端
1.memcached
这个是新版的客户端基于libmemcached,要安装libmemcached
先安装libmemcached
下载地址:http://download.tangent.org/libmemcached-0.44.tar.gz
tar zxvf libmemcached-0.44.tar.gz
cd libmemcached-0.44
./configure --prefix=/usr/local/web_server/libmemcached/ --with-memcached --with-libevent-prefix=/usr/local/web_server/libevent/
make && make install

安装php memcached客户端
下载地址:http://pecl.php.net/get/memcached
tar zxvf memcached-0.1.4.tgz
cd memcached-0.1.4
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server --with-php-config=/usr/local/web_server/php5/bin/php-config --with-libmemcached-dir=/usr/local/web_server/libmemcached/ --enable-memcached
make && make instal
2.memcache
下载地址:http://pecl.php.net/get/memcache
tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server --with-php-config=/usr/local/web_server/php5/bin/php-config --enable-memcache
make && make instal

tar jxvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1/
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server/ --enable-eaccelerator=shared --with-php-config=/usr/local/web_server/php5/bin/php-config
make
make install

按shift g键跳到配置文件(php.ini)的最末尾,加上以下配置信息:
引用
[eaccelerator]
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
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"

tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2/
/usr/local/web_server/php5/bin/phpize
./configure --prefix=/usr/local/web_server/ --with-php-config=/usr/local/web_server/php5/bin/php-config --with-pdo-mysql=/usr/local/web_server/mysql
make
make install

tar zxvf PDO_MYSQL-1.0.2.tgz
cd PDO_M

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号