参考terryfyp的freebsd+nginx+php+mysql+zend系统优化防止ddos +傻瓜式ports安装 一文 cvs更新 ports更新 cd /usr/ports/net/cvsup-without-g make install clean cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile ee /etc/ports-supfile 将其中的#*default host=CHANGE_THIS.FreeBSD.org一行改为 *default host=cvsup3.FreeBSDchina.org /usr/local/bin/cvsup -g -L 2 /etc/ports-supfile 安装mysql cd /u...
by lhm0491 - BSD - 2009-01-03 19:10:48 阅读(4711) 回复(11)
nginx+awstats+geoip详细步骤 来源:http://bbs.s108.com 转载请注明出处. 参考了以下文章: 牛博网友博客:http://www.bullog.cn/blogs/shunz/archives/157311.aspx 车东博客:http://www.chedong.com/tech/awstats.html awstats官网文档:http://awstats.sourceforge.net/docs/awstats_setup.html 无名氏博客:http://www.structure28.com/blog/2007/08/nginx-awstats-and-logrotated.html nginx官方wiki:http://wiki.codemongers.co...
本文根据 张宴 的 nginx 0.5.33 + PHP 5.2.5(FastCGI)搭建胜过Apache 10倍的Web服务器(第2版) ,尝试在solaris 10 下配置 nginx 0.6.31。 nginx 的中文维基: http://wiki.codemongers.com/nginxChs 安装步骤: 系统为Solaris 10,全新完全安装。 一、获取相关开源程序: 1、下载程序源码包到当前目录: 本文中提到的所有开源软件为截止到2008年5月14日的最新稳定版。我将它们打了三个压缩包。 ...
#/usr/ports/www/nginx #make config lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x Options for nginx 0.5.34 x x lqqqqq^(-)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x x x [X] HTTP_ADDITION_MODULE Enable http_addition module x x x x [X] HTTP_DAV_MODULE Enable http_webdav module x x x x [X] HT...
环 境: rhel4.7(内核 2.6.9-78.EL) 相关软件包: nginx-0.8.8.tar.gz php-5.2.8.tar.gz php-5.2.8-fpm-0.5.10.diff.gz pcre-devel-4.5-4.el4_6.6.rpm (安装nginx的依赖包) 1.php-fpm的安装 # gunzip php-5.2.8.tar.gz | tar xvf - (解压包php-5.2.8,将生成目录php-5.2.8) # gunzip php-5.2.8-fpm-0.5.10.diff.gz (解压包php-5.2.8-fpm-0.5.10.diff) # patch -d php-5.2.8 -p1 nobo...
折腾了一个晚上,基本上都是用packages安装,php用ports安装,由于PHP只用了FastCGI模式,所以phpmyadmin提示缺少模块而无法安装,最后下载的源码安装。整个过程中,竟然发现最耗费时间的PHP的那些模块!:em06: 其实安装完成后再回过头来看,步骤熟练后,加上编译时间,半个小时足够!:mrgreen: 先做个规划,操作步骤分三块,分别用三个帖子来写,分别是:软件的安装,软件的设置,启动调试及遇到错误说明。 主要思路:用php-f...
FreeBSD 下 nginx 的安装配置 在freebsd7.0RC1下试验,其它平台未测试 一、安装 1、php 代码:cd /usr/ports/lang/php5 make install clean2、nginx 代码:cd /usr/ports/www/nginx make install clean3、lighttpd 代码:cd /usr/ports/www/lighttpd make cd ./work/lighttpd-1.4.18/src cp spawn-fcgi /usr/local/bin cd ../../../ make clean4、启动spawn-fcgi 代码:spawn-fcgi -a 127.0.0.1 -p 8888 -C 25 -u www -f /usr/l...
[网站架构]安装nginx(负载均衡器) 一、) 安装nginx 1.) 安装 nginx发音为[engine x],是由俄罗斯人Igor Sysoev建立的项目,基于BSD许可。据说他当初是F5的成员之一,英文主页: http://nginx.net 。俄罗斯的一些大网站已经使用它超过两年多了,一直表现不凡。 nginx的编译参数如下:[root@localhost]#./configure --prefix=/usr/local/server/nginx --with-openssl=/usr/include \ --with-pcre=/usr/include/pcre/ --with-http...
nginx 的 rewrite 网站页面地址重写功能需要正则表达式模块 PCRE ,另外页面压缩传输需要 zlib 。 nginx 配置时只需引用下载后解压的 PCRE 和 ZLIB 源文件即可: ./configure –prefix=/usr/local/nginx –with-pcre=/backup/pcre-7.7 –with-zlib=/backup/zlib-1.2.3 在网上看到的另一种方法是: nginx的编译参数如下: [root@localhost]#./configure –prefix=/usr/local/server/nginx –with-openssl=/usr/include ...
我使用的是Freebsd7.1,使用port安装nginx + php后,只能打开静态页面,php的打不开,提示下面: The page you are looking for is temporarily unavailable. Please try again later. 我的nginx.conf如下: [code]user www; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 51...
软件都安装在 E:\WAMP目录下,例如E:\WAMP\php ,E:\WAMP\nginx 我网站的根目录是:E:\website,下面只有一个index.php文件,里面是phpinfo()这个函数 nginx的配置文件如下 nginx.conf文件内容 [code] #user nobody; worker_processes 1; error_log logs/error.log; pid logs/nginx.pid; events { worker_connections 64; } http { include /cygdrive/e/wamp/nginx/conf/mime.types; default_...