<?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; 其他</title>
	<atom:link href="http://99dev.net/archives/category/other/feed" rel="self" type="application/rss+xml" />
	<link>http://99dev.net</link>
	<description>智巧终归庸俗，雄谋只余虚话</description>
	<lastBuildDate>Wed, 12 Oct 2011 01:19:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Install Toad for Oracle 10.6 on Winows 7 X64</title>
		<link>http://99dev.net/archives/1026</link>
		<comments>http://99dev.net/archives/1026#comments</comments>
		<pubDate>Tue, 16 Aug 2011 06:53:33 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1026</guid>
		<description><![CDATA[在过去的一天时间内，都在折腾这个鬼东西。该工具集功能非常强大，安装程序却做得很渣，安装/卸载/重装都能让你郁闷一整天，论坛里就有人发出这样的感慨：“要重装Toad，你不得不重新安装操作系统。”
1.配置Oracle Instant Client环境
到Oracle官网下载Oracle Instant Client，注意选择x86平台，Toad只认32位的Oracle Instant Client。至于版本号，没有特别要求，版本向下兼容。
桌面上，右键点“我的电脑”，选择“属性”，选择“高级”页中的“环境变量”，在系统变量中，修改如下
<span class="readmore"><a href="http://99dev.net/archives/1026" title="Install Toad for Oracle 10.6 on Winows 7 X64" target="_blank">阅读全文——共1195字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="2">在过去的一天时间内，都在折腾这个鬼东西。该工具集功能非常强大，安装程序却做得很渣，安装/卸载/重装都能让你郁闷一整天，论坛里就有人发出这样的感慨：“要重装Toad，你不得不重新安装操作系统。”</font></p>
<p><strong><font size="4">1.配置Oracle Instant Client环境</font></strong></p>
<p><font size="2">到Oracle官网下载Oracle Instant Client，注意选择x86平台，Toad只认32位的Oracle Instant Client。至于版本号，没有特别要求，版本向下兼容。</font></p>
<p><font size="2">桌面上，右键点“我的电脑”，选择“属性”，选择“高级”页中的“环境变量”，在系统变量中，修改如下</font></p>
<blockquote><p><font size="2">变量名：ORACLE_HOME       <br />变量值：D:\Program Files\instantclient_11_2        <br />变量名：TNS_ADMIN        <br />变量值：D:\Program Files\instantclient_11_2        <br />变量名：NLS_LANG        <br />变量值：SIMPLIFIED CHINESE_CHINA.ZHS16GBK        <br />修改Path变量，在后面添加 D:\Program Files\instantclient_11_2</font></p>
</blockquote>
<p><font size="2">在D:\Program Files\instantclient_11_2新建一个文本文件，文件名为tnsnames.ora</font></p>
<p><span id="more-1026"></span>
<p><font size="2"></font></p>
<blockquote><p><font size="2">#orcl可以自定义替换       <br />#HOST修改为Oracle Server地址        <br />#SERVICE_NAME修改为Oracle实例名        <br />orcl =         <br />&#160;&#160;&#160;&#160;&#160; (DESCRIPTION =        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.30.85)(PORT = 1521))        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; (CONNECT_DATA =        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (SERVER = DEDICATED)        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; (SERVICE_NAME = orcl)        <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; )        <br />&#160;&#160;&#160;&#160;&#160; )</font></p>
</blockquote>
<p><strong><font size="4">2.安装Toad for Oracle 10.6 (</font></strong><a href="http://worlddownloads.quest.com.edgesuite.net/Repository/support.quest.com/Toad%20for%20Oracle/10.6.1/Software/Toad%20DBA%20Suite%20for%20Oracle%2010.6.1%20Commercial.exe"><strong><font size="4">Toad DBA Suite for Oracle 10.6.1 Commercial</font></strong></a><strong><font size="4">)</font></strong></p>
<ul>
<li><font size="2"><strong>Toad for Oracle 9.7.25安装/卸载/重装</strong></font></li>
</ul>
<p><font size="2">一开始，走了不少弯路，安装了版本9.7.25，在启动过程中，出现&quot;You have no oracle clients installed&quot;警告，并导致不能连接Oracle数据库。国外几个同行，<font color="#0000ff">有提到说Toad在x64系统上，要留意安装路径不能包含括号。</font>于是，准备重装。不能用传统的&quot;添加/删除程序&quot;来卸载Toad，以后要出问题的。必须使用Quest Install来卸载各个模块，然后再卸载自身。之后，你就可以重装了。</font></p>
<p><font size="2">(我正是用&quot;添加/删除程序&quot;来卸载Toad的，导致重装Toad也使用不了，不得已升到版本10.6安装。中间还动用了Your Uninstall Pro和Registry Workshop来清除Toad套装的残余。)</font></p>
<ul>
<li><font size="2"><strong>Toad for 10.6安装</strong></font></li>
</ul>
<p><font size="2">与9.7.25安装并无二致，<font color="#0000ff">同样要注意的是安装路径不能包含括号。</font></font></p>
<p><font size="2">&#160;</font></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1026/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>利用SQLyog实现mysql自动备份</title>
		<link>http://99dev.net/archives/1025</link>
		<comments>http://99dev.net/archives/1025#comments</comments>
		<pubDate>Mon, 08 Aug 2011 04:01:07 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1025</guid>
		<description><![CDATA[1.利用SQLyog的Scheduled备份功能实现自动化备份
SQLyog这mysql管理工具，自从8.x版本之后，已经提供SQLyog&#8217;s Scheduled备份功能，帮助DBA执行自动化数据库备份。有个这一强大功能，就可以实现数据库集中和自动化备份，免去了自己写脚本和测试脚本的痛苦。
SQLyog支持生成.sql转储文件和zip压缩
SQLyog支持生成备份脚本并自动加入到Windows任务计划程序库，生成规范文件名格式的备份文件
<span class="readmore"><a href="http://99dev.net/archives/1025" title="利用SQLyog实现mysql自动备份" target="_blank">阅读全文——共981字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="3"><strong>1.利用SQLyog的Scheduled备份功能实现自动化备份</strong></font></p>
<p>SQLyog这mysql管理工具，自从8.x版本之后，已经提供SQLyog&#8217;s Scheduled备份功能，帮助DBA执行自动化数据库备份。有个这一强大功能，就可以实现数据库集中和自动化备份，免去了自己写脚本和测试脚本的痛苦。</p>
<p>SQLyog支持生成.sql转储文件和zip压缩</p>
<p>SQLyog支持生成备份脚本并自动加入到Windows任务计划程序库，生成规范文件名格式的备份文件</p>
<p><font size="3"><strong>2.利用Windows Powershell实现过期备份文件删除</strong></font></p>
<p>该工具的缺憾是，不提供过期备份文件删除功能。</p>
<p>我们可以通过Windows的powershell脚本来弥补这一功能缺憾。</p>
<p>这里帖一个示例脚本</p>
<p><span id="more-1025"></span>
<p>&#160;</p>
<blockquote><p>#FileName &#8211; del.expired.file.ps1     <br />#删除过期文件</p>
<p>echo &quot;These expired files have been deleted:&quot;</p>
<p>$a=get-childitem -recurse E:\medium-local\MySQL.Backup -Exclude *.xml</p>
<p>#替换这里的 E:\medium-local\MySQL.Backup 为你的备份文件实际存放目录</p>
<p>foreach ($x in $a)     <br />{      <br />$y = ((Get-Date) &#8211; $x.LastWriteTime).Days      <br />if ($y -gt 7 -and $x.PsISContainer -ne $True) #替换这里的7为你需要保留的实际天数      <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160; $x.Delete()      <br />&#160;&#160;&#160; echo $x      <br />&#160;&#160;&#160; }      <br />}</p>
<p>#删除空文件夹</p>
<p>(Get-ChildItem E:\medium-local\MySQL.Backup -recurse `     <br />| Where-Object {$_.PSIsContainer -eq $True}) `      <br />| Where-Object {$_.GetFiles().Count -eq 0} `      <br />| remove-Item</p>
<p>#替换这里的 E:\medium-local\MySQL.Backup 为你的备份文件实际存放目录</p>
</blockquote>
<p>将该脚本扔到Windows技术任务程序库执行即可</p>
<p>Powershell可执行程序 &#8211; %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe </p>
<p>添加参数 &#8211; &quot;E:\ps.scripts\del.expired.file.ps1&quot;</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1025/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle初学者常见问题收集</title>
		<link>http://99dev.net/archives/1007</link>
		<comments>http://99dev.net/archives/1007#comments</comments>
		<pubDate>Wed, 09 Mar 2011 09:22:09 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1007</guid>
		<description><![CDATA[Q:某位讲师曾提起过，Oracle 10g只支持至RHEL4，更新版本的系统必须通过修改/etc/RedHat-release来逃过安装验证。真的是这样吗？
A:在君三思的书中看过，在Oracle Enterprise Linux 5U3上安装，并没有出现异常。我试验的结果也是如此。在安装过程中，该系统被识别为了redhat3。   见安装日志    &#160;&#160;&#160; Checking operating system requirements &#8230;    &#160;&#160;&#160; Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2    &#160;&#160;&#160; Actual Result: redhat-3    &#160;&#160;&#160; Check complete. The overall result of this check is: Passed
<span class="readmore"><a href="http://99dev.net/archives/1007" title="Oracle初学者常见问题收集" target="_blank">阅读全文——共558字</a></span>]]></description>
			<content:encoded><![CDATA[<p>Q:某位讲师曾提起过，Oracle 10g只支持至RHEL4，更新版本的系统必须通过修改/etc/RedHat-release来逃过安装验证。真的是这样吗？</p>
<p>A:在君三思的书中看过，在Oracle Enterprise Linux 5U3上安装，并没有出现异常。我试验的结果也是如此。在安装过程中，该系统被识别为了redhat3。   <br />见安装日志    <br />&#160;&#160;&#160; Checking operating system requirements &#8230;    <br />&#160;&#160;&#160; Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2    <br />&#160;&#160;&#160; Actual Result: redhat-3    <br />&#160;&#160;&#160; Check complete. The overall result of this check is: Passed</p>
<p>Q：在客户机使用浏览器访问OEM，所有按钮都变成“口口”样式，怎么解决？</p>
<p>A:原因来自于JDK Swing采用TrueType 字体作为按钮的显示字体，如果你的JDK 找不到中文字体用来显示，你看到的一些按钮就变成小方块的样子。Google搜到的建议方法有2种，分别是在服务端和客户端修改。不建议在服务端修改，生产系统的东西，能不动尽量不动，即使你认为是安全的。建议的解决方法，修改浏览器的显示语言顺序，将英文上移到最顶端。   </p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1007/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle For Linux安装脚本</title>
		<link>http://99dev.net/archives/1006</link>
		<comments>http://99dev.net/archives/1006#comments</comments>
		<pubDate>Tue, 01 Mar 2011 05:57:41 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/1006</guid>
		<description><![CDATA[1.修改系统内核参数   编辑文件 /etc/sysctl.conf 来完成对这些参数的修改    cat &#62;&#62; /etc/sysctl.conf &#60;&#60;EOF    kernel.shmall = 2097152    kernel.shmmax = 2147483648    kernel.shmmni = 4096    kernel.sem = 250 32000 100 128    fs.file-max = 65536    net.ipv4.ip_local_port_range = 1024 65000    net.core.rmem_default = 262144    net.core.rmem_max = 262144    net.core.wmem_default = 262144    net.core.wmem_max = 262144    EOF
<span class="readmore"><a href="http://99dev.net/archives/1006" title="Oracle For Linux安装脚本" target="_blank">阅读全文——共736字</a></span>]]></description>
			<content:encoded><![CDATA[<p>1.修改系统内核参数   <br />编辑文件 /etc/sysctl.conf 来完成对这些参数的修改    <br />cat &gt;&gt; /etc/sysctl.conf &lt;&lt;EOF    <br />kernel.shmall = 2097152    <br />kernel.shmmax = 2147483648    <br />kernel.shmmni = 4096    <br />kernel.sem = 250 32000 100 128    <br />fs.file-max = 65536    <br />net.ipv4.ip_local_port_range = 1024 65000    <br />net.core.rmem_default = 262144    <br />net.core.rmem_max = 262144    <br />net.core.wmem_default = 262144    <br />net.core.wmem_max = 262144    <br />EOF</p>
<p>/sbin/sysctl -p</p>
<p>  <span id="more-1006"></span>
<p>2.创建安装oracle 所需的组和用户   <br />groupadd oinstall    <br />groupadd dba    <br />useradd -g oinstall -G dba oracle</p>
<p>用户口令   <br />passwd oracle</p>
<p>3.创建目录 更改权限    <br />mkdir -p /u01/app/oracle     <br />chown -R oracle:oinstall /u01</p>
<p>4.修改.bash_profile，增加    <br />export ORACLE_BASE=/u01/app/oracle    <br />export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1    <br />export ORACLE_SID=orcl    <br />export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin</p>
<p>5.安装后操作   <br />/home/oracle/oraInventory/orainstRoot.sh    <br />/u01/app/oracle/product/10.2.0/db_1/root.sh    </p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/1006/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配置Apache+Tomcat实现SSO（单点登录）</title>
		<link>http://99dev.net/archives/999</link>
		<comments>http://99dev.net/archives/999#comments</comments>
		<pubDate>Fri, 18 Feb 2011 09:09:18 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/999</guid>
		<description><![CDATA[1.增加NameVirtualHost，在httpd.conf添加NameVirtualHost将其打开。     NameVirtualHost 192.168.30.95:80
2.尝试使用两个不同域名VirtualHost的方案，未能实现。
PHP应用 &#8211; www.wenjuanpai.com
Java应用 -&#160; java.wenjuanpai.com
<span class="readmore"><a href="http://99dev.net/archives/999" title="配置Apache+Tomcat实现SSO（单点登录）" target="_blank">阅读全文——共1101字</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>1.增加NameVirtualHost，在httpd.conf添加NameVirtualHost将其打开。     <br /></strong>NameVirtualHost 192.168.30.95:80</p>
<p><strong>2.尝试使用两个不同域名VirtualHost的方案，未能实现。</strong></p>
<blockquote><p>PHP应用 &#8211; <a href="http://www.wenjuanpai.com">www.wenjuanpai.com</a></p>
<p>Java应用 -&#160; java.wenjuanpai.com</p>
</blockquote>
<p>因为单点登录需要使用Cookies，而该方案使用了&quot;www&quot;和&quot;java&quot;两个子域，默认的，每个域的Cookies是独立的。</p>
<p><font color="#0000ff">事实上，跨域Cookies共享是可行的，需要程序员额外的Code工作。</font></p>
<p><strong>3.尝试使用不同端口VirtualHost的方案，可以实现。     <br /></strong></p>
<p>  <span id="more-999"></span>
<p>配置如下</p>
<blockquote><p>NameVirtualHost 192.168.30.95:80     <br />NameVirtualHost 192.168.30.95:81</p>
<p>&lt;VirtualHost 192.168.30.95:80&gt;     <br />&#160;&#160;&#160; DocumentRoot &quot;D:/wamp/www/wenjuanpai&quot;      <br />&#160;&#160;&#160; ServerName www.wenjuanpai.com      <br />&#160;&#160;&#160; &lt;Directory &quot;D:/wamp/www/wenjuanpai&quot;&gt;      <br />&#160;&#160;&#160; allow from all      <br />&#160;&#160;&#160; Options +Indexes      <br />&#160;&#160;&#160;&#160; &lt;/Directory&gt;      <br />&#160;&#160;&#160;&#160; ……      <br />&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.30.95:81&gt;     <br />&#160;&#160;&#160; ServerName www.wenjuanpai.com      <br />&#160;&#160;&#160; ProxyPass / ajp://localhost:8009/      <br />&#160;&#160;&#160; ProxyPassReverse / ajp://localhost:8009/      <br />&lt;/VirtualHost&gt;      </p>
</blockquote>
<p>以上方案，直观上看，和之前的采用8888端口的方案，似乎丢失一样的，但是内部机制已经改变了。</p>
<p>为什么要这么做？引用某位老师的一段说明：</p>
<blockquote><p>既然 Tomcat 本身已经可以提供这样的服务，我们为什么还要引入 Apache 或者其他的一些专门的 HTTP 服务器呢？原因有下面几个：</p>
<p>1. 提升对静态文件的处理性能</p>
<p>2. 利用 Web 服务器来做负载均衡以及容错</p>
<p>3. 无缝的升级应用程序</p>
<p>这三点对一个 web 网站来说是非常之重要的，我们希望我们的网站不仅是速度快，而且要稳定，不能因为某个 Tomcat 宕机或者是升级程序导致用户访问不了，而能完成这几个功能的、最好的 HTTP 服务器也就只有 apache 的 http server 了，它跟 tomcat 的结合是最紧密和可靠的。</p>
</blockquote>
<p><font color="#0000ff">当然，完美的方案，肯定不是“不同端口VirtualHost”的方案。只要我们的程序员够给力，能在代码中实现Cookies跨域，那才是真正的无缝整合。</font></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/999/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>配置Apache支持以支持多种验证方式并存</title>
		<link>http://99dev.net/archives/980</link>
		<comments>http://99dev.net/archives/980#comments</comments>
		<pubDate>Mon, 13 Dec 2010 09:10:45 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://99dev.net/?p=980</guid>
		<description><![CDATA[应用场景
吉之特测试组提出的需求，新建mercurial用户，建立虚拟用户，用于版本控制工具认证，执行某个公用操作。
主要配置参数
12345AuthType&#160; &#160; &#160; &#160; &#160; &#160; Authentication type being used. Mostly , it will be set to Basic
<span class="readmore"><a href="http://99dev.net/archives/980" title="配置Apache支持以支持多种验证方式并存" target="_blank">阅读全文——共932字</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>应用场景</strong><br />
吉之特测试组提出的需求，新建mercurial用户，建立虚拟用户，用于版本控制工具认证，执行某个公用操作。</p>
<p><strong>主要配置参数</strong></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">AuthType&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Authentication type being used. Mostly , it will be set to Basic<br />
AuthName&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The authentication realm or name<br />
AuthUserFile&nbsp; &nbsp; The location of the password file<br />
AuthGroupFile &nbsp; The location of the group file, if any Require The requirement(s) which must be satisfied in order to grant admission<br />
AuthBasicProvider &nbsp; &nbsp; &nbsp; Sets the authentication provider(s) for this location.It will be set to &nbsp;dbm, file, dbd, and ldap.</div></td></tr></tbody></table></div>
<p><span id="more-980"></span><br />
<strong>示范配置</strong><br />
(/etc/httpd/conf/httpd.conf)</p>
<div class="codecolorer-container apache default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">AllowOverride</span> <span style="color: #0000ff;">None</span><br />
<span style="color: #00007f;">AuthName</span> mercurial<br />
<span style="color: #00007f;">AuthType</span> Basic<br />
<span style="color: #00007f;">AuthBasicProvider</span> ldap file <span style="color: #adadad; font-style: italic;">#Enable相关的认证方式</span><br />
<span style="color: #00007f;">AuthLDAPURL</span> <span style="color: #7f007f;">&quot;ldap://dc2008.woobest.com/cn=Users,dc=woobest,dc=com?sAMAccountName?sub?(objectClass=user)&quot;</span><br />
<span style="color: #00007f;">AuthLDAPBindDN</span> ldap_pub<br />
<span style="color: #00007f;">AuthLDAPBindPassword</span> ******** <span style="color: #adadad; font-style: italic;">#LDAP认证相关</span><br />
<span style="color: #00007f;">Require</span> valid-<span style="color: #00007f;">user</span><br />
<span style="color: #00007f;">AuthBasicAuthoritative</span> <span style="color: #0000ff;">off</span><br />
<span style="color: #00007f;">AuthUserFile</span> /etc/httpd/virtual.users <span style="color: #adadad; font-style: italic;">#文本数据库认证相关</span></div></td></tr></tbody></table></div>
<p><strong>用户名和密码使用htpasswd生成</strong>，</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># htpasswd -c /usr/local/apache/passwd/passwords public_hg</span><br />
New password: mypassword<br />
Re-type new password: mypassword<br />
Adding password <span style="color: #000000; font-weight: bold;">for</span> user public_hg</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/980/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[CCF]三款主流PCI-SATA卡评测</title>
		<link>http://99dev.net/archives/927</link>
		<comments>http://99dev.net/archives/927#comments</comments>
		<pubDate>Tue, 23 Nov 2010 03:38:33 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[HardWare]]></category>

		<guid isPermaLink="false">http://99dev.net/?p=927</guid>
		<description><![CDATA[转载nh_wzg@CCF
因为有朋友问到我的PCI-SATA转接扩展卡的问题，在这里一起回答：
1.现在已经使用过的PCI-SATA转接扩展卡有三种，对应的芯片分别是：
（1）PROMISE 20375-&#62;&#62;MAXTOR OEM 淘宝：寻找海的鱼 39.00（未含运费）
<span class="readmore"><a href="http://99dev.net/archives/927" title="[CCF]三款主流PCI-SATA卡评测" target="_blank">阅读全文——共1633字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000080;"><strong>转载nh_wzg@CCF</strong></span></p>
<p>因为有朋友问到我的PCI-SATA转接扩展卡的问题，在这里一起回答：</p>
<p>1.现在已经使用过的PCI-SATA转接扩展卡有三种，对应的芯片分别是：<br />
（1）PROMISE 20375-&gt;&gt;MAXTOR OEM 淘宝：寻找海的鱼 39.00（未含运费）<br />
（2）PROMISE 20378 淘宝：飞扬3C 44.6（未含运费）<br />
（3）VIA6421A. 本地：85，淘宝：50左右（未含运费）<span id="more-927"></span></p>
<p>2.待挂接SATA接口硬盘：日立1T/HDT721010SLA360一块，SATA接口DVD/CD刻录机：先锋DVR-217CH一台</p>
<p>3.连接效果：</p>
<p>（1）设备<br />
.有开机检测SATA端口设备的过程。<br />
.单接待接入硬盘时，正常检测到SATA设备后显示“IDE BUS MASTER ENABLE”信息。进入下一步启动过程。<br />
..如果是在原已经运行的XP下面，正常安装驱动程序后，正常使用硬盘。<br />
..如果是使用集成了这个扩展卡驱动程序的XP安装盘，可以正常识别硬盘并安装XP.如果不使用集成驱动程序安装盘，要求有正常的软盘和软驱（难度太高）。<br />
.同时接入待接入的硬盘与刻录机，无法正常检测到SATA设备。如果在原已经运行的XP下面，无法正常使用硬盘与刻录机。<br />
.单接待接入刻录机，无法检测到刻录机，也就无法正常进行下一步的使用。</p>
<p>（2）设备<br />
.有开机检测SATA端口设备的过程。<br />
.单接待接入硬盘时，检测到SATA设备后，显示“No Array Found”信息。〖可在这时接CTRL+F进入扩展卡内管理界面，可进行RAID的生成、删除、重建、镜像等操作。我无法找到设置为IDE模式的地方（参考ASUSTEK 20378的主板使用说明手册内容，似乎要不用RAID功能，应该进行相应的模式设置。即设置为IDE模式）〗。进入下一步启动过程。<br />
..如果是在原已经运行的XP下面，正常安装驱动程序后，可正常在硬件管理器看到扩展卡，但依然没法直接使用硬盘。硬盘没有在“磁盘分项”下面出现。<br />
..如果是使用集成了这个扩展卡驱动程序的XP安装盘，不可以正常识别硬盘并安装XP.<br />
.同时接入待接入的硬盘与刻录机，无法正常检测到SATA设备。<br />
.单接待接入刻录机，无法检测到刻录机，也就无法正常进行下一步的使用。<br />
.我没有两个SATA硬盘，没有测试用双SATA硬盘组RAID后的XP安装情况。</p>
<p>（3）设备<br />
.完全没有开机检测SATA端口设备的过程。<br />
.单接待接入硬盘<br />
..如果是在原已经运行的XP下面，正常安装驱动程序后，可正常使用硬盘。<br />
..如果是使用集成了这个扩展卡驱动程序的XP安装盘，可以正常识别硬盘并安装XP。但因为扩展卡没有启动时的检测环节，始终无法在系统启动后，直接把启动流程指向这个SATA硬盘，因此也就无法启动。<br />
.同时接入待接入的硬盘与刻录机，在原已经运行的XP下面，正常安装驱动程序后，可以正常检测到SATA硬盘与刻录机。也可以正常使用这两个设备。<br />
.单接待接入刻录机，在原已经运行的XP下面，正常安装驱动程序后，可以正常检测到SATA刻录机。可以正常使用这个设备。</p>
<p>后话：</p>
<p>（1）淘宝上面的商家态度：<br />
.寻找海的鱼把我大骂一顿，就因为我把上面无法接入SATA光驱的信息反馈到评语中去，搞笑得很。卡上面有两个类似电容的元件有重焊痕迹，但却是现在我在用的卡。<br />
.飞扬3C的态度不错，却到现在还没有解决如何在卡上设置IDE模式的问题。</p>
<p>（2）上面有朋友提到西霸的3114R PCI-SATA转接扩展卡具有启动与连接光驱与硬盘的功能，希望有更多的朋友提供交流的信息。</p>
<p>（3）速度。因为是旧的机器使用新的大容量硬盘，受限于PCI总线的速度，三块卡的速度都不太高，但VIA的速度最好，MAXTOR次之，20378没法测试。</p>
<p>（4）可靠性。在使用MAXTOR这块卡时，曾经出现过一次备份文件过程中，系统挂住的现象，有三个RAR文件出现错误。是在用MD5校验工具校验操作时发现。因此作大量数据备份时，要注意使用MD5SUMMER这类支持子目录的数据校验工具的使用。</p>
<p>谢谢!!</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/927/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Colletcion]厦门电信宽带提速</title>
		<link>http://99dev.net/archives/869</link>
		<comments>http://99dev.net/archives/869#comments</comments>
		<pubDate>Fri, 09 Jul 2010 02:02:26 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/869</guid>
		<description><![CDATA[该服务已经在10月份修改，目前只能优惠5个小时，最大网速只能到4Mbps。
目前智能提速服务暂时只对厦门电信家庭宽带用户开放。
了解详情请登录http://ts.oooxm.com/speedup
本人已试用成功(3Mbps-&#62;6Mbps)，单位网络不允许上传文件，下班回家再放图。
<span class="readmore"><a href="http://99dev.net/archives/869" title="[Colletcion]厦门电信宽带提速" target="_blank">阅读全文——共198字</a></span>]]></description>
			<content:encoded><![CDATA[<p><font size="4"></font></p>
<ul>
<p><font color="#ff0000" size="2" face="宋体"><strong>该服务已经在10月份修改，目前只能优惠5个小时，最大网速只能到4Mbps。</strong></font></p>
<p><font size="2" face="宋体"><strike>目前智能提速服务暂时只对<strong>厦门电信家庭宽带用户</strong>开放。</strike></font></p>
<p><font size="2" face="宋体"><strike>了解详情请登录</strike></font><a title="http://ts.oooxm.com/speedup" href="http://ts.oooxm.com/speedup"><font size="2" face="宋体"><strike>http://ts.oooxm.com/speedup</strike></font></a></p>
<p><em><font size="2" face="宋体"><strike>本人已试用成功(3Mbps-&gt;6Mbps)，单位网络不允许上传文件，下班回家再放图。</strike></font></em></p>
<p><font size="2" face="宋体"><strike>友情提示：</strike></font></p>
<ul><font size="2" face="宋体"><strike></strike></font></ul>
<li>
<p><font size="2" face="宋体"><strike>操作成功率一般，如果不成功，请刷新页面重试，或者重启Modem重试 </strike></font></p>
</li>
<li>
<p><font size="2" face="宋体"><strike>如果操作成功，请不要关闭该页面，否则提速失效 </strike></font></p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/869/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Collection]Nginx+PHP 配置漏洞：静态文件都可以当作 PHP 解析</title>
		<link>http://99dev.net/archives/853</link>
		<comments>http://99dev.net/archives/853#comments</comments>
		<pubDate>Fri, 21 May 2010 02:31:03 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/853</guid>
		<description><![CDATA[作者：Hily 原始链接：http://hily.me/blog/2010/05/nginx-php-configure-security-problem/    版权声明：可以转载，转载时务必以超链接形式标明文章原始出处和作者信息及版权声明 
漏洞危险等级：毁灭性。 
 

<span class="readmore"><a href="http://99dev.net/archives/853" title="[Collection]Nginx+PHP 配置漏洞：静态文件都可以当作 PHP 解析" target="_blank">阅读全文——共3929字</a></span>]]></description>
			<content:encoded><![CDATA[<p>作者：Hily 原始链接：<a href="http://hily.me/blog/2010/05/nginx-php-configure-security-problem/">http://hily.me/blog/2010/05/nginx-php-configure-security-problem/</a>    <br />版权声明：可以转载，转载时务必以超链接形式标明文章原始出处和作者信息及版权声明 </p>
<p>漏洞危险等级：毁灭性。 </p>
<p> <span id="more-853"></span>
</p>
<p>这个漏洞严格上说并不是 Nginx 和 PHP 本身的漏洞造成的，而是由配置造成的。在我之前写的许多配置中，都普遍存在这个漏洞。 </p>
<p>简易检测方法：   <br />打开 Nginx + PHP 服务器上的任意一张图片，如：    <br /><a href="http://hily.me/test.png">http://hily.me/test.png</a>    <br />如果在图片链接后加一串 /xxx.php （xxx为任意字符）后，如：    <br /><a href="http://hily.me/test.png/xxx.php">http://hily.me/test.png/xxx.php</a>    <br />图片还能访问并且输出的 Content-Type 为 text/html 的话，说明你的配置存在漏洞。 </p>
<p>漏洞分析： </p>
<p>下面通过分析一个很常见的 Nginx 配置来解释下漏洞的成因：   <br />server {    <br />&#160;&#160;&#160; listen&#160;&#160;&#160;&#160;&#160;&#160; 80;    <br />&#160;&#160;&#160; server_name&#160; test.local; </p>
<p>&#160;&#160;&#160; access_log&#160; /work/www/logs/test.access.log&#160; main;   <br />&#160;&#160;&#160; error_log&#160; /work/www/logs/test.error.log; </p>
<p>&#160;&#160;&#160; location / {   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160;&#160; /work/www/test;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; index&#160; index.html index.htm index.php;    <br />&#160;&#160;&#160; } </p>
<p>&#160;&#160;&#160; location ~ \.php$ {   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; root&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; /work/www/test;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; fastcgi_index&#160; index.php;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; fastcgi_param&#160; SCRIPT_FILENAME&#160;&#160;&#160; $document_root$fastcgi_script_name;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; include&#160;&#160;&#160;&#160;&#160;&#160;&#160; fastcgi_params;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; fastcgi_pass&#160;&#160; unix:/tmp/php-fpm.sock;    <br />&#160;&#160;&#160; }    <br />} </p>
<p>我们在 /work/www/test/ 目录下新建一个文件 test.png，内容如下： </p>
<p>那么访问 <a href="http://test.local/test.png">http://test.local/test.png</a> 时，输出为文本内容： </p>
<p>但是当在后面加上 /xxx.php 时，即 <a href="http://test.local/test.png/xxx.php，可怕的事情发生了：">http://test.local/test.png/xxx.php，可怕的事情发生了：</a>    <br />Array    <br />(    <br />&#160;&#160;&#160; [HOSTNAME] =&gt;    <br />&#160;&#160;&#160; [PATH] =&gt; /usr/local/bin:/usr/bin:/bin    <br />&#160;&#160;&#160; [TMP] =&gt; /tmp    <br />&#160;&#160;&#160; [TMPDIR] =&gt; /tmp    <br />&#160;&#160;&#160; [TEMP] =&gt; /tmp    <br />&#160;&#160;&#160; [OSTYPE] =&gt;    <br />&#160;&#160;&#160; [MACHTYPE] =&gt;    <br />&#160;&#160;&#160; [MALLOC_CHECK_] =&gt; 2    <br />&#160;&#160;&#160; [USER] =&gt; www    <br />&#160;&#160;&#160; [HOME] =&gt; /home/www    <br />&#160;&#160;&#160; [FCGI_ROLE] =&gt; RESPONDER    <br />&#160;&#160;&#160; [SCRIPT_FILENAME] =&gt; /work/www/test/test.png    <br />&#160;&#160;&#160; [QUERY_STRING] =&gt;    <br />&#160;&#160;&#160; [REQUEST_METHOD] =&gt; GET    <br />&#160;&#160;&#160; [CONTENT_TYPE] =&gt;    <br />&#160;&#160;&#160; [CONTENT_LENGTH] =&gt;    <br />&#160;&#160;&#160; [SCRIPT_NAME] =&gt; /test.png/xxx.php    <br />&#160;&#160;&#160; [REQUEST_URI] =&gt; /test.png/xxx.php    <br />&#160;&#160;&#160; [DOCUMENT_URI] =&gt; /test.png/xxx.php    <br />&#160;&#160;&#160; [DOCUMENT_ROOT] =&gt; /work/www/test    <br />&#160;&#160;&#160; [SERVER_PROTOCOL] =&gt; HTTP/1.1    <br />&#160;&#160;&#160; [GATEWAY_INTERFACE] =&gt; CGI/1.1    <br />&#160;&#160;&#160; [SERVER_SOFTWARE] =&gt; nginx/0.7.62    <br />&#160;&#160;&#160; [REMOTE_ADDR] =&gt; 192.168.1.163    <br />&#160;&#160;&#160; [REMOTE_PORT] =&gt; 4080    <br />&#160;&#160;&#160; [SERVER_ADDR] =&gt; 192.168.1.12    <br />&#160;&#160;&#160; [SERVER_PORT] =&gt; 80    <br />&#160;&#160;&#160; [SERVER_NAME] =&gt; test.local    <br />&#160;&#160;&#160; [REDIRECT_STATUS] =&gt; 200    <br />&#160;&#160;&#160; [HTTP_ACCEPT] =&gt; image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/QVOD, application/QVOD, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*    <br />&#160;&#160;&#160; [HTTP_ACCEPT_LANGUAGE] =&gt; zh-cn    <br />&#160;&#160;&#160; [HTTP_ACCEPT_ENCODING] =&gt; gzip, deflate    <br />&#160;&#160;&#160; [HTTP_USER_AGENT] =&gt; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQPinyin 689; QQDownload 627; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; TheWorld)    <br />&#160;&#160;&#160; [HTTP_HOST] =&gt; test.local    <br />&#160;&#160;&#160; [HTTP_CONNECTION] =&gt; Keep-Alive    <br />&#160;&#160;&#160; [ORIG_SCRIPT_FILENAME] =&gt; /work/www/test/test.png/xxx.php    <br />&#160;&#160;&#160; [PATH_TRANSLATED] =&gt; /work/www/test    <br />&#160;&#160;&#160; [PHP_SELF] =&gt; /test.png/xxx.php    <br />&#160;&#160;&#160; [REQUEST_TIME] =&gt; 1274125615    <br />) </p>
<p>环境变量中，SCRIPT_FILENAME 是 Nginx 传过来的：   <br />fastcgi_param&#160; SCRIPT_FILENAME&#160;&#160;&#160; $document_root$fastcgi_script_name; </p>
<p>$fastcgi_script_name 变量说明请参考：   <br /><a href="http://wiki.nginx.org/NginxHttpFcgiModule">http://wiki.nginx.org/NginxHttpFcgiModule</a></p>
<p>Nginx 传给 PHP 的值为 /work/www/test/test.png/xxx.php，即 $_SERVER 中 ORIG_SCRIPT_FILENAME 的值，但是 $_SERVER 中 SCRIPT_FILENAME 却是 /work/www/test/test.png。 </p>
<p>原因是，/work/www/test/test.png/xxx.php 并不存在，对于这些不存在的路径，PHP 会检查路径中存在的文件，并将多余的部分当作 PATH_INFO。   <br />这里，/work/www/test/test.png 被 PHP 解析为 SCRIPT_FILENAME，/xxx.php 被 PHP 解析为 PATH_INFO 后被丢弃，因此并没有在 $_SERVER 中出现。 </p>
<p><font color="#ff0000"><strong>解决方法： </strong></font></p>
<p><font color="#ff0000"><strong>解决这个漏洞的方法很显然：关闭上面所述的解析即可。 </strong></font></p>
<p><font color="#ff0000"><strong>这个解析可以在 PHP 的配置文件中设置，默认为开启。在这里我们需要将它关闭： </strong></font></p>
<p><font color="#ff0000"><strong>; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP&#8217;s       <br />; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok        <br />; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting        <br />; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting        <br />; of zero causes PHP to behave as before. Default is 1. You should fix your scripts        <br />; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.        <br />; </strong></font><a href="http://php.net/cgi.fix-pathinfo"><font color="#ff0000"><strong>http://php.net/cgi.fix-pathinfo</strong></font></a>    <br /><font color="#ff0000"><strong>;cgi.fix_pathinfo=1       <br />cgi.fix_pathinfo=0 </strong></font></p>
<p><font color="#ff0000"><strong>其中 cgi.fix_pathinfo=0 为新增的配置行，表示关闭 PHP 的自动 PATH_INFO 检测。关闭后，该配置漏洞即可消除。</strong></font> </p>
<p>更好的解决方案？   <br />以上方案并不是最完美的，如果你先前有用到 cgi.fix_pathinfo 这个特性，影响会很大，比如关闭后，我的 Blog（Wordpress）文章的 URL 目录形式就得用 rewrite 来实现了。    <br />如果可以将 PHP 设置成只解析 .php 为扩展名的文件，那么这个问题解决起来会更合理。    <br />不过我没找到相关的设置项，或许今后应该出现在 php-fpm 的配置文件中？ </p>
<p>总结：   <br />这类问题基本上是无法预料的，但是如果架构设计良好的话，即使存在这个问题，也不会影响安全性。这里给出架构上的安全建议：    <br />* 尽可能使动静内容分离，所有的静态内容存在于静态内容服务器，静态内容服务器上不解析PHP，这样静态文件就永远不能被解析了。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/853/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Original]PHP通过SMTP Service发送邮件错误的解决</title>
		<link>http://99dev.net/archives/846</link>
		<comments>http://99dev.net/archives/846#comments</comments>
		<pubDate>Fri, 07 May 2010 07:47:08 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/846</guid>
		<description><![CDATA[各ISP返回错误   &#8212;&#8211; The following addresses had permanent fatal errors &#8212;&#8211;    &#60;xuyulu888@sohu.com&#62;    (reason: 504 5.5.2 &#60;sqweb1&#62;: Helo command rejected: need fully-qualified hos    tname)    &#60;&#60;&#60; 504 5.5.2 &#60;sqweb1&#62;: Helo command rejected: need fully-qualified hostname    554 5.0.0 Service unavailable    &#60;&#60;&#60; 554 5.5.1 Error: no valid recipients
<span class="readmore"><a href="http://99dev.net/archives/846" title="[Original]PHP通过SMTP Service发送邮件错误的解决" target="_blank">阅读全文——共1160字</a></span>]]></description>
			<content:encoded><![CDATA[<p>各ISP返回错误   <br />&#8212;&#8211; The following addresses had permanent fatal errors &#8212;&#8211;    <br />&lt;<a href="mailto:xuyulu888@sohu.com">xuyulu888@sohu.com</a>&gt;    <br />(reason: 504 5.5.2 &lt;sqweb1&gt;: Helo command rejected: need fully-qualified hos    <br />tname)    <br />&lt;&lt;&lt; 504 5.5.2 &lt;sqweb1&gt;: Helo command rejected: need fully-qualified hostname    <br />554 5.0.0 Service unavailable    <br />&lt;&lt;&lt; 554 5.5.1 Error: no valid recipients</p>
<p> <span id="more-846"></span>
<p>与Comsenz的开发人员沟通   <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-    <br />蒼 15:42:00    <br />discuz的注册邮件发送错误    <br />BSD|~Fly 15:43:05    <br />建立成正规的发件服务器，或使用已有的smtp服务器发就行了。    <br />BSD|~Fly 15:43:48    <br />不然会被大型邮件服务商拒绝的，因为你的邮件服务器“不正规”    <br />蒼 15:43:55    <br />也是跟FQDN有关的吧</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-    <br />#我们域名的MX记录    <br />lin-pooplematoMacBook:~ linpoople$ dig xmnn.cn MX    <br />; &lt;&lt;&gt;&gt; DiG 9.6.0-APPLE-P2 &lt;&lt;&gt;&gt; xmnn.cn MX    <br />;; global options: +cmd    <br />;; Got answer:    <br />;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 52826    <br />;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0    <br />;; QUESTION SECTION:    <br />;xmnn.cn. IN MX    <br />;; ANSWER SECTION:    <br />xmnn.cn. 120 IN MX 10 mx.ym.163.com.    <br />;; Query time: 186 msec    <br />;; SERVER: 8.8.8.8#53(8.8.8.8)    <br />;; WHEN: Thu May 6 15:50:06 2010    <br />;; MSG SIZE rcvd: 54    <br />&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>#处理措施    <br />该情况,sunbbs之前也反馈过,故障情况是一样的,刚好可以2个问题合并解决.    <br />目前需要做的是,建立一个集中的MailServer(192.168.96.52),做A记录和MX记录    <br />PHP程序方面,使用SOCKET连接SMTP服务器发送邮件    <br />需要在域名控制面板进行的步骤(xmnn.cn)    <br />A记录 mail 218.5.80.242    <br />MX记录 @ mail.xmnn.cn. 优先级5</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/846/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

