赞助连接

赞助连接

阅 读 文 章

初次体验:nginx+php+fastcg+xcache+mysql+openx

[来源:网上转载 (http://bbs.chinaunix.net) | 作者:网友(网络转载) | 时间:2008-06-19 | 浏览:人次 ]

nginx+php+fastcg+xcache+mysql+openx说明:本文是使用nginx 安装广告发布系统openx2.4
其中参考文档:张宴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/
TAG标签 : 体验 mysql 安装 shell 可以 PHP 相关 the -R you using

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表
网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.