您好,欢迎访问三七文档
安装步骤:(系统要求:Linux2.6+内核,本文中的Linux操作系统为CentOS5.3,另在RedHatAS4上也安装成功)一、获取相关开源程序:1、【适用CentOS操作系统】利用CentOSLinux系统自带的yum命令安装、升级所需的程序库(RedHat等其他Linux发行版可从安装光盘中找到这些程序库的RPM包,进行安装):sudo-sLANG=Cyum-yinstallgccgcc-c++autoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglibcglibc-develglib2glib2-develbzip2bzip2-develncursesncurses-develcurlcurl-devele2fsprogse2fsprogs-develkrb5krb5-devellibidnlibidn-developensslopenssl-developenldapopenldap-develnss_ldapopenldap-clientsopenldap-servers2、【适用RedHat操作系统】RedHat等其他Linux发行版可从安装光盘中找到这些程序库的RPM包(事先可通过类似“rpm-qa|greplibjpeg”的命令查看所需的RPM包是否存在,通常是“xxx-devel”不存在,需要安装)。RedHat可以直接利用CentOS的RPM包安装,以下是RPM包下载网址:①、RedHatAS4&CentOS4://mirrors.163.com/centos/4/os/x86_64/CentOS/RPMS/②、RedHatAS5&CentOS5://mirrors.163.com/centos/5/os/x86_64/CentOS/③、RPM包搜索网站://④、RedHatAS4系统环境,通常情况下缺少的支持包安装:Ⅰ、i386系统wget://blog.s135.com/soft/linux/nginx_php/rpm/i386/freetype-devel-2.1.9-1.i386.rpmrpm-ivhfreetype-devel-2.1.9-1.i386.rpmwgetⅡ、x86_64系统wget://blog.s135.com/soft/linux/nginx_php/rpm/x86_64/freetype-devel-2.1.9-1.x86_64.rpmrpm-ivhfreetype-devel-2.1.9-1.x86_64.rpmwget、【适用CentOS、RedHat及其它Linux操作系统】下载程序源码包:本文中提到的所有开源软件为截止到2010年07月26日的最新稳定版。①、从软件的官方网站下载:mkdir-p/data0/softwarecd/data0/softwarewget://://php-fpm.org/downloads/php-5.2.14-fpm-0.5.14.diff.gzwget://mysql.he.net/wget://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?modtime=1171868460&big_mirror=0wget=1194463373&big_mirror=0wget://downloads.sourceforge.net/mhash/mhash-0.9.9.9.tar.gz?modtime=1175740843&big_mirror=0wget://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2wget://blog.s135.com/soft/linux/nginx_php/imagick/ImageMagick.tar.gzwget②、从blog.s135.com下载(比较稳定,只允许在本站,或者在Linux/Unix下通过Wget、Curl等命令下载以下软件):mkdir-p/data0/softwarecd/data0/softwarewget://blog.s135.com/soft/linux/nginx_php/php/php-5.2.14.tar.gzwget://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.5.3-m3.tar.gzwget://blog.s135.com/soft/linux/nginx_php/mcrypt/libmcrypt-2.5.8.tar.gzwget://blog.s135.com/soft/linux/nginx_php/memcache/memcache-2.2.5.tgzwget://blog.s135.com/soft/linux/nginx_php/pcre/pcre-8.10.tar.gzwget://blog.s135.com/soft/linux/nginx_php/pdo/PDO_MYSQL-1.0.2.tgzwget://blog.s135.com/soft/linux/nginx_php/imagick/imagick-2.3.0.tgz二、安装PHP5.2.14(FastCGI模式)1、编译安装PHP5.2.14所需的支持库:tarzxvflibiconv-1.13.1.tar.gzcdlibiconv-1.13.1/./configure--prefix=/usr/localmakemakeinstallcd../tarzxvflibmcrypt-2.5.8.tar.gzcdlibmcrypt-2.5.8/./configuremakemakeinstall/sbin/ldconfigcdlibltdl/./configure--enable-ltdl-installmakemakeinstallcd../../tarzxvfmhash-0.9.9.9.tar.gzcdmhash-0.9.9.9/./configuremakemakeinstallcd../ln-s/usr/local/lib/libmcrypt.la/usr/lib/libmcrypt.laln-s/usr/local/lib/libmcrypt.so/usr/lib/libmcrypt.soln-s/usr/local/lib/libmcrypt.so.4/usr/lib/libmcrypt.so.4ln-s/usr/local/lib/libmcrypt.so.4.4.8/usr/lib/libmcrypt.so.4.4.8ln-s/usr/local/lib/libmhash.a/usr/lib/libmhash.aln-s/usr/local/lib/libmhash.la/usr/lib/libmhash.laln-s/usr/local/lib/libmhash.so/usr/lib/libmhash.soln-s/usr/local/lib/libmhash.so.2/usr/lib/libmhash.so.2ln-s/usr/local/lib/libmhash.so.2.0.1/usr/lib/libmhash.so.2.0.1ln-s/usr/local/bin/libmcrypt-config/usr/bin/libmcrypt-configtarzxvfmcrypt-2.6.8.tar.gzcdmcrypt-2.6.8//sbin/ldconfig./configuremakemakeinstal
本文标题:实战Linux_Nginx_PHP_MYSQl安装教程本人亲测可用,只要你按照步揍一步一步来一定能安
链接地址:https://www.777doc.com/doc-2530065 .html