lemp安装配置mysql-5.5.15、 nginx-1.0.0、php-5.3.8
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
相关新闻>>
- 发表评论
-
- 最新评论 更多>>