其中参考文档:张宴BLOG linuxtone.org论坛文档 官方文档
同文发表在:http://www.linuxtone.org/thread-441-1-1.html
http://liuyu.blog.51cto.com/183345/82841
及CU个人空间
下次将写为什么我们需要使用nginx 它有那此功能,与apache相比优势在那。
Nginx ("engine x") 是一个高 *** 能的 HTTP 和反向代理服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过两年半了。Igor 将源代 *** 以类BSD许可证的形式发布。
Nginx官方wiki:http://wiki.codemongers.com/NginxChs
openx官方首页:http://www.openx.org
php-fpm官网:http://php-fpm.anight.org/index.html
本文安装环境:
os:rh8 ,centos5
kernel:2.6
相关软件包:libjpeg libpng freetype libxml2 zlib (这些可以用RPM包安装,相应的开发包也装上*-devel)
nginx0.6.31 http://sysoev.ru/nginx/nginx-0.6.31.tar.gz
pcre7.7 ftp://ftp.csx.cam.ac.uk/pub/soft ... cre/pcre-7.7.tar.gz
php5.2.6 http://www.php.net/get/php-5.2.6.tar.gz/from/this/mirror
mysql 5.0 我这里用的压缩版,直接解压设置权限使用的
xcache1.2.2 http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
php-fpm http://php-fpm.anight.org/downlo ... 6-fpm-0.5.8.diff.gz (注意5.0的PHP没有相应的补丁包,php-fpm是为PHP打的一个FastCGI管理补丁,可以平滑变更php.ini配置而无需重启php-cgi)
同时也可以安装zend
openx2.4 http://download.openx.org/openx-2.4.6.tar.gz
nginx+php5+fastcgi+xcache+mysql 这套系统还可以安装discuz+zend
安装过程:
一、mysql
shell> /usr/sbin/groupadd mysql
shell> /usr/sbin/useradd -g mysql mysql
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
我这里也是省事,没有选择编译安装,其实最主要是注意权限问题。mysql启动问题就不大。
二、PHP (本人在RH8上也安装成功,就是相关的依赖比较多)
shell>tar zxvf php-5.2.6.tar.gz
shell>gzip -cd php-5.2.6-fpm-0.5.8.diff.gz | patch -d php-5.2.6 -p1
shell>cd php-5.2.6/
会员注册
会员登录
个人空间