<?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>【知行合一】-Poople&#039;s Blog &#187; Web服务器</title>
	<atom:link href="http://99dev.net/archives/category/tech/webserv/feed" rel="self" type="application/rss+xml" />
	<link>http://99dev.net</link>
	<description>智巧终归庸俗，雄谋只余虚话</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:52:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Original]有进程僵死,长期驻留在后台,杀不了</title>
		<link>http://99dev.net/archives/859</link>
		<comments>http://99dev.net/archives/859#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:13:36 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/859</guid>
		<description><![CDATA[故障现象
某Web服务器，突然出现以下问题，php-cgi僵死在进程里，无法重启
www 9463 0.0 0.3 41996 13612 ? D Apr19 1:22 /usr/local/php/bin/php-cgi &#8211;fpm      www 20858 0.0 0.3 40408 12932 ? D May05 1:55 /usr/local/php/bin/php-cgi &#8211;fpm       www 20866 0.0 0.3 40688 13296 ? D May05 1:53 /usr/local/php/bin/php-cgi &#8211;fpm       www 20878 0.0 0.3 40932 13604 ? D May05 1:51 /usr/local/php/bin/php-cgi &#8211;fpm       www 24288 0.0 0.3 40436 12880 ? D Apr15 2:36 /usr/local/php/bin/php-cgi &#8211;fpm       www 26881 0.0 0.3 41596 13712 ? D Apr16 6:11 /usr/local/php/bin/php-cgi &#8211;fpm       www 26921 0.0 0.3 43224 15848 ? D Apr16 5:57 /usr/local/php/bin/php-cgi &#8211;fpm       www 26983 0.0 0.3 42736 14524 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       www 27007 0.0 0.3 42608 14248 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       www 27023 0.0 0.3 42464 15172 ? D Apr16 5:57 /usr/local/php/bin/php-cgi –fpm
<span class="readmore"><a href="http://99dev.net/archives/859" title="[Original]有进程僵死,长期驻留在后台,杀不了" target="_blank">阅读全文——共938字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="4"><strong>故障现象</strong></font></p>
<p>某Web服务器，突然出现以下问题，php-cgi僵死在进程里，无法重启</p>
<blockquote><p>www 9463 0.0 0.3 41996 13612 ? D Apr19 1:22 /usr/local/php/bin/php-cgi &#8211;fpm      <br />www 20858 0.0 0.3 40408 12932 ? D May05 1:55 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 20866 0.0 0.3 40688 13296 ? D May05 1:53 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 20878 0.0 0.3 40932 13604 ? D May05 1:51 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 24288 0.0 0.3 40436 12880 ? D Apr15 2:36 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 26881 0.0 0.3 41596 13712 ? D Apr16 6:11 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 26921 0.0 0.3 43224 15848 ? D Apr16 5:57 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 26983 0.0 0.3 42736 14524 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 27007 0.0 0.3 42608 14248 ? D Apr16 6:01 /usr/local/php/bin/php-cgi &#8211;fpm       <br />www 27023 0.0 0.3 42464 15172 ? D Apr16 5:57 /usr/local/php/bin/php-cgi –fpm</p>
</blockquote>
<p><font size="4"><strong>处理过程</strong></font></p>
<p> <span id="more-859"></span>
<p>1. “killall –9 php-cgi”无效</p>
<p>2. “pkill –9 php-cgi”无效</p>
<p>3. reboot操作系统，成功，D状态的php-cgi进程消失</p>
<p><font size="4"><strong>故障分析</strong></font></p>
<blockquote><p>D state 不是zombie进程，Z是zombie </p>
<p>D是uninterruptable sleep，看看dmesg里面是不是io driver出现问题了</p>
</blockquote>
<p><font size="4"><strong>~网上的几篇参考文章</strong></font></p>
<p>1. <a href="http://www.orczhou.com/index.php/2010/05/how-to-kill-an-uninterruptible-sleep-process/" target="_blank">How to kill an `uninterruptible sleep` process</a></p>
<p>2.<a href="http://blog.xupeng.me/2009/07/09/linux-uninterruptible-sleep-state/" target="_blank">Linux进程的Uninterruptible sleep(D)状态</a></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/859/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]主WEB服务器web service中断以及自动启动项不会up的问题</title>
		<link>http://99dev.net/archives/845</link>
		<comments>http://99dev.net/archives/845#comments</comments>
		<pubDate>Thu, 06 May 2010 01:53:04 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/845</guid>
		<description><![CDATA[# 查看默认的运行级别,Debian系默认运行级别为2,Redhat系默认运行级别为3
[11:34:29.9] root@webserver:/usr/local/webserver/nginx# runlevel
[11:34:31.8] N 2webserverwebserver

<span class="readmore"><a href="http://99dev.net/archives/845" title="[Original]主WEB服务器web service中断以及自动启动项不会up的问题" target="_blank">阅读全文——共2015字</a></span>]]></description>
			<content:encoded><![CDATA[<p># 查看默认的运行级别,Debian系默认运行级别为2,Redhat系默认运行级别为3</p>
<p>[11:34:29.9] root@webserver:/usr/local/webserver/nginx# runlevel</p>
<p>[11:34:31.8] N 2webserverwebserver</p>
<p><span id="more-845"></span>
<p>#运行开机启动项管理器,详细截图见sysv-rc-conf.png</p>
<p>[13:01:32.4] root@webserver:~# sysv-rc-conf</p>
<p>#可以看到存在一些不必要的启动服务,其中包含apache,该服务与nginx冲突</p>
<p>#确保rc.local服务在runlevel2被启用</p>
<p>#之前推测,nginx的https服务和kerio mailserver的https服务相冲突.结合了需求,该WebServer不会挂其他https站点.保留kerio mailserver,重新编译nginx,去掉https选项</p>
<p>[14:13:45.5] root@webserver:~/download/nginx-0.7.61# ./configure &#8211;user=www &#8211;group=www &#8211;prefix=/usr/local/webserver/nginx &#8211;with-http_stub_status_module</p>
<p>[14:14:04.9] root@webserver:~/download/nginx-0.7.61# make</p>
<p>#关闭有冲突的Apache Service</p>
<p>[13:07:10.1] root@webserver:~# /etc/init.d/apache2 stop</p>
<p>#关闭进程,重新安装nginx</p>
<p>[00:16:02.5] root@webserver:~# killall nginx</p>
<p>[00:16:12.6] root@webserver:~# cd /root/download</p>
<p>[00:16:28.7] root@webserver:~/download# cd nginx-0.7.61</p>
<p>[00:16:34.0] root@webserver:~/download/nginx-0.7.61# make install</p>
<p>[00:18:28.7] root@webserver:/usr/local/webserver/nginx/conf# nginx</p>
<p>#启动,测试rc.local是否成功执行</p>
<p>[00:26:00.2] root@webserver:/usr/local/webserver/nginx/conf# reboot</p>
<p>#查看nginx和php进程是否启动</p>
<p>[00:29:42.8] root@webserver:~# ps -aux|grep ngin</p>
<p>[00:29:55.9] www 6401 0.0 0.2 14764 11672 ? S 00:28 0:00 nginx: worker process</p>
<p>&nbsp;&nbsp;</p>
<p>[00:29:55.9] root@webserver:~# ps -aux|grep php</p>
<p>[00:29:59.9] root 6256 0.0 0.0 88624 3708 ? Ss 00:28 0:00 /usr/local/webserver/php/bin/php-cgi &#8211;fpm &#8211;fpm-config /usr/local/webserver/php/etc/php-fpm.conf</p>
<p>#陷阱1</p>
<p>The Mysterious &#8212; MARK &#8211;</p>
<p>All newbie admins asks what this means in /var/log/messages:</p>
<p>Jul 1 16:04:53 windbag &#8212; MARK &#8211;</p>
<p>Jul 1 16:24:53 windbag &#8212; MARK &#8211;</p>
<p>Jul 1 16:44:53 windbag &#8212; MARK &#8211;</p>
<p>That&#8217;s just the syslog daemon letting you know that it is alive and well. You may set the interval to anything you like on Debian by editing /etc/init.d/sysklogd. This sets it to 60 minutes:</p>
<p>SYSLOGD=&#8221;-m 60&#8243;</p>
<p>Then restart the syslog daemon:</p>
<p># /etc/init.d/sysklogd restart</p>
<p>On Red Hat and derivatives, edit /etc/sysconfig/syslog :</p>
<p>SYSLOGD_OPTIONS=&#8221;-m 60&#8243;</p>
<p>Restart syslogd with service syslog restart. Then watch it happen in realtime on any Linux with tail -f /var/log/messages. (You can monitor the changes in any text file with tail.)</p>
<p>#陷阱2</p>
<p>exiting due to signal 15</p>
<p>yslogd: exiting on signal 15 这个看上去是syslogd正常的退出信息</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/845/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]不能利用php的mail函数发送邮件的解决</title>
		<link>http://99dev.net/archives/844</link>
		<comments>http://99dev.net/archives/844#comments</comments>
		<pubDate>Thu, 29 Apr 2010 07:45:38 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/844</guid>
		<description><![CDATA[程序员反映在sun.xmnn.cn(192.168.96.55)不能利用PHP的mail()函数发送邮件。已解决。
设置步骤如下，

1.启动sendmail服务 /etc/init.d/sendmail start
<span class="readmore"><a href="http://99dev.net/archives/844" title="[Original]不能利用php的mail函数发送邮件的解决" target="_blank">阅读全文——共922字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium;">程序员反映在sun.xmnn.cn(192.168.96.55)不能利用PHP的mail()函数发送邮件。已解决。</span></p>
<p><span style="font-size: medium;">设置步骤如下，</span></p>
<p><span id="more-844"></span>
<p><span style="font-size: medium;">1.启动sendmail服务 /etc/init.d/sendmail start</span></p>
<p><span style="font-size: medium;">2.将sendmail服务加入开机启动项 chkconfig sendmail on</span></p>
<p>3.编辑access文件,加入以下域</p>
<p>vim /etc/mail/access</p>
<p>Connect:xmnn.cn RELAY</p>
<p>4.编辑php-fpm.conf文件，去除sendmail_path键值的注释符号</p>
<p>vim /data/php/etc/php-fpm.conf</p>
<p>&lt;value name=&#8221;sendmail_path&#8221;&gt;/usr/sbin/sendmail -t -i&lt;/value&gt;</p>
<p>5.编辑php.ini文件，设置sendmai_path变量</p>
<p>vim /data/php/etc/php.ini</p>
<p>sendmail_path = /usr/sbin/sendmail -t -i</p>
<p>6.该台服务器有设置nameserver。如没有的话，请编辑/etc/resolv.conf</p>
<p>加入以下内容</p>
<p>nameserver 202.101.103.55</p>
<p>nameserver 202.101.103.54</p>
<p>7.另，利用命令行测试系统sendmail是否可用，请参考<a href="http://linux.vbird.org/linux_server/0380sendmail.php">此文章</a>中“Linux 下使用 telnet 功能”小节。</p>
<p>附部分测试程序</p>
<p>&lt;?php</p>
<p>&nbsp;&nbsp; if ($_SERVER['REQUEST_METHOD']==&#8217;POST&#8217;){</p>
<p>&nbsp;&nbsp; $email=$_POST['email'];</p>
<p>&nbsp;&nbsp; $to=&#8221;hery78567650@163.com&#8221;;</p>
<p>&nbsp;&nbsp; $subject = &#8220;Test Mail Send by XMNN.Apps&#8221;;</p>
<p>&nbsp;&nbsp; $message = &#8220;Hello! This is a test sent by php.apps on sunbbs. Poople&#8221;.$email;</p>
<p>&nbsp;&nbsp; $from = &#8220;sun@xmnn.cn&#8221;;</p>
<p>&nbsp;&nbsp; $headers = &#8220;From: $from&#8221;.&#8221;\r\n&#8221; .</p>
<p>&nbsp;&nbsp; &#8220;CC: 7215030@qq.com&#8221;;</p>
<p>&nbsp;&nbsp; if (mail($to,$subject,$message,$headers)){</p>
<p>&nbsp;&nbsp; echo &#8220;????&#8221;;</p>
<p>&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp; ?&gt;</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/844/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]sqweb2的502.bad.gateway处理</title>
		<link>http://99dev.net/archives/838</link>
		<comments>http://99dev.net/archives/838#comments</comments>
		<pubDate>Thu, 15 Apr 2010 08:46:16 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/838</guid>
		<description><![CDATA[故障现象
访问页面出现(502)bad gateway,或者(403)Access Forbid错误.

部分错误日志
<span class="readmore"><a href="http://99dev.net/archives/838" title="[Original]sqweb2的502.bad.gateway处理" target="_blank">阅读全文——共981字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: 'Heiti SC Light'; font-size: 14px;">故障现象</span></p>
<p style="font: 14.0px 'Heiti SC Light'">访问页面出现(502)bad gateway,或者(403)Access Forbid错误.</p>
<p style="font: 14.0px 'Heiti SC Light'; min-height: 14.0px"></p>
<p style="font: 14.0px 'Heiti SC Light'">部分错误日志</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:30:41 sqweb2 kernel: lockd: server 192.168.96.50 not responding, timed out</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:31:21 sqweb2 last message repeated 10 times</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:32:31 sqweb2 last message repeated 21 times</p>
<p style="font: 14.0px 'Heiti SC Light'">Apr 15 00:33:41 sqweb2 last message repeated 17 times</p>
<p style="font: 14.0px 'Heiti SC Light'">主交换 CPU在10%左右,MEM在20-30%之间波动</p>
<p style="font: 14.0px 'Heiti SC Light'; min-height: 14.0px"></p>
<p style="font: 14.0px 'Heiti SC Light'"></p>
<p><span id="more-838"></span>
<p><span style="font-family: 'Heiti SC Light'; font-size: 14px;">RedHat的bugzilla有提到该错误</span></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">https://bugzilla.redhat.com/show_bug.cgi?id=453094</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">采取的措施</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">1.在sqweb1和sqweb2之间,新加了一条线.NFS共享只走该线路,不经过主交换机.避免在大流量情况下,引起的NFS丢包现象.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">IP配置分别为</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">sqweb1 eth1 192.168.96.201 netmask 255.255.255.252</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">sqweb2 eth2 192.168.96.202 netmask 255.255.255.252</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">2.升级内核</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">原内核</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">Linux sqweb2 2.6.18-92.el5PAE #1 SMP Tue Jun 10 19:22:41 EDT 2008 i686 i686 i386 GNU/Linux</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">新内核</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">Linux sqweb2 2.6.18-164.15.1.el5PAE #1 SMP Wed Mar 17 12:14:29 EDT 2010 i686 i686 i386 GNU/Linux</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">3.在NFS Client的/etc/fstab挂载参数中,<span style="font-family: 'Heiti SC'; color: #FF2B1F; white-space: pre;">#加入了nolock,udp参数,#关闭nfslock service</span></p>
<blockquote>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';"><font color="#FF2B1F" face="'Heiti SC'"><span style="white-space: pre;"><span style="color: #000000;">192.168.96.201:/data/wwwroot /data/wwwroot nfs hard,intr,bg,nolock,udp,ti meo=50 0 0</span></span></font></p>
</blockquote>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">P.S.调试过程中,有发现NFS的缺陷一,不能应用于单网卡多IP,以及单机多网段环境.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">处理结果</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">#NFS相关资料</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">http://www.517sou.net/Article/419.aspx</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light';">http://linux.vbird.org/linux_server/0330nfs.php</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: 14px 'Heiti SC Light'; min-height: 14px;"></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/838/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Collection]IIS 7.5应用Tips</title>
		<link>http://99dev.net/archives/770</link>
		<comments>http://99dev.net/archives/770#comments</comments>
		<pubDate>Tue, 26 Jan 2010 05:19:07 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/770</guid>
		<description><![CDATA[1.IIS7.5启用目录列表
常用于FTP站点，范例:http://ftp.99dev.net
Scenario:&#160; Let&#8217;s say I want to enable directory browsing for a special directory on my site, how do I enable that?&#160; It&#8217;s as easy as: 
1) create (or edit) the web.config file in your site&#8217;s home directory 
<span class="readmore"><a href="http://99dev.net/archives/770" title="[Collection]IIS 7.5应用Tips" target="_blank">阅读全文——共396字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: x-small"><font size="2"><strong>1.IIS7.5启用目录列表</strong></font></span></p>
<p><span style="font-size: x-small"><font size="2">常用于FTP站点，范例:http://ftp.99dev.net</font></span></p>
<p><span style="font-size: x-small"><font size="2">Scenario:&#160; Let&#8217;s say I want to enable directory browsing for a special directory on my site, how do I enable that?&#160; It&#8217;s as easy as: </font></span></p>
<p><span style="font-size: x-small"><font size="2">1) create (or edit) the web.config file in your site&#8217;s home directory </font></span></p>
<p><span style="font-size: x-small"><font size="2">2) edit it as follows: </font></span></p>
<p> <span id="more-770"></span><font size="2"></font><span style="font-size: x-small"><font size="2">&#160;</font></span>
</p>
<blockquote><p><span style="font-size: x-small"><font size="2">&lt;configuration&gt; </font></span></p>
<p><span style="font-size: x-small"><font size="2">&#160; &lt;location path=&quot;special_directory_name_here&quot;&gt;         <br />&#160;&#160; &lt;system.webServer&gt;          <br />&#160;&#160;&#160; &lt;directoryBrowse enabled=&quot;true&quot; /&gt;          <br />&#160;&#160; &lt;/system.webServer&gt; </font></span></p>
<p><span style="font-size: x-small"><font size="2">&#160; &lt;/location&gt;         <br />&lt;/configuration&gt;</font></span></p>
</blockquote>
<p><span style="font-size: x-small"><font size="2">&#160;</font></span></p>
<p><font size="2"></font></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/770/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]PHP服务器时间校对</title>
		<link>http://99dev.net/archives/720</link>
		<comments>http://99dev.net/archives/720#comments</comments>
		<pubDate>Mon, 14 Dec 2009 03:33:02 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[其他Linux技术]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/720</guid>
		<description><![CDATA[一些LAMP论坛，经常遇到这样的问题，页面显示时间和本地实际时间相差8小时或者更多 
1.修改系统市区设置
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 

<span class="readmore"><a href="http://99dev.net/archives/720" title="[Original]PHP服务器时间校对" target="_blank">阅读全文——共180字</a></span>]]></description>
			<content:encoded><![CDATA[<p>一些LAMP论坛，经常遇到这样的问题，页面显示时间和本地实际时间相差8小时或者更多 </p>
<p>1.修改系统市区设置</p>
<blockquote><p>cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime </p>
</blockquote>
<p>2.使用ntpdate同步服务器时间</p>
<blockquote><p>ntpdate time.api.bz </p>
</blockquote>
<p> <span id="more-720"></span>
<p>3.执行测试php脚本<font color="#0000ff">time.php</font></p>
<blockquote><p>&lt;?php      <br />echo date(&#8216;G:i:s&#8217;);       <br />?&gt;</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/720/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]Linux+Zeus+php.fcgi配置过程</title>
		<link>http://99dev.net/archives/714</link>
		<comments>http://99dev.net/archives/714#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:48:45 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zeus]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/714</guid>
		<description><![CDATA[1.系统环境配置
配置中文支持
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
<span class="readmore"><a href="http://99dev.net/archives/714" title="[Original]Linux+Zeus+php.fcgi配置过程" target="_blank">阅读全文——共2321字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium"><strong>1.系统环境配置</strong></span></p>
<p><span style="font-size: x-small"><strong>配置中文支持</strong></span><br />
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm<br />
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm</p>
<p><span style="font-size: x-small"><strong>修改Hostname</strong></span><br />
1文件中的HOSTNAME，改为你希望的名字<br />
2，/etc/hosts文件中，把所有原来机器名修改为新的机器名</p>
<p><span style="font-size: x-small"><strong>清除原服务组件</strong></span></p>
<p><span id="more-714"></span>1.kill所有nginx/php/mysql进程</p>
<p>2.删除服务组件所在目录</p>
<p>3.删除启动项，一般位于setup菜单中和/etc/rc.local文件中</p>
<p><span style="font-size: medium"><strong>2.服务组件安装</strong></span></p>
<p>安装MySQL和PHP组件，这部分大同小异，参考张宴的文章<a href="http://http://blog.s135.com/nginx_php_v5/" target="_blank">《Nginx 0.7.x + PHP 5.2.10（FastCGI）搭建胜过Apache十倍的Web服务器（第5版）》</a></p>
<blockquote><p>Tips：Screen</p>
<p>配置时。所在网络环境相当不稳定，经常发生掉线的情况。为避免掉线重新登陆，引起的正在编辑的文件被锁死的问题，建议用screen开启一个不掉线的会话。screnn的用法参考：<a title="http://www.ibm.com/developerworks/cn/linux/l-cn-screen/" href="http://www.ibm.com/developerworks/cn/linux/l-cn-screen/">http://www.ibm.com/developerworks/cn/linux/l-cn-screen/</a></p></blockquote>
<p><strong><span style="font-size: medium">3.服务组件配置调试</span></strong></p>
<p><span style="font-size: x-small"><strong>·PHP编译配置</strong></span></p>
<blockquote><p>PHP编译参数<br />
&#8216;./configure&#8217; &#8216;&#8211;prefix=/usr/local/webserver/php&#8217; &#8216;&#8211;with-config-file-path=/usr/local/webserver/php/etc&#8217; &#8216;&#8211;with-mysql=/usr&#8217; &#8216;&#8211;with-mysqli=/usr/bin/mysql_config&#8217; &#8216;&#8211;with-iconv-dir=/usr/local&#8217; &#8216;&#8211;with-freetype-dir&#8217; &#8216;&#8211;with-jpeg-dir&#8217; &#8216;&#8211;with-png-dir&#8217; &#8216;&#8211;with-zlib&#8217; &#8216;&#8211;with-libxml-dir=/usr&#8217; &#8216;&#8211;enable-xml&#8217; &#8216;&#8211;disable-rpath&#8217; &#8216;&#8211;enable-discard-path&#8217; &#8216;&#8211;enable-safe-mode&#8217; &#8216;&#8211;enable-bcmath&#8217; &#8216;&#8211;enable-shmop&#8217; &#8216;&#8211;enable-sysvsem&#8217; &#8216;&#8211;enable-inline-optimization&#8217; &#8216;&#8211;with-curl&#8217; &#8216;&#8211;with-curlwrappers&#8217; &#8216;&#8211;enable-mbregex&#8217; &#8216;&#8211;enable-fastcgi&#8217; &#8216;&#8211;enable-fpm&#8217; &#8216;&#8211;enable-force-cgi-redirect&#8217; &#8216;&#8211;enable-mbstring&#8217; &#8216;&#8211;with-mcrypt&#8217; &#8216;&#8211;with-gd&#8217; &#8216;&#8211;enable-gd-native-ttf&#8217; &#8216;&#8211;with-openssl&#8217; &#8216;&#8211;with-mhash&#8217; &#8216;&#8211;enable-pcntl&#8217; &#8216;&#8211;enable-sockets&#8217; &#8216;&#8211;with-ldap&#8217; &#8216;&#8211;with-ldap-sasl&#8217; &#8216;&#8211;with-xmlrpc&#8217; &#8216;&#8211;enable-zip&#8217; &#8216;&#8211;enable-soap&#8217; &#8216;&#8211;without-pear&#8217;</p></blockquote>
<p><span style="font-size: x-small">[PHP]编译过程中发生错误-1</span></p>
<blockquote><p>configure: error: Cannot find MySQL header files under /usr</p></blockquote>
<p><span style="font-size: x-small">[PHP]缺少mysql的头文件，需安装以下依赖包</span></p>
<blockquote><p>rpm -ivh MySQL-devel-4.1.12-1.i386.rpm</p></blockquote>
<p>[PHP]编译过程中发生错误-2</p>
<blockquote><p>error: mysql configure failed. Please check config.log for more information.</p></blockquote>
<p>[PHP]64位系统，需指定以下环境变量</p>
<blockquote><p>export LDFLAGS=-L/usr/lib64/mysql</p></blockquote>
<p><strong><span style="font-size: x-small">·Zeus编译配置</span></strong></p>
<p><span style="font-size: x-small">[Zeus]Zeus使用中遇到问题，web端口已打开，访问测试页面却显示空白。</span></p>
<blockquote><p>解决办法：Current Configuration -〉 Bind address    125.65.45.18</p></blockquote>
<p><span style="font-size: x-small"><strong>不使用Zeus自带的PHP，改用我们自己编译的新版本。</strong></span></p>
<blockquote><p>在Current Configuration -〉PHP置为Disable</p></blockquote>
<blockquote><p>在API Support-&gt;FastCGI<br />
Configuring FastCGI Remote Responders<br />
Adding a FastCGI Remote Responder</p>
<p>Directory name: /usr/local/bin/php<br />
Location: Machine name: localhost<br />
Port: 8002<br />
Additional methods supported?: none</p></blockquote>
<blockquote><p>在URL Handling-&gt;Handlers-&gt;Adding a Handler<br />
File Extension: *.php<br />
Specify the path and filename of the handler, relative to the document root: /usr/local/bin/php<br />
HTTP 404 errors are handled by: The handler</p></blockquote>
<p><strong>在Zeus/rc.d目录下，新建一个S05php可执行脚本，<a href="http://99dev.net/wp-content/uploads/2009/11/s05php">s05php</a></strong></p>
<p><strong>运行rc.d/S05php start，初始化php.fcgi进程</strong></p>
<p><strong>在www目录下，放置phpinfo.php页面测试</strong></p>
<blockquote><p>&lt;?phpinfo();?&gt;</p></blockquote>
<p><span style="font-size: x-small;"><em></em></span></p>
<p><span style="font-size: x-small;"><em>&lt;!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Notice&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&gt;<br />
</em></span><span style="font-size: x-small;">1.Zeus基于Web界面配置，切记在输入任何参数时，使用英文输入法。<br />
2.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/714/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[Original]Nginx实际应用Tips</title>
		<link>http://99dev.net/archives/704</link>
		<comments>http://99dev.net/archives/704#comments</comments>
		<pubDate>Tue, 17 Nov 2009 03:43:04 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/704</guid>
		<description><![CDATA[l WordPress的固定链接设置
eg:http://99dev.net/archives/775
修改nginx的Server Section部分如下
location /      &#160;&#160;&#160; {      &#160;&#160;&#160; index index.php index.html;      &#160;&#160;&#160; if (!-e $request_filename)      &#160;&#160;&#160; {      &#160;&#160;&#160; rewrite &#34;^/archives/(.+)$&#34; /index.php?p=$1 last;      &#160;&#160;&#160; }      &#160;&#160;&#160; }
<span class="readmore"><a href="http://99dev.net/archives/704" title="[Original]Nginx实际应用Tips" target="_blank">阅读全文——共1616字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="4"><strong>l WordPress的固定链接设置</strong></font></p>
<p><font size="2">eg:</font><a title="http://99dev.net/archives/775" href="http://99dev.net/archives/775"><font size="2">http://99dev.net/archives/775</font></a></p>
<p><font size="2">修改nginx的Server Section部分如下</font></p>
<blockquote><p>location /      <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160; index index.php index.html;      <br />&#160;&#160;&#160; if (!-e $request_filename)      <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160; rewrite &quot;^/archives/(.+)$&quot; /index.php?p=$1 last;      <br />&#160;&#160;&#160; }      <br />&#160;&#160;&#160; }</p>
</blockquote>
<p>修改“WordPress控制面板-设置-固定链接-自定义结构”，如下</p>
<blockquote><p>/archives/%post_id%</p>
</blockquote>
<p>关键字：wordpress nginx rewrite 固定链接 PermaLink</p>
<p>&#160;</p>
<p><font size="4"><strong>|nginx 目录列表配置</strong></font></p>
<blockquote><p>location&#160; /&#160; {</p>
<p>&#160;&#160;&#160; autoindex&#160; on;</p>
<p>}</p>
</blockquote>
<p> <span id="more-704"></span>
<p><strong><font size="4">l rewrite规则转换（支持apache&gt;nginx）</font></strong></p>
<p><a title="http://www.anilcetin.com/convert-apache-htaccess-to-nginx/" href="http://www.anilcetin.com/convert-apache-htaccess-to-nginx/">http://www.anilcetin.com/convert-apache-htaccess-to-nginx/</a></p>
<p>&#160;</p>
<p><font size="4"><strong>l Rewrite配置</strong></font></p>
<p>编译过程，默认开启http_rewrite_module</p>
<p>在nginx.conf中加入rewrite rules即可</p>
<p>&#160;</p>
<p><strong><font size="4">l 绑定多域名</font></strong></p>
<p>server_name&#160; 58zz.com <a href="http://www.58zz.com;">www.58zz.com;</a></p>
<p>Server_name中，绑定需要的域名，以空格隔开，以分号结束（均为半角字符）</p>
</p>
<p><font size="4"><strong></strong></font></p>
<p><font size="4"><strong>l 自定义404页面</strong></font></p>
<p>error_page 404 /404.html;</p>
<p>location /404.html{</p>
<p>root /usr/local/webserver/nginx/html/;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;</p>
<p><font size="4"><strong>l 在不停止Nginx服务的情况下平滑变更Nginx配置</strong></font></p>
<p>1、修改/usr/local/webserver/nginx/conf/nginx.conf配置文件后，请执行以下命令检查配置文件是否正确：</p>
<blockquote><p>/usr/local/webserver/nginx/sbin/nginx -t</p>
</blockquote>
<p>如果屏幕显示以下两行信息，说明配置文件正确：</p>
<blockquote><p>the configuration file /usr/local/webserver/nginx/conf/nginx.conf syntax is ok</p>
<p>the configuration file /usr/local/webserver/nginx/conf/nginx.conf was tested successfully</p>
</blockquote>
<p>2、这时，输入以下命令查看Nginx主进程号：</p>
<p>ps -ef | grep &quot;nginx: master process&quot; | grep -v &quot;grep&quot; | awk -F &#8216; &#8216; &#8216;{print $2}&#8217;</p>
<p>屏幕显示的即为Nginx主进程号，例如：</p>
<p>6302</p>
<p>这时，执行以下命令即可使修改过的Nginx配置文件生效：</p>
<p>kill -HUP 6302</p>
<p>或者无需这么麻烦，找到Nginx的Pid文件：</p>
<p>kill -HUP `cat /usr/local/webserver/nginx/nginx.p`</p>
<p>&#160;</p>
<p><font size="4"><strong>l 磁盘配额设置</strong></font></p>
<p>强制卸载正在使用的分区 umount -fl device</p>
<p>修改/etc/fstab，添加&quot;usrquota,grpquota&quot;</p>
<p>Quotocheck -auvg 耗费时间视文件系统大小而定，可能是几十分钟甚至几小时，需要耐心等候</p>
<p>详细过程不累述，鸟哥的教程写得很详细<a href="http://linux.vbird.org/linux_basic/0420quota.php">http://linux.vbird.org/linux_basic/0420quota.php</a> </p>
<p><font size="4"><strong>l 开启nginx-stauts</strong></font></p>
<p>用于显示nginx启动以来的状态</p>
<p>1.编译时，加入该模块的支持</p>
<blockquote><p>&#8211;with-http_stub_status_module</p>
</blockquote>
<p>2.修改nginx.conf，在server{}之间加入以下代码</p>
<blockquote><p>location ~ /nginxstatus/      <br />{       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; stub_status on; #Nginx 状态监控配置       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; access_log off;&#160; <br />} </p>
</blockquote>
<p>3.访问<a href="http://www.example.com/nginxstatus/">http://www.example.com/nginxstatus/</a>查看状态。     </p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/704/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]UCHome+UCenter+Discuz迁移指南</title>
		<link>http://99dev.net/archives/614</link>
		<comments>http://99dev.net/archives/614#comments</comments>
		<pubDate>Mon, 31 Aug 2009 07:10:51 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[MySQL数据库]]></category>
		<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[其他]]></category>
		<category><![CDATA[其他Linux技术]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/614</guid>
		<description><![CDATA[1.www目录备份
分别进各个站点的后台，关闭站点，不要再有数据写入。
打包www目录，下载到本机备用。
2.数据库备份
<span class="readmore"><a href="http://99dev.net/archives/614" title="[Original]UCHome+UCenter+Discuz迁移指南" target="_blank">阅读全文——共1118字</a></span>]]></description>
			<content:encoded><![CDATA[<p>1.www目录备份<br />
分别进各个站点的后台，关闭站点，不要再有数据写入。</p>
<p>打包www目录，下载到本机备用。</p>
<p>2.数据库备份</p>
<p><span id="more-614"></span></p>
<p>经测试，使用phpmyadmin备份出来的数据不完整。<br />
因此，备份请使用程序后台自带的备份程序。</p>
<blockquote><p>备份数据库的顺序应该是UCHome-UCenter-Discuz。</p></blockquote>
<p>将备份数据库下载到本机备用。</p>
<p>3.逐一导入sql文件到新的数据库，顺序为UCHome-UCenter-Discuz。数据库编码类型选gbk-chinese-ci。</p>
<blockquote><p>注意：在有条件的情况下，尽量使用Linux shell来还原数据库，在出错的时候，能提供错误报告，方便排查；如果使用phpmyadmin导入，请记得修改&#8221;php.ini&#8221;中&#8221;Post_max_size&#8221;和&#8221;upload_max_filesize&#8221;两个值到适当大小。</p></blockquote>
<p>4.上传备份的www目录，修改各个config文件</p>
<blockquote><p>Discuz! 的配置文件为程序根目录下的 config.inc.php</p>
<p>UCenter Home 的配置文件为程序根目录下的config.php</p>
<p>UCenter 的配置文件为程序 data 目录下的config.inc.php</p></blockquote>
<p>配置文件里记录的数据库地址、访问用户名、密码都要根据你的新服务器的相应信息进行修改，同时，如果你的域名发生变化，要修改配置文件中相应的域名信息。</p>
<blockquote><p>注意：BBS导入之后，有可能打开的时候会乱码，请修改config.inc,php中$headercharset = 1;强制使用GBK字符集。</p></blockquote>
<p><span style="color: #000040;">·UCHome导入后，有可能也会乱码，请在apache配置文件中的VirtualHost之间添加如下代码</span></p>
<blockquote><p>&lt;IfModule mod_mime.c&gt;<br />
AddDefaultCharset gbk<br />
&lt;/IfModule&gt;</p>
<p>#gbk处的参数为gbk,gb2312,uft8任选一,测试到成功为止</p></blockquote>
<p><span style="color: #000040;">·数据导入后，可能出现UCHome和Discuz不能同步登陆的问题，提示如下</span></p>
<blockquote><p>/uc/index.php was not found on this server.<br />
请修改UChome的config文件以及Discuz的config.inc.php文件中的UC_API至一致</p>
<p>*我使用的web server是nginx，在虚拟主机上加了两个主机头：54consultant.com和www.54consultant.com<br />
默认使用54consultant.com访问，cookies中的域名也就是这个，导致了UChome和Dicuz之间不能同步登陆，将www.54consultant.com放到server_name首位，解决问题。</p></blockquote>
<p><span style="color: #000080;">·论坛更新补丁后，进入后台，安全补丁提示仍存在</span></p>
<blockquote><p><a href="http://99dev.net/wp-content/uploads/2009/09/xiubu1.png"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="xiubu" src="http://99dev.net/wp-content/uploads/2009/09/xiubu-thumb1.png" border="0" alt="xiubu" width="526" height="346" /></a></p>
<p>请用FTP工具，核对所替换的文件权限是否为777。</p></blockquote>
<p>5.上线测试</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/614/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[original]PV/UV/IP三者的概念以及区别</title>
		<link>http://99dev.net/archives/328</link>
		<comments>http://99dev.net/archives/328#comments</comments>
		<pubDate>Sat, 22 Nov 2008 07:21:35 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/328</guid>
		<description><![CDATA[从风之翼那里得到Vdoing的邀请，把统计代码加到页面了。刚看了统计报告，对于UV会大于IP的结果很疑惑。在DNSpod群里问了达人，解释得很清楚。
PV(访问量)：即Page View，即页面浏览量或点击量，用户每次刷新即被计算一次UV(独立访客)：即Unique Visitor,访问您网站的一台电脑客户端为一个访客IP(指独立IP数)：不包含10.0.0.0、172.16.0.0、192.168.0.0三个私有地址段

PV也就是一般意义上的点击量。UV所统计的对象是客户端，假设一台电脑通过ADSL上网，多次拨号，IP换了多个，这种情况访问该网站也只能算是一个UV，多个IP。IP统计的是公网IP数量，假设一个网吧多台机器访问你的网站，这种情况下算是多个UV，一个IP。
<span class="readmore"><a href="http://99dev.net/archives/328" title="[original]PV/UV/IP三者的概念以及区别" target="_blank">阅读全文——共472字</a></span>]]></description>
			<content:encoded><![CDATA[<p>从风之翼那里得到Vdoing的邀请，把统计代码加到页面了。刚看了统计报告，对于UV会大于IP的结果很疑惑。在DNSpod群里问了达人，解释得很清楚。</p>
<p><strong>PV(访问量)：</strong>即Page View，即页面浏览量或点击量，用户每次刷新即被计算一次<br /><strong>UV(独立访客)：</strong>即Unique Visitor,访问您网站的一台电脑客户端为一个访客<br /><strong>IP(指独立IP数)：</strong>不包含10.0.0.0、172.16.0.0、192.168.0.0三个私有地址段</p>
<p><span id="more-328"></span>
<p>PV也就是一般意义上的点击量。UV所统计的对象是客户端，假设一台电脑通过ADSL上网，多次拨号，IP换了多个，这种情况访问该网站也只能算是一个UV，多个IP。IP统计的是公网IP数量，假设一个网吧多台机器访问你的网站，这种情况下算是多个UV，一个IP。</p>
<p>如上所述，就很好解释UV大于IP的情况：访问者中，<br />内网访问者(包含企业内部网和网吧)<strong>比例</strong>多于拨号用户(如ADSL)，就会产生<strong>UV&gt;IP</strong>的情况；<br />拨号用户(如ADSL)<strong>比例</strong>多于内网访问者(包含企业内部网和网吧)，就会产生<strong>IP&gt;UV</strong>的情况；</p>
<p>目前流行的算法，以UV为基准的会比较多。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/328/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
