快速业务通道

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

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-14

以下安装过程为我在**网工作期间,**网整个外网所需服务的安装过程以及注意事项

一 安装所需软件包
LANG=C
yum -y install gcc gcc-c gd* autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers readline readline-devel libtool libtool-ltdl libtool-ltdl-devel *ltdl*
二、安装PHP 5.2.13(FastCGI模式)
1、编译安装PHP 5.2.13所需的支持库:
tar zxvf libiconv-1.13.tar.gz
cd libiconv-1.13/
./configure --prefix=/usr/local/web_server/
(make ZEND_EXTRA_LIBS=''-liconv'')
make && make install

tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8/
./configure --prefix=/usr/local/web_server/
make && make install
/sbin/ldconfig
cd libltdl/
./configure --prefix=/usr/local/web_server/ --enable-ltdl-install
make && make install

tar zxvf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9/
./configure --prefix=/usr/local/web_server/
make && make install
./configure
make && make install

tar zxvf libevent-1.4.10-stable.tar.gz ( http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz)
cd libevent-1.4.10-stable
./configure --prefix=/usr/local/web_server/libevent
make && make install

32位机器:
ln -s /usr/local/web_server/lib/libmcrypt.la /usr/lib/libmcrypt.la
ln -s /usr/local/web_server/lib/libmcrypt.so /usr/lib/libmcrypt.so
ln -s /usr/local/web_server/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4
ln -s /usr/local/web_server/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8
ln -s /usr/local/web_server/lib/libmhash.a /usr/lib/libmhash.a
ln -s /usr/local/web_server/lib/libmhash.la /usr/lib/libmhash.la
ln -s /usr/local/web_server/lib/libmhash.so /usr/lib/libmhash.so
ln -s /usr/local/web_server/lib/libmhash.so.2 /usr/lib/libmhash.so.2
ln -s /usr/local/web_server/lib/libmhash.so.2.0.1 /usr/lib/libmhash.so.2.0.1
64位机器:
ln -s /usr/local/web_server/lib/libmcrypt.la /usr/lib64/libmcrypt.la
ln -s /usr/local/web_server/lib/libmcrypt.so /usr/lib64/libmcrypt.so
ln -s /usr/local/web_server/lib/libmcrypt.so.4 /usr/lib64/libmcrypt.so.4
ln -s /usr/local/web_server/lib/libmcrypt.so.4.4.8 /usr/lib64/libmcrypt.so.4.4.8
ln -s /usr/local/web_server/lib/libmhash.a /usr/lib64/libmhash.a
ln -s /usr/local/web_server/lib/libmhash.la /usr/lib64/libmhash.la
ln -s /usr/local/web_server/lib/libmhash.so /usr/lib64/libmhash.so
ln -s /usr/local/web_server/lib/libmhash.so.2 /usr/lib64/libmhash.so.2
ln -s /usr/local/web_server/lib/libmhash.so.2.0.1 /usr/lib64/libmhash.so.2.0.1
tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8/
/sbin/ldconfig
./configure --prefix=/usr/local/web_server/ --with-libmcrypt-prefix=/usr/local/web_server/ --with-libiconv-prefix=/usr/local/web_server/
mak

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站: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号