发布时间:2014-09-05 16:56: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/local/php /
--with-config-file-path=/usr/local/php/etc /
--with-mysql=/usr/local/mysql /
--with-mysqli=/usr/local/mysql/bin/mysql_config /
--with-pdo-mysql=/usr/local/mysql /
--with-iconv-dir=/usr/local --with-freetype-dir /
--with-jpeg-dir --with-png-dir --with-zlib /
--with-libxml-dir=/usr --enable-xml --disable-rpath /
--enable-safe-mode --enable-bcmath --enable-shmop /
--enable-sysvsem --enable-inline-optimization /
--with-curl --with-curlwrappers --enable-mbregex --enable-fpm /
--with-fpm-user=www --with-fpm-group=www --enable-mbstring /
--with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl /
--with-mhash --enable-pcntl --enable-sockets --with-xmlrpc /
--enable-zip --enable-soap --disable-phar
make
make install
作者 “ 出发了”
linux一键安装web环境全攻略 在linux系统中怎么一键安装web环境方法
Linux网络基本网络配置方法介绍 如何配置Linux系统的网络方法
Linux下DNS服务器搭建详解 Linux下搭建DNS服务器和配置文件
对Linux进行详细的性能监控的方法 Linux 系统性能监控命令详解
linux系统root密码忘了怎么办 linux忘记root密码后找回密码的方法
Linux基本命令有哪些 Linux系统常用操作命令有哪些
Linux必学的网络操作命令 linux网络操作相关命令汇总
linux系统从入侵到提权的详细过程 linux入侵提权服务器方法技巧
linux系统怎么用命令切换用户登录 Linux切换用户的命令是什么
在linux中添加普通新用户登录 如何在Linux中添加一个新的用户
2012-07-10
CentOS 6.3安装(详细图解教程)
Linux怎么查看网卡驱动?Linux下查看网卡的驱动程序
centos修改主机名命令
Ubuntu或UbuntuKyKin14.04Unity桌面风格与Gnome桌面风格的切换
FEDORA 17中设置TIGERVNC远程访问
StartOS 5.0相关介绍,新型的Linux系统!
解决vSphere Client登录linux版vCenter失败
LINUX最新提权 Exploits Linux Kernel <= 2.6.37
nginx在网站中的7层转发功能