Centos搭建高性能WEB服务器Nginx+PHP+MYSQL+Discuz论坛

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

Centos搭建高性能WEB服务器Nginx+PHP+MYSQL+Discuz论坛Nginx为俄罗斯访问量第二的Rambler.ru将源代码以类BSD已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。是一个高性能Web的高性能和稳定性.Nginx+PHP+MySQL的10这可是专家说的哦。。。)。搭建:LNMP+BBS准备工具:libiconv-1.13.1.1.tar.gzlibmcrypt-2.5.8.tar.gzmhash-0.9.9.9.tar.gzmcrypt-2.6.8.tar.gzmysql-5.1.58.tar.gzphp-5.2.14.tar.bz2nginx-1.0.0.tar.gzphpMyAdmin-3.0.0-rc1-all-languages.tarDiscuz_X2_SC_UTF8安装步骤一,编译安装PHP5.2.14我把上面的做成如下脚本:#tarzxvflibiconv-1.13.1.tar.gz#cdlibiconv-1.13.1/#./configure--prefix=/usr/local#make;makeinstall#cd../#tarzxvflibmcrypt-2.5.8.tar.gz#cdlibmcrypt-2.5.8/#./configure#make;makeinstall#/sbin/ldconfig#cdlibltdl/#./configure--enable-ltdl-install#make;makeinstall#cd../../#tarzxvfmhash-0.9.9.9.tar.gz#cdmhash-0.9.9.9/#./configure#make;makeinstall#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.1PS:我把上面的做成如下脚本ln-s/usr/local/lib/libmcrypt.so/usr/lib/libmcrypt.soln-s/usr/local/lib/libmcrypt.so.4/usr/lib/libmcrypt.so.4ln-s/usr/local/lib/libmcrypt.so.4.4.8/usr/lib/libmcrypt.so.4.4.8ln-s/usr/local/lib/libmhash.a/usr/lib/libmhash.aln-s/usr/local/lib/libmhash.la/usr/lib/libmhash.laln-s/usr/local/lib/libmhash.so/usr/lib/libmhash.soln-s/usr/local/lib/libmhash.so.2/usr/lib/libmhash.so.2ln-s/usr/local/lib/libmhash.so.2.0.1/usr/lib/libmhash.so.2.0.1############################################chmod+xln.sh#tarzxvfmcrypt-2.6.8.tar.gz#cdmcrypt-2.6.8/#/sbin/ldconfig#./configure#make#makeinstall#cd../二.创建mysql我这在装MYSQL提示用户存在!配置#tarzxvfmysql-5.1.58.tar.gz#cdmysql-5.1.58#./configure--prefix=/usr/local/mysql--enable-assembler--with-extra-charsets=complex--enable-thread-safe-client--with-big-tables--with-readline--with-ssl--with-embedded-server--enable-local-infile--with-plugins=innobase#make;makeinsatll三.进入PHP指定编译选项安装cdphp-5.2.14/./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-freetype-dir--with-jpeg-dir--with-png-dir--with-iconv-dir=/usr/local--with-zlib--with-libxml-dir=/usr--enable-xml--with-curl--with-curlwrappers--enable-sqlite-utf8--with-pdo-mysql=/usr/local/mysql--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--enable-mbregex--with-openssl--enable-pcntl--enable-fpm--with-fpm-user==ww--enable-mbstring--with-gd--enable-gd-native-ttf--enable-sockets--with-xmlrpc--enable-zip--enable-soap--disable-debug--enable-safe-mode--with-mcrypt--with-mhash复制配置文件php.ini-dist

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功