标签:lnmp全源码安装
lnmp全源码安装
1. zlib-1.2.8
./configure --prefix=/usr/local/lnmp/zlib && make && make install
2. libxml2-2.6.30
./configure --prefix=/usr/local/lnmp/libxml2 --with-zlib=/usr/local/lnmp/zlib && make && make install
3. libmcrypt-2.5.8
./configure --prefix=/usr/local/lnmp/libmcrypt && make && make install
先安装gcc-c++
4. libunwind-1.1
./configure --prefix=/usr/local/lnmp/gperftools && make && make install
5. gperftools-2.0
./configure --prefix=/usr/local/lnmp/gperftools --enable-frame-pointers && make && make install
6、libpng-1.6.2
ln -sv /usr/local/lnmp/zlib/include/* /usr/include/
LDFLAGS="-L/usr/local/lnmp/zlib/lib" ./configure --prefix=/usr/local/lnmp/libpng && make && make install
7. jpeg-9
./configure --prefix=/usr/local/lnmp/jpeg9 && make && make install
8. freetype-2.5.0.1
echo PATH=$PATH:/usr/local/lnmp/libpng/bin >>/etc/profile.d/lnmp.sh
source /etc/profile
./configure --prefix=/usr/local/lnmp/freetype && make && make install
9. gd-2.1.0
LDFLAGS="-L/usr/local/lnmp/zlib/lib -L/usr/local/lnmp/libpng/lib" ./configure --prefix=/usr/local/lnmp/gd2 --with-zlib=/usr/local/lnmp/zlib/ --with-png=/usr/local/lnmp/libpng/ --with-jpeg=/usr/local/lnmp/jpeg9/ --with-freetype=/usr/local/lnmp/freetype/
10. pcre-8.33
./configure --prefix=/usr/local/lnmp/pcre && make && make install
11. openssl-1.0.1e
./config --prefix=/usr/local/lnmp/openssl && make && make install
12. nginx-1.5.1
##sed -i ‘s@usr\/local@usr\/local\/lnmp\/pcre@g‘ /usr/local/src/nginx-1.5.1/auto/lib/pcre/conf
##修改/usr/local/src/nginx-1.5.1/auto/lib/openssl/conf文件中case语句中的“*)”下面语句中的含有.openssl字段全部删除,只保留其余的部分。
##修改/usr/local/src/nginx-1.5.1/auto/lib/zlib/conf文件中case语句中的“*)”下面的$ZLIB改为/usr/local/lnmp/zlib/lib
./configure --prefix=/usr/local/lnmp/nginx --with-http_flv_module --with-http_stub_status_module --with-google_perftools_module --with-http_gzip_static_module --with-pcre-jit --with-zlib=/usr/local/lnmp/zlib/ --with-http_ssl_module --with-openssl=/usr/local/lnmp/openssl/ && make && make install
13. ncurses-5.9
./configure --prefix=/usr/local/lnmp/ncurses --with-shared --with-profile --without-debug && make && make install
14. mysql-5.6.12
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/lnmp/mysql -DMYSQL_DATADIR=data -DMYSQL_UNIX_ADDR=/usr/local/lnmp/mysql/data/mysql.sock -DEFAULT_CHARSET=utf8 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DWITH_ZLIB=bundled -DWITH_SSL=bundled -DWITH_TCP_PORT=3306 -DMYSQL_USER=mysql #-DWITH_INNODB_MEMCACHED=1 -DCURSES_INCLUDE_PATH=/usr/local/lnmp/ncurses/include/ -DCURSES_LIBRARY=/usr/local/lnmp/ncurses/lib/libncurses.so && make && make install
15. php-5.5.0
LDFLAGS="-L/usr/local/lnmp/libpng/lib -L/usr/local/lnmp/zlib/lib -L/usr/local/lnmp/freetype/lib" ./configure --prefix=/usr/local/lnmp/php --with-config-file-path=/usr/local/lnmp/php/etc --with-mysql=/usr/local/lnmp/mysql/ --with-libxml-dir=/usr/local/lnmp/libxml2 --with-png-dir=/usr/local/lnmp/libpng --with-jpeg-dir=/usr/local/lnmp/jpeg9 --with-freetype-dir=/usr/local/lnmp/freetype --with-gd --with-mcrypt=/usr/local/lnmp/libmcrypt --with-mysqli=/usr/local/lnmp/mysql/bin/mysql_config --with-openssl=/usr/local/lnmp/openssl/ --enable-soap --enable-mbstring=all --enable-sockets --enable-fpm --enable-zip --enable-opcache && make && make install
本文出自 “一切皆有可能” 博客,请务必保留此出处http://noican.blog.51cto.com/4081966/1656584
标签:lnmp全源码安装
原文地址:http://noican.blog.51cto.com/4081966/1656584