1. <acronym id='6cizo'><em id='6cizo'></em><td id='6cizo'><div id='6cizo'></div></td></acronym><address id='6cizo'><big id='6cizo'><big id='6cizo'></big><legend id='6cizo'></legend></big></address>

  2. <ins id='6cizo'></ins>
    <span id='6cizo'></span>

    <i id='6cizo'><div id='6cizo'><ins id='6cizo'></ins></div></i>
    <i id='6cizo'></i>

        <fieldset id='6cizo'></fieldset>

        1. <tr id='6cizo'><strong id='6cizo'></strong><small id='6cizo'></small><button id='6cizo'></button><li id='6cizo'><noscript id='6cizo'><big id='6cizo'></big><dt id='6cizo'></dt></noscript></li></tr><ol id='6cizo'><table id='6cizo'><blockquote id='6cizo'><tbody id='6cizo'></tbody></blockquote></table></ol><u id='6cizo'></u><kbd id='6cizo'><kbd id='6cizo'></kbd></kbd>

          <code id='6cizo'><strong id='6cizo'></strong></code>
          <dl id='6cizo'></dl>

          lanmp(Linux Apache Nginx Mysql Php) 的安装配置

          • 时间:
          • 浏览:8
          • 来源:124软件资讯网
            1 ) 安装Centos 5 , 下载地址
            http://mirrors.sohu.com/centos/5/isos/i386/
            安装历程请禁用selinux 和 防火墙

            2) 安装须要的组件
            LANG=C
            yum -y install gcc gcc-c++ 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

            3) 安装 Apache
            若是使用系统的 apache + php + mysql
            可以用
            yum -y install httpd php mysql php-mysql php-pdo php-mcrypt php-mbstring

            若是愿意自己编译 apache ,请自行到 apache.org 下载最新版 apache,然后编译安装
            ./configure --prefix=/usr/local/apache --enable-so
            make
            make install

            编译php 和相关组件 ,可以到 www.php.net 下载 php5.2 最新版本
            ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
            (假设之前编译的mysql 安装在 /usr/local/mysql ,若是接纳系统带的mysql 可以 --with-mysql=/usr)

            4)编译nginx
            下载nginx (www.nginx.net) 并编译
            ./configure --prefix=/usr/local/nginx && make && make install

            5) 编译mysql
            下载(dev.mysql.com) 并编译mysql
            ./configure --prefix=/usr/local/mysql && make && make install

            6)细节性能调整 和 网站计划