lemp安装配置mysql-5.5.15、 nginx-1.0.0、php-5.3.8

来源:网络 责任编辑:栏目编辑 发表时间:2013-07-01 12:12 点击:

1:首先下载从官网下载标题中对应软件的版本。
2:安装必须的第三方库
 
yum -y install gcc gcc-c++ autoconf make libjpeg libjpeg-devel \
               libpng libpng-devel freetype freetype-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 libxml2 libxml2-devel \
               patch pcre pcre-devel ImageMagick mhash mhash-devel \
               libmcrypt libmcrypt-devel libevent libevent-devel libxslt  \
               libxslt-devel libtool libtool-ltdl libtool-ltdl-devel \
               bison bison-devel
 
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
wget "http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz?modtime=1171868460&big_mirror=0"
wget "http://downloads.sourceforge.net/mcrypt/mcrypt-2.6.8.tar.gz?modtime=1194463373&big_mirror=0"
wget "http://downloads.sourceforge.net/mhash/mhash-0.9.9.9.tar.gz?modtime=1175740843&big_mirror=0"
 
tar zxvf libiconv-1.13.tar.gz
cd libiconv-1.13/
./configure --prefix=/usr/local
make
make install
cd ../
 
tar zxvf libmcrypt-2.5.8.tar.gz 
cd libmcrypt-2.5.8/
./configure
make
make install
 
tar zxvf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9/
./configure
make
make install
cd ../
 
ln -s /usr/local/lib/libmcrypt.la /usr/lib/libmcrypt.la
ln -s /usr/local/lib/libmcrypt.so /usr/lib/libmcrypt.so
ln -s /usr/local/lib/libmcrypt.so.4 /usr/lib/libmcrypt.so.4
ln -s /usr/local/lib/libmcrypt.so.4.4.8 /usr/lib/libmcrypt.so.4.4.8
ln -s /usr/local/lib/libmhash.a /usr/lib/libmhash.a
ln -s /usr/local/lib/libmhash.la /usr/lib/libmhash.la
ln -s /usr/local/lib/libmhash.so /usr/lib/libmhash.so
ln -s /usr/local/lib/libmhash.so.2 /usr/lib/libmhash.so.2
ln -s /usr/local/lib/libmhash.so.2.0.1 /usr/lib/libmhash.so.2.0.1
 
tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8/
/sbin/ldconfig
./configure
make
make install
cd ../
 3:安装mysql
tar zxvf mysql-5.5.15.tar.gz  
cd mysql-5.5.15 
 
cmake -DMYSQL_DATADIR=/data0/mysql/3306/data/  \ 
      -DWITH_ARCHIVE_STORAGE_ENGINE=on \ 
      -DCMAKE_INSTALL_PREFIX=/usr/local/mysql 
 
make 
make install 
 
echo /usr/local/mysql/lib/ >> /etc/ld.so.conf
 
ldconfig
 3:安装nginx
 
tar zxvf nginx-1.0.0.tar.gz
cd nginx-1.0.0
./configure --user=www --group=www --prefix=/usr/local/nginx \
          --with-http_stub_status_module --with-http_ssl_module
make && make install
cd ../
4:安装php
 
tar zxvf php-5.3.8.tar.gz
cd  php-5.3.8
 
./configure \
  --prefix=/usr/l

    相关新闻>>

      发表评论
      请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
      用户名: 验证码:点击我更换图片
      最新评论 更多>>

      推荐热点

      • /etc/fstab 详解
      • nginx主主集群
      •  LVS-NAT和LVS-DR模式的实现详解
      •  RHCE考试之磁盘配额
      • 学习笔记:ACL详解
      •  LVM逻辑卷管理器
      • suse linux双网卡双网关配置
      •  Nginx主主负载均衡架构
      • ubuntu学习Mysql

      快速直达

      操作系统导航

      LinuxWindows虚拟机
      网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
      Copyright © 2008-2015 计算机技术学习交流网. 版权所有

      豫ICP备11007008号-1