<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>月影鹏鹏 &#187; nginx</title>
	<atom:link href="http://jk.aiwaly.com/wp/tag/nginx/feed" rel="self" type="application/rss+xml" />
	<link>http://jk.aiwaly.com</link>
	<description>不断探索,追求卓越,做快乐自己</description>
	<lastBuildDate>Wed, 28 Dec 2011 08:29:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>通过shell+crontab实现自动分割nginx日志</title>
		<link>http://jk.aiwaly.com/wp/nginx-cut-log.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx-cut-log.html#comments</comments>
		<pubDate>Sat, 11 Sep 2010 09:35:43 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[web应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=2739</guid>
		<description><![CDATA[月影鹏鹏今天又对nginx分割一下日志，一开始上线的技术没注意这个工作，结果不久日志文件就上G了，很痛苦。分割日志很简单，首先把日志文件复制到别的地方，然后再通知nginx重新生成日志就可以了。shell脚本如下：
#!/bin/bash
logs_path=&#8221;/opt/nginx/logs/&#8221;
mv ${logs_path}access.log ${logs_path}access_$(date -d &#8220;yesterday&#8221; +&#8221;%Y%m%d&#8221;).log
kill -USR1 `cat /nginx/logs/nginx.pid`
这种方法是大家普遍采用的，月影鹏鹏 在网上又搜索到下面还有另一种方法大家可以参考.
#! /bin/bash
nginx_app=/home/nginx/sbin/nginx #设置nginx的目录
logs_dir=/data/logs/ #log目录
bak_dir=/data/logs/bak/ #log备份目录
#先把现有的log文件挪到备份目录临时存放
cd $logs_dir
echo &#8220;moving logs&#8221;
/bin/mv *.log $bak_dir
sleep 3
#重建nginx log
echo &#8220;rebuild logs&#8221;
echo &#8220;$nginx_app -s reopen&#8221;
$nginx_app -s reopen
#按天打包log文件
echo &#8220;begining of tar&#8221;
cd $bak_dir
/bin/tar czf `date +%Y%m%d`.tgz *.log
#删除备份目录的临时文件
echo &#8220;rm logs&#8221;
rm -f *.log
echo &#8220;done&#8221;
并添加执行权限：
view sourceprint?1.chmod +x /root/daily_logs.sh
然后增加crontab，这里以每晚0点执行为例：
view sourceprint?1.[root@localhost ~]# crontab -e
2.0 0 * * * /root/daily-task.sh &#62; /dev/null 2&#62;&#38;1
保存后退出，以后就可以自动分割nginx的日志啦~
此方法可以参考 [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx-cut-log.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nginx学习之一Location，rewrite，防盗链，禁止访问</title>
		<link>http://jk.aiwaly.com/wp/nginx-location-rewrite.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx-location-rewrite.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 00:46:08 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/wp/nginx%e5%ad%a6%e4%b9%a0%e4%b9%8b%e4%b8%80location%ef%bc%8crewrite%ef%bc%8c%e9%98%b2%e7%9b%97%e9%93%be%ef%bc%8c%e7%a6%81%e6%ad%a2%e8%ae%bf%e9%97%ae.html</guid>
		<description><![CDATA[一、介绍Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx，它的发音为“engine X”， 是一个高性能的HTTP和反向代理服务器，同时也是一个IMAP/POP3/SMTP 代理服务器．
二、Location语法语法：location [=&#124;~&#124;~*&#124;^~] /uri/ { … }
注：
1、~   为区分大小写匹配
2、~* 为不区分大小写匹配
3、!~和!~*分别为区分大小写不匹配及不区分大小写不匹配
 示例一：
location  / { }
匹配任何查询，因为所有请求都以 / 开头。但是正则表达式规则将被优先和查询匹配。
示例二：
location =/ {}
仅仅匹配/
示例三：
location ~* \.(gif&#124;jpg&#124;jpeg)$ ｛
rewrite \.(gif&#124;jpg)$ /logo.png;
｝
注：不区分大小写匹配任何以gif，jpg，jpeg结尾的文件
三、ReWrite语法
last – 基本上都用这个Flag。
break – 中止Rewirte，不在继续匹配
redirect – 返回临时重定向的HTTP状态302
permanent – 返回永久重定向的HTTP状态301
1、下面是可以用来判断的表达式：
-f和!-f用来判断是否存在文件
-d和!-d用来判断是否存在目录
-e和!-e用来判断是否存在文件或目录
-x和!-x用来判断文件是否可执行
2、下面是可以用作判断的全局变量
例：http://localhost:88/test1/test2/test.php
$host：localhost
$server_port：88
$request_uri：http://localhost:88/test1/test2/test.php
$document_uri：/test1/test2/test.php
$document_root：D:\nginx/html
$request_filename：D:\nginx/html/test1/test2/test.php
四、Redirect语法
server {
listen 80;
server_name start.igrow.cn;
index index.html index.php;
root html;
if ($http_host !~ “^star\.igrow\.cn$&#38;quot [点击图片可在新窗口打开] {
rewrite ^(.*) http://star.igrow.cn$1 redirect;
}
}
五、防盗链location ~* \.(gif&#124;jpg&#124;swf)$ {
valid_referers none blocked start.igrow.cn [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx-location-rewrite.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>nginx服务器介绍</title>
		<link>http://jk.aiwaly.com/wp/nginx-introduction.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx-introduction.html#comments</comments>
		<pubDate>Sun, 07 Feb 2010 05:08:24 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 安全]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[探索中的鹏鹏工作室]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=1939</guid>
		<description><![CDATA[
Nginx 可用于php运行环境、网站负载均衡、反向代理、缓存加速服务等应用！
==Nginx概述 ==
HTTP基础功能：
处理静态文件，索引文件以及自动索引；
反向代理加速(无缓存)，简单的负载均衡和容错；
FastCGI，简单的负载均衡和容错；
Nginx (&#8220;engine x&#8221;) 是一个高性能的 HTTP 和 反向代理 服务器，也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式发布。尽管还是测试版，但是，Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。
Nginx 超越 Apache 的高性能和稳定性，使得国内使用 Nginx 作为 Web 服务器的网站也越来越多，其中包括新浪博客、新浪播客、网易新闻等门户网站频道，六间房、56.com等视频分享网站，Discuz!官方论坛、水木社区等知名论坛，豆瓣、YUPOO相册、海内SNS、迅雷在线等新兴Web 2.0网站。
Nginx 是一个很牛的高性能Web和反向代理服务器, 它具有有很多非常优越的特性:
在高连接并发的情况下，Nginx是Apache服务器不错的替代品: Nginx在美国是做虚拟主机生意的老板们经常选择的软件平台之一. 能够支持高达 50,000 个并发连接数的响应, 感谢Nginx为我们选择了 epoll and kqueue作为开发模型.
Nginx作为负载均衡服务器: Nginx 既可以在内部直接支持 Rails 和 PHP 程序对外进行服务, 也可以支持作为 HTTP代理服务器对外进行服务. Nginx采用C进行编写, 不论是系统资源开销还是CPU使用效率都比 Perlbal 要好很多.
作为邮件代理服务器: Nginx 同时也是一个非常优秀的邮件代理服务器（最早开发这个产品的目的之一也是作为邮件代理服务器）, Last.fm 描述了成功并且美妙的使用经验.
Nginx [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx-introduction.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx+php+fpm+apc=awesome</title>
		<link>http://jk.aiwaly.com/wp/nginxphpfpmapcawesome.html</link>
		<comments>http://jk.aiwaly.com/wp/nginxphpfpmapcawesome.html#comments</comments>
		<pubDate>Thu, 24 Dec 2009 07:49:08 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[English Version]]></category>
		<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[fpm]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=1608</guid>
		<description><![CDATA[
The following guide will walk you through setting up possibly the fastest way to serve PHP known to man. If there is a faster way, I’ve not yet found it climbing through zillions of blog posts out there on the subject. In this article, we’ll be installing nginx http server, PHP with the PHP-FPM patches, [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginxphpfpmapcawesome.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx vs Yaws vs MochiWeb</title>
		<link>http://jk.aiwaly.com/wp/nginx-vs-yaws-vs-mochiweb.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx-vs-yaws-vs-mochiweb.html#comments</comments>
		<pubDate>Thu, 24 Dec 2009 06:30:31 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[English Version]]></category>
		<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[mochiweb]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[yaws]]></category>

		<guid isPermaLink="false">http://jk.scanmon.com/?p=1600</guid>
		<description><![CDATA[

Update 1: Retest data (using different machine and Erlang kernel polling) added near bottom of post.
Update 2: More details and testing on the weird MochiWeb kernel polling results, bottom of post.
Almost a year ago I did some Apache and Nginx performance testing. Apparently I have the bug again and have done some performance testing on [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx-vs-yaws-vs-mochiweb.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx安装简记(含PHP支持、虚拟主机、反向代理负载均衡)</title>
		<link>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e7%ae%80%e8%ae%b0%e5%90%abphp%e6%94%af%e6%8c%81%e3%80%81%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e3%80%81%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e7%ae%80%e8%ae%b0%e5%90%abphp%e6%94%af%e6%8c%81%e3%80%81%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e3%80%81%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 00:56:03 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jacky.scanmon.com/1520.html</guid>
		<description><![CDATA[Nginx，据说高性能和稳定性比Apache还牛，并发连接处理能力强，低系统资源消耗。目前已有250多万web站点在使用（据http://jacky.scanmon.com/1520.html）。
################################################################
系统环境：RHEL5 [ 2.6.18-8.el5xen ]
软件环境：
nginx-0.7.17
lighttpd-1.4.20.tar.gz
pcre-6.6-1.1
pcre-devel-6.6-1.1
php-5.1.6-5.el5
参考下载地址：
http://sysoev.ru/nginx/nginx-0.7.17.tar.gz (最新稳定版为0.6.32)
http://www.lighttpd.net/download/lighttpd-1.4.20.tar.gz
##########################################################################
一、安装支持软件
1、安装lighttpd以提取spawn-fcgi (如果站点不包含php页面，可以不安装spaw-fcgi、PHP)
shell&#62; tar zxvf lighttpd-1.4.20.tar.gz
shell&#62; cd lighttpd-1.4.20/
shell&#62; ./configure &#38;&#38; make
shell&#62; cp -p src/spawn-fcgi /usr/sbin/spawn-fcgi
2、安装pcre和php（以下软件）
可使用RHEL5自带的rpm包安装，过程略。
二、安装nginx
shell&#62; tar zxvf nginx-0.7.17.tar.gz
shell&#62; cd nginx-0.7.17/
shell&#62; ./configure &#8211;prefix=/opt/nginx &#8211;with-http_stub_status_module &#8211;with-http_ssl_module
shell&#62; make &#38;&#38; make install
shell&#62; ln -sf /opt/nginx/sbin/nginx /usr/sbin/
三、nginx运行控制
1、检查配置文件有无语法错误
shell&#62; nginx -t
2、启动（不带任何参数直接运行即可）
shell&#62; nginx
3、重新加载nginx配置
shell&#62; killall -s HUP nginx    #//或者 killall -1 nginx
4、处理完当前请求后退出nginx
shell&#62; killall -s QUIT nginx    #//或者 killall -3 nginx
四、nginx配置用例
1、常规配置
shell&#62; vi [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e7%ae%80%e8%ae%b0%e5%90%abphp%e6%94%af%e6%8c%81%e3%80%81%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e3%80%81%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e8%b4%9f%e8%bd%bd%e5%9d%87%e8%a1%a1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx虚拟主机防Webshell完美版(图)</title>
		<link>http://jk.aiwaly.com/wp/nginx%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e9%98%b2webshell%e5%ae%8c%e7%be%8e%e7%89%88%e5%9b%be.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e9%98%b2webshell%e5%ae%8c%e7%be%8e%e7%89%88%e5%9b%be.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 00:28:41 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[web应用]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://jacky.scanmon.com/?p=1517</guid>
		<description><![CDATA[
我们先来看下nginx.conf
server
{
listen       80;
server_name  www.a.com;
index index.html index.htm index.php;
root  /data/htdocs/www.a.com/;
#limit_conn   crawler  20;
location ~ .*\.(php&#124;php5)?
{
#fastcgi_pass  unix:/tmp/php-cgi.sock;
fastcgi_pass  127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
server
{
listen       80;
server_name  www.b.com;
index index.html index.htm index.php;
root  /data/htdocs/www.b.com/;
#limit_conn   crawler  20;
location ~ .*\.(php&#124;php5)?
{
#fastcgi_pass  unix:/tmp/php-cgi.sock;
fastcgi_pass  127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
nginx在80端口接受到访问请求后，会把请求转发给9000端口的php-cgi进行处理
而如果修改php.ini中open_basedir= ../../../../../ ，针对两个不同的网站，www.a.com , www.b.com都会把请求发送给9000处理，而如果先访问www.a.com那么../../../../../就会变成A网站的根目录地址，然后 这时候如果你访问www.b.com，那么open_basedir仍然是A网站的根目录，但是对于B来说，又是不允许访问的，所以就造成了，第二个站点 打开以后会出现no input files，那么有什么解决办法呢？
我们可以把不同的虚拟主机发送到不同的php-cgi端口进行处理，当然响应的php-fpm配置文件中的open_basedir也不同。。我们来看看怎么配置。。
首先,nginx.conf配置如下
server
{
listen       80;
server_name  www.a.com;
index index.html index.htm index.php;
root  /data/htdocs/www.a.com/;
#limit_conn   crawler  20;
location ~ .*\.(php&#124;php5)?
{
#fastcgi_pass  unix:/tmp/php-cgi.sock;
fastcgi_pass  127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
}
server
{
listen       80;
server_name  www.b.com;
index index.html index.htm [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e9%98%b2webshell%e5%ae%8c%e7%be%8e%e7%89%88%e5%9b%be.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian 5下的nginx+php+mysql的解决方案</title>
		<link>http://jk.aiwaly.com/wp/debian-5%e4%b8%8b%e7%9a%84nginxphpmysql%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88.html</link>
		<comments>http://jk.aiwaly.com/wp/debian-5%e4%b8%8b%e7%9a%84nginxphpmysql%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88.html#comments</comments>
		<pubDate>Sat, 12 Dec 2009 01:53:09 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[web应用]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://jacky.scanmon.com/?p=1399</guid>
		<description><![CDATA[
月影鹏鹏在debian下配置nginx+php+mysql 参考了以下文档
使用php-fpm就必须重新编译php，不能使用系统自带的php。MySQL使用Debian自带的，Nginx是从Debian官方软件库中下载的最新版本。
安装Nginx
Debian 5系统自带的nginx版本比较低，现在Nginx的新稳定版本0.7.61，即将发行的Debian 6里面带的是最新版本的nginx，测试后发现这个nginx在Debian 5下可以运行。我们在 http://ftp.us.debian.org/debian/pool/main/n/nginx/ 下载了Nginx的deb包，放到了 http://rashost.com/download/ 方便客户下载
安装命令：
dpkg -i nginx_0.7.61-3_amd64.deb
/etc/init.d/nginx start
mkdir -p /var/www/nginx-default
echo &#8216;nginx ok&#8217;>/var/www/nginx-default/index.html
echo &#8216;&#8216; > /var/www/nginx-default/test.php
另外运行dpkg -L nginx命令可以看到nginx的文件都安装在哪些目录下面了
Debian下nginx的缺省网页目录是/var/www/nginx-default，这个目录安装的时候没有创建，我们是手工创建的。
通过浏览器访问，应该能看到nginx的缺省网页了，说明nginx正常工作了！
安装MySQL
我们使用Debian自带的MySQL，安装命令：
apt-get install mysql-server-5.0
/etc/init.d/mysql start
运行mysql -uroot -p命令，应该可以正常连接到MySQL
安装php &#038; php-fpm
安装php所需要的库文件：
apt-get update
apt-get install libxml2 libldap-2.4-2 libmhash2 curl libpng3 libjpeg62 libsasl2-2 libmcrypt4
到 http://rashost.com/download/ 下载安装我们自己在Debian下编译的php-fpm:
cd /opt
tar zxf php-fpm-5.2.10-amd64.tar.gz
ln -s /opt/php/sbin/php-fpm /etc/init.d/php-fpm
update-rc.d -f php-fpm defaults
/etc/init.d/php-fpm start
整合
首先在/var/www/nginx-default目录下创建文件test.php，其内容很简单，只要下面一行：

假设所在VPS的地址是debian5.rashost.com，这时通过浏览器访问http://debian5.rashost.com/test.php是得不到正确的显示结果的。
修改nginx的配置文件/etc/nginx/sites-enabled/default，在文件内搜索fastcgi_pass，修改该部分内容为：
      [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/debian-5%e4%b8%8b%e7%9a%84nginxphpmysql%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx 进程异常终止受Single 25影响</title>
		<link>http://jk.aiwaly.com/wp/nginx-%e8%bf%9b%e7%a8%8b%e5%bc%82%e5%b8%b8%e7%bb%88%e6%ad%a2%e5%8f%97single-25%e5%bd%b1%e5%93%8d.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx-%e8%bf%9b%e7%a8%8b%e5%bc%82%e5%b8%b8%e7%bb%88%e6%ad%a2%e5%8f%97single-25%e5%bd%b1%e5%93%8d.html#comments</comments>
		<pubDate>Thu, 10 Dec 2009 15:34:04 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[question (问题)]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://jacky.scanmon.com/?p=1395</guid>
		<description><![CDATA[
突然发现 nginx 进程总是重启
查看了Nginx的错误日志：
[alert] 30183#0: worker process 30184 exited on signal 25
这个错误很熟悉，之前遇到过。
在这个错误之前最后一个错误就是
write() to &#8220;/data/logs/access.log&#8221; was incomplete
先查了一下Single:25的含义，
25) SIGXFSZ
当进程企图扩大文件以至于超过文件大小资源限制
发现原log  文件 nginx 写不进去了,  清空文件后,问题消失 !
]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx-%e8%bf%9b%e7%a8%8b%e5%bc%82%e5%b8%b8%e7%bb%88%e6%ad%a2%e5%8f%97single-25%e5%bd%b1%e5%93%8d.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx安装和配置</title>
		<link>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%ae.html</link>
		<comments>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%ae.html#comments</comments>
		<pubDate>Mon, 12 May 2008 07:01:10 +0000</pubDate>
		<dc:creator>月影鹏鹏</dc:creator>
				<category><![CDATA[Architecture(架构)]]></category>
		<category><![CDATA[linux 应用]]></category>
		<category><![CDATA[开源软件]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.yueying.com/wordpress/?p=7</guid>
		<description><![CDATA[Nginx 使用 Unix 下常用的 ‘./configure &#38;&#38; make &#38;&#38; make install’ 过程来编译安装。
configure 脚本确定系统所具有一些特性，特别是 nginx 用来处理连接的方法。然后，它创建 Makefile 文件。
configure 支持下面的选项：
–prefix=&#60;path&#62; &#8211; Nginx安装路径。如果没有指定，默认为 /usr/local/nginx。
–sbin-path=&#60;path&#62; &#8211; Nginx可执行文件安装路径。只能安装时指定，如果没有指定，默认为&#60;prefix&#62;/sbin/nginx。
–conf-path=&#60;path&#62; &#8211; 在没有给定-c选项下默认的nginx.conf的路径。如果没有指定，默认为&#60;prefix&#62;/conf/nginx.conf。
–pid-path=&#60;path&#62; &#8211; 在nginx.conf中没有指定pid指令的情况下，默认的nginx.pid的路径。如果没有指定，默认为 &#60;prefix&#62;/logs/nginx.pid。
–lock-path=&#60;path&#62; &#8211; nginx.lock文件的路径。
–error-log-path=&#60;path&#62; &#8211; 在nginx.conf中没有指定error_log指令的情况下，默认的错误日志的路径。如果没有指定，默认为 &#60;prefix&#62;/logs/error.log。
–http-log-path=&#60;path&#62; &#8211; 在nginx.conf中没有指定access_log指令的情况下，默认的访问日志的路径。如果没有指定，默认为 &#60;prefix&#62;/logs/access.log。
–user=&#60;user&#62; &#8211; 在nginx.conf中没有指定user指令的情况下，默认的nginx使用的用户。如果没有指定，默认为 nobody。
–group=&#60;group&#62; &#8211; 在nginx.conf中没有指定user指令的情况下，默认的nginx使用的组。如果没有指定，默认为 nobody。
–builddir=DIR &#8211; 指定编译的目录
–with-rtsig_module &#8211; 启用 rtsig 模块
–with-select_module –without-select_module &#8211; Whether or not to enable the [...]]]></description>
		<wfw:commentRss>http://jk.aiwaly.com/wp/nginx%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%ae.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

