<?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>安sir典藏夹</title>
	<atom:link href="http://www.ansir.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ansir.net</link>
	<description>一点闲情，一首诗歌；一只妙笔，一处文章</description>
	<lastBuildDate>Thu, 12 Apr 2012 10:30:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>unable to load selinux policy</title>
		<link>http://www.ansir.net/2012/04/12/unable-to-load-selinux-policy.html</link>
		<comments>http://www.ansir.net/2012/04/12/unable-to-load-selinux-policy.html#comments</comments>
		<pubDate>Thu, 12 Apr 2012 10:30:39 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=933</guid>
		<description><![CDATA[开机起动LINUX出现 unable to load selinux policy. machine is in enforcing mode. halting now. kernel panic-not syncing:attempted to kill init! &#160; &#160; 解决方法： 在Grub启动菜单上按e进入编辑模式，在启动项 “kernel /vmlinu... ]]></description>
			<content:encoded><![CDATA[<p>开机起动LINUX出现</p>
<p>unable to load selinux policy. machine is in enforcing mode. halting now.</p>
<p>kernel panic-not syncing:attempted to kill init!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>解决方法：</p>
<p>在Grub启动菜单上按e进入编辑模式，在启动项</p>
<p>“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet”   {不同版本的系统有所不同}</p>
<p>后面加上 enforcing=0 ，回车，然后按b启动即可。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>拓展阅读：SELINUX   是什么 ：</p>
<p>SELinux 是 2.6 版本的 Linux 内核中提供的<a href="http://baike.baidu.com/view/4420215.htm" target="_blank">强制访问控制</a> (<a href="http://baike.baidu.com/view/32702.htm" target="_blank">MAC</a>)系统。对于目前可用的 <a href="http://baike.baidu.com/view/1634.htm" target="_blank">Linux</a> 安全模块来说，SELinux 是功能最全面，而且测试最充分的，它是在 20 年的 MAC 研究基础上建立的。SELinux 在类型强制服务器中合并了多级安全性或一种可选的多类策略，并采用了基于角色的访问控制概念。</p>
<div></div>
<p>大部分使用 SELinux 的人使用的都是 SELinux 就绪的发行版，例如 <a href="http://baike.baidu.com/view/182182.htm" target="_blank">Fedora</a>、Red Hat Enterprise Linux (RHEL)、<a href="http://baike.baidu.com/view/40687.htm" target="_blank">Debian</a> 或 <a href="http://baike.baidu.com/view/66564.htm" target="_blank">Gentoo</a>。它们都是在内核中启用 SELinux 的，并且提供一个可定制的安全策略，还提供很多用户层的库和工具，它们都可以使用 SELinux 的功能。</p>
<div></div>
<p>SELinux是一种基于 域-类型 模型（domain-type）的强制访问控制（MAC）<a href="http://baike.baidu.com/view/173312.htm" target="_blank">安全系统</a>，它由NSA编写并设计成内核模块包含到内核中，相应的某些安全相关的应用也被打了SELinux的<a href="http://baike.baidu.com/view/228.htm" target="_blank">补丁</a>，最后还有一个相应的安全策略。</p>
<div></div>
<p>众所周知，标准的UNIX安全模型是”任意的访问控制”DAC。就是说，任何程序对其资源享有完全的控制权。假设某个程序打算把含有潜在重要信息的文件扔到/tmp目录下，那么在DAC情况下没人能阻止他！</p>
<div></div>
<p>而MAC情况下的安全策略完全控制着对所有资源的访问。这是MAC和DAC本质的区别。</p>
<div></div>
<p>SELinux提供了比传统的UNIX权限更好的访问控制。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2012/04/12/unable-to-load-selinux-policy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CENTOS 6.0 关闭 SELINUX</title>
		<link>http://www.ansir.net/2012/02/22/centos-6-0-%e5%85%b3%e9%97%ad-selinux.html</link>
		<comments>http://www.ansir.net/2012/02/22/centos-6-0-%e5%85%b3%e9%97%ad-selinux.html#comments</comments>
		<pubDate>Wed, 22 Feb 2012 05:49:45 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=930</guid>
		<description><![CDATA[SELinux一个灵活而强制性的访问控制结构，旨在提高Linux系统的安全性，提供强健的安全保证，可防御未知攻击，但是在实际运用中，我们往往需要关闭它。 1 vi /etc/selinux/config 2 #SELINUX=enforcing #... ]]></description>
			<content:encoded><![CDATA[<p>SELinux一个灵活而强制性的访问控制结构，旨在提高Linux系统的安全性，提供强健的安全保证，可防御未知攻击，但是在实际运用中，我们往往需要关闭它。</p>
<div>
<table>
<tbody>
<tr>
<td><code>1</code></td>
<td><code>vi /etc/selinux/config</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>2</code></td>
<td><code> </code><code>#SELINUX=enforcing #注释掉</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>3</code></td>
<td><code> </code><code>#SELINUXTYPE=targeted #注释掉</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>4</code></td>
<td><code> </code><code>SELINUX=disabled #增加</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>5</code></td>
<td><code> </code><code>:wq #保存，关闭。</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>6</code></td>
<td><code>shutdown -r now #重启系统</code></td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2012/02/22/centos-6-0-%e5%85%b3%e9%97%ad-selinux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>远程桌面，提示：您已经被拒绝登陆到终端服务器。要解决这个问题，管理必须在“终端服务器配置文件”设置选项卡中清除“报纸这个用户登陆到任何终端服务器”复选框。可以在“Active Directory用户和计算机或本地用户和组”的用户属性对话框中找到这个选项卡。的解决方法</title>
		<link>http://www.ansir.net/2012/02/08/%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%ef%bc%8c%e6%8f%90%e7%a4%ba%ef%bc%9a%e6%82%a8%e5%b7%b2%e7%bb%8f%e8%a2%ab%e6%8b%92%e7%bb%9d%e7%99%bb%e9%99%86%e5%88%b0%e7%bb%88%e7%ab%af%e6%9c%8d%e5%8a%a1%e5%99%a8.html</link>
		<comments>http://www.ansir.net/2012/02/08/%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%ef%bc%8c%e6%8f%90%e7%a4%ba%ef%bc%9a%e6%82%a8%e5%b7%b2%e7%bb%8f%e8%a2%ab%e6%8b%92%e7%bb%9d%e7%99%bb%e9%99%86%e5%88%b0%e7%bb%88%e7%ab%af%e6%9c%8d%e5%8a%a1%e5%99%a8.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:24:38 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[windows2003]]></category>
		<category><![CDATA[远程被拒绝]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=926</guid>
		<description><![CDATA[&#160; 如上图，在远程桌面的时候，输入用户名和密码后，登陆不了，弹出提示：您已经被拒绝登陆到终端服务器。要解决这个问题，管理必须在“终端服务器配置文件”设置选项卡中清除“报... ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-927" title="server_36" src="http://www.ansir.net/wp-content/uploads/2012/02/server_36.jpg" alt="" width="599" height="397" /></p>
<p>如上图，在远程桌面的时候，输入用户名和密码后，登陆不了，弹出提示：您已经被拒绝登陆到终端服务器。要解决这个问题，管理必须在“终端服务器配置文件”设置选项卡中清除“报纸这个用户登陆到任何终端服务器”复选框。可以在“Active Directory用户和计算机或本地用户和组”的用户属性对话框中找到这个选项卡。<br />
你可以使用以下的方法解决：<br />
在本地打开电脑，使用管理员用户进入服务器系统，然后点击【我的电脑】右键选择【管理】如上图，展开到“本地用户和组”下的“用户”，点击你的远程桌面用户右键选择“属性”在弹出的属性窗口中选择“终端服务器配置文件”选项卡，把“拒绝这个用户登陆到任何终端服务器”前的勾去掉就可以了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2012/02/08/%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%ef%bc%8c%e6%8f%90%e7%a4%ba%ef%bc%9a%e6%82%a8%e5%b7%b2%e7%bb%8f%e8%a2%ab%e6%8b%92%e7%bb%9d%e7%99%bb%e9%99%86%e5%88%b0%e7%bb%88%e7%ab%af%e6%9c%8d%e5%8a%a1%e5%99%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows2003 建立ftp之 隔离用户</title>
		<link>http://www.ansir.net/2011/09/06/windows2003-%e5%bb%ba%e7%ab%8bftp%e4%b9%8b-%e9%9a%94%e7%a6%bb%e7%94%a8%e6%88%b7.html</link>
		<comments>http://www.ansir.net/2011/09/06/windows2003-%e5%bb%ba%e7%ab%8bftp%e4%b9%8b-%e9%9a%94%e7%a6%bb%e7%94%a8%e6%88%b7.html#comments</comments>
		<pubDate>Tue, 06 Sep 2011 05:19:36 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[windows2003]]></category>
		<category><![CDATA[隔离用户]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=922</guid>
		<description><![CDATA[所谓隔离用户是指用户之间是被隔离开的，用户之间 不能看到其他人的目录，每个用户只能访问自己的目录 文件。 举例：比如有甲乙丙 三哥ftp帐号，那么甲用户访问ftp 的时候是看不到 乙 丙 ... ]]></description>
			<content:encoded><![CDATA[<p>所谓隔离用户是指用户之间是被隔离开的，用户之间 不能看到其他人的目录，每个用户只能访问自己的目录 文件。</p>
<p>举例：比如有甲乙丙 三哥ftp帐号，那么甲用户访问ftp 的时候是看不到 乙 丙 的目录文件的 。乙、丙 也同样。</p>
<p>首先我们要在windows添加删除组件里面添加FTP 组件，添加好了 在IIS 里面 有个FTP ，右击可以新建FTP 站点，选择第二项 隔离用户，然后指定目录，添加读取和写入权限。</p>
<p>这里要注意的是，如果使用了隔离用户，则必须要有目录“LocalUser” 并且 每个用户名和他的目录名要一致。另外无需对目录文件对每个用户设定权限。</p>
<p>具体的 请参考视频</p>
<p><object width="480" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://player.youku.com/player.php/sid/XMzAxNjgwMTky/v.swf" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><param name="allowscriptaccess" value="always" /><embed width="480" height="400" type="application/x-shockwave-flash" src="http://player.youku.com/player.php/sid/XMzAxNjgwMTky/v.swf" allowfullscreen="true" quality="high" allowscriptaccess="always" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/09/06/windows2003-%e5%bb%ba%e7%ab%8bftp%e4%b9%8b-%e9%9a%94%e7%a6%bb%e7%94%a8%e6%88%b7.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>要登录到这条远程计算机，您必须拥有这台计算机上的“终端服务器用户访问”权限</title>
		<link>http://www.ansir.net/2011/09/03/%e8%a6%81%e7%99%bb%e5%bd%95%e5%88%b0%e8%bf%99%e6%9d%a1%e8%bf%9c%e7%a8%8b%e8%ae%a1%e7%ae%97%e6%9c%ba%ef%bc%8c%e6%82%a8%e5%bf%85%e9%a1%bb%e6%8b%a5%e6%9c%89%e8%bf%99%e5%8f%b0%e8%ae%a1%e7%ae%97%e6%9c%ba.html</link>
		<comments>http://www.ansir.net/2011/09/03/%e8%a6%81%e7%99%bb%e5%bd%95%e5%88%b0%e8%bf%99%e6%9d%a1%e8%bf%9c%e7%a8%8b%e8%ae%a1%e7%ae%97%e6%9c%ba%ef%bc%8c%e6%82%a8%e5%bf%85%e9%a1%bb%e6%8b%a5%e6%9c%89%e8%bf%99%e5%8f%b0%e8%ae%a1%e7%ae%97%e6%9c%ba.html#comments</comments>
		<pubDate>Sat, 03 Sep 2011 06:15:30 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[文章随笔]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=916</guid>
		<description><![CDATA[windows 2003 远程桌面连接的时候 提示 ：“要登录到这条远程计算机，您必须拥有这台计算机上的“终端服务器用户访问”权限” &#160; &#160; 解决方法 ：在windows组件里面 卸载掉 终端服务器。 具... ]]></description>
			<content:encoded><![CDATA[<p>windows 2003 远程桌面连接的时候 提示 ：“<span class="Apple-style-span" style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;">要登录到这条远程计算机，您必须拥有这台计算机上的“终端服务器用户访问”权限</span>”</p>
<p>&nbsp;</p>
<p><img class="aligncenter size-full wp-image-917" title="QQ截图20110903141247" src="http://www.ansir.net/wp-content/uploads/2011/09/QQ截图20110903141247.jpg" alt="" width="775" height="182" /></p>
<p>&nbsp;</p>
<p>解决方法 ：在windows组件里面 卸载掉 终端服务器。</p>
<p>具体的可以查看一下视频！2003 远程问题<br />
<object width="480" height="400" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://player.youku.com/player.php/sid/XMzAwMjY2Mzg0/v.swf" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><param name="allowscriptaccess" value="always" /><embed width="480" height="400" type="application/x-shockwave-flash" src="http://player.youku.com/player.php/sid/XMzAwMjY2Mzg0/v.swf" allowfullscreen="true" quality="high" allowscriptaccess="always" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/09/03/%e8%a6%81%e7%99%bb%e5%bd%95%e5%88%b0%e8%bf%99%e6%9d%a1%e8%bf%9c%e7%a8%8b%e8%ae%a1%e7%ae%97%e6%9c%ba%ef%bc%8c%e6%82%a8%e5%bf%85%e9%a1%bb%e6%8b%a5%e6%9c%89%e8%bf%99%e5%8f%b0%e8%ae%a1%e7%ae%97%e6%9c%ba.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>gmail google 访问不给力解决办法</title>
		<link>http://www.ansir.net/2011/08/24/gmail-google-%e8%ae%bf%e9%97%ae%e4%b8%8d%e7%bb%99%e5%8a%9b%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html</link>
		<comments>http://www.ansir.net/2011/08/24/gmail-google-%e8%ae%bf%e9%97%ae%e4%b8%8d%e7%bb%99%e5%8a%9b%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html#comments</comments>
		<pubDate>Wed, 24 Aug 2011 01:38:59 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=913</guid>
		<description><![CDATA[203.208.39.22 webcache.googleusercontent.com 203.208.39.22 mail.google.com 203.208.39.22 www.google.com.hk 203.208.39.22 www.google.com 最近发现上gmail 和google 不给力了~老实惠出现无法访问 的情况~~唉~天朝又在瞎搞了 如果你... ]]></description>
			<content:encoded><![CDATA[<pre>203.208.39.22 webcache.googleusercontent.com
203.208.39.22 mail.google.com
203.208.39.22 www.google.com.hk
203.208.39.22 www.google.com</pre>
<pre>最近发现上gmail 和google 不给力了~老实惠出现无法访问 的情况~~唉~天朝又在瞎搞了
如果你也是这样，请将上面的代码 添加到 本机的hosts 文件中！
hosts 路径：C:\Windows\System32\drivers\etc
此地址为北京谷歌的一个地址。</pre>
<pre>原帖：<a href="http://www.cityworld.us/forum-viewthread-tid-198-highlight-GOOGLE.html">http://www.cityworld.us/forum-viewthread-tid-198-highlight-GOOGLE.html</a></pre>
<pre>做人要厚道，转帖请注明来源地址！</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/08/24/gmail-google-%e8%ae%bf%e9%97%ae%e4%b8%8d%e7%bb%99%e5%8a%9b%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>解决freeBSD 启动时 Enter full pathname of shell or RETURN for /bin/sh</title>
		<link>http://www.ansir.net/2011/08/04/%e8%a7%a3%e5%86%b3freebsd-%e5%90%af%e5%8a%a8%e6%97%b6-enter-full-pathname-of-shell-or-return-for-binsh.html</link>
		<comments>http://www.ansir.net/2011/08/04/%e8%a7%a3%e5%86%b3freebsd-%e5%90%af%e5%8a%a8%e6%97%b6-enter-full-pathname-of-shell-or-return-for-binsh.html#comments</comments>
		<pubDate>Thu, 04 Aug 2011 07:27:01 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=911</guid>
		<description><![CDATA[主要是由于在X-win中不正常退出导致/etc/rc.conf文件配置出错 解决办法： #fsck -p / &#38;&#38; mount -uw / ( you can read and write /etc/rc.conf) #fsck -p /usr &#38;&#38; mount /usr (mount /usr because you need /usr/bin/vi) reboot ... ]]></description>
			<content:encoded><![CDATA[<p>主要是由于在X-win中不正常退出导致/etc/rc.conf文件配置出错</p>
<p>解决办法：</p>
<p>#fsck -p / &amp;&amp; mount -uw / ( you can read and write /etc/rc.conf)<br />
#fsck -p /usr &amp;&amp; mount /usr (mount /usr because you need /usr/bin/vi)<br />
reboot<br />
或直接<br />
fsck -y<br />
mount -a<br />
reboot即可</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/08/04/%e8%a7%a3%e5%86%b3freebsd-%e5%90%af%e5%8a%a8%e6%97%b6-enter-full-pathname-of-shell-or-return-for-binsh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 绑定(bond或team)多个网口作为一个网口</title>
		<link>http://www.ansir.net/2011/07/13/linux-%e7%bb%91%e5%ae%9abond%e6%88%96team%e5%a4%9a%e4%b8%aa%e7%bd%91%e5%8f%a3%e4%bd%9c%e4%b8%ba%e4%b8%80%e4%b8%aa%e7%bd%91%e5%8f%a3.html</link>
		<comments>http://www.ansir.net/2011/07/13/linux-%e7%bb%91%e5%ae%9abond%e6%88%96team%e5%a4%9a%e4%b8%aa%e7%bd%91%e5%8f%a3%e4%bd%9c%e4%b8%ba%e4%b8%80%e4%b8%aa%e7%bd%91%e5%8f%a3.html#comments</comments>
		<pubDate>Wed, 13 Jul 2011 01:44:34 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[bond]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=902</guid>
		<description><![CDATA[将多个Linux网络端口绑定为一个，可以提升网络的性能，比如对于备份服务器，需要在一个晚上备份几个T的数据，如果使用单个的千兆网口将会是很严重的瓶颈。其它的应用，比如ftp服务器，... ]]></description>
			<content:encoded><![CDATA[<p>将多个Linux网络端口绑定为一个，可以提升网络的性能，比如对于备份服务器，需要在一个晚上备份几个T的数据，如果使用单个的千兆网口将会是很严重的瓶颈。其它的应用，比如ftp服务器，高负载的下载网站, 都有类似的问题。因此使用Linux teaming或bond来绑定多个网卡作为一个逻辑网口，配置单个的IP地址，会大幅提升服务器的网络吞吐(I/O).</p>
<p>Linux的多网卡绑定功能使用的是内核中的”bonding”模块，关于此模块可以参考<a href="http://www.cyberciti.biz/howto/question/static/linux-ethernet-bonding-driver-howto.php"><span style="color: #003366;">Linux Ethernet Bonding Driver</span></a>文档, 但是目前发布各个Linux版本内核均已包含了此模块，大多数情况下不需要重新编译内核。 Linux 的 bonding 驱动提供了绑定/集成(bond)多个网卡为一个虚拟逻辑网口的功能。并请注意绑定的网口(bonded)有多种工作模式; 一般来说，分为 热后备(hot standby) 和 负载均衡(load balancing). 在Redhat/Fedora和其它类Redhat Linux中是比较容易配置的.</p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">第一步: 创建 bond0 配置文件</span></p>
<p>Red Hat Linux的网络配置文件在目录: /etc/sysconfig/network-scripts/ . 首先，需要创建 bond0 配置文件:</p>
<pre>[root@nixway.net etc]# vi /etc/sysconfig/network-scripts/ifcfg-bond0</pre>
<p>如下参考配置:</p>
<pre>DEVICE=bond0        --物理设备名字
IPADDR=192.168.1.20  --IP地址
NETWORK=192.168.1.0  --所属子网
NETMASK=255.255.255.0 --子网掩码
USERCTL=no           --是否允许非root用户控制该设备
BOOTPROTO=none     --一般是在做网卡绑定的时候用到，通常情况下就dhcp或者static</pre>
<pre>ONBOOT=yes         --开机自动激活网卡</pre>
<p>将如上的IP替换为实际的IP地址.</p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">第二步: 修改 eth0 和 eth1 配置文件:</span></p>
<p>使用vi修改eth0和eth1的配置文件</p>
<pre>[root@nixway.net etc]# vi /etc/sysconfig/network-scripts/ifcfg-eth0</pre>
<p>如下为参考配置</p>
<pre>DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none</pre>
<p>修改eth1配置文件</p>
<pre>[root@nixway.net etc]# vi /etc/sysconfig/network-scripts/ifcfg-eth1</pre>
<p>如下为参考配置</p>
<pre>DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none</pre>
<p>保存退出.</p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">第三步: 装载 bond 模块驱动</span></p>
<p>在使bond0网口能够工作之前，需要首先装载内核bond模块的驱动, 修改/etc/modprobe.conf:</p>
<pre>[root@nixway.net etc]# vi /etc/modprobe.conf</pre>
<p>将如下两行附加到文件末尾:</p>
<pre>alias bond0 bonding
options bond0 mode=balance-alb miimon=100</pre>
<pre>mode=balance-alb ---f负载均衡</pre>
<pre>miimon=100       ---用来进行链路监测的。</pre>
<pre>                  比如:miimon=100，那么系统每100ms监测一次链路连接状态，</pre>
<pre>                  如果有一条线路不通就转入另一条线路</pre>
<p>保存退出vi编辑。</p>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">第四步: 测试配置</span></p>
<p>首先装载bonding模块</p>
<pre>[root@nixway.net etc]# modprobe bonding</pre>
<p>重启网络服务，确认bond0已经启动:</p>
<pre>[root@nixway.net etc]# service network restart</pre>
<p>确认设备已经正确加载:</p>
<pre>[root@nixway.net etc]# less /proc/net/bonding/bond0</pre>
<p>输出:</p>
<pre>Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0 

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c6:be:59 

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:c6:be:63</pre>
<p>列出所有网口:</p>
<pre>[root@nixway.net etc]# ifconfig</pre>
<p>输出:</p>
<pre>bond0     Link encap:Ethernet  HWaddr 00:0C:29:C6:BE:59
 inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0
 inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
 UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
 RX packets:2804 errors:0 dropped:0 overruns:0 frame:0
 TX packets:1879 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0
 RX bytes:250825 (244.9 KiB)  TX bytes:244683 (238.9 KiB) 

eth0      Link encap:Ethernet  HWaddr 00:0C:29:C6:BE:59
 inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0
 inet6 addr: fe80::20c:29ff:fec6:be59/64 Scope:Link
 UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
 RX packets:2809 errors:0 dropped:0 overruns:0 frame:0
 TX packets:1390 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:251161 (245.2 KiB)  TX bytes:180289 (176.0 KiB)
 Interrupt:11 Base address:0x1400 

eth1      Link encap:Ethernet  HWaddr 00:0C:29:C6:BE:59
 inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0
 inet6 addr: fe80::20c:29ff:fec6:be59/64 Scope:Link
 UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
 RX packets:4 errors:0 dropped:0 overruns:0 frame:0
 TX packets:502 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:258 (258.0 b)  TX bytes:66516 (64.9 KiB)
 Interrupt:10 Base address:0x1480</pre>
<p>如果已经输出类似上述的端口，说明你的bond已经成功了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/07/13/linux-%e7%bb%91%e5%ae%9abond%e6%88%96team%e5%a4%9a%e4%b8%aa%e7%bd%91%e5%8f%a3%e4%bd%9c%e4%b8%ba%e4%b8%80%e4%b8%aa%e7%bd%91%e5%8f%a3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>图解windows2008 设置多用户登录</title>
		<link>http://www.ansir.net/2011/06/15/%e5%9b%be%e8%a7%a3windows2008-%e5%a4%9a%e7%94%a8%e6%88%b7%e7%99%bb%e5%bd%95.html</link>
		<comments>http://www.ansir.net/2011/06/15/%e5%9b%be%e8%a7%a3windows2008-%e5%a4%9a%e7%94%a8%e6%88%b7%e7%99%bb%e5%bd%95.html#comments</comments>
		<pubDate>Wed, 15 Jun 2011 01:28:56 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[windows2008]]></category>
		<category><![CDATA[多用户登录]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=890</guid>
		<description><![CDATA[windows2008 默认情况下是不允许多用户登录的，即：一个帐号只能有一个登录回话。不像windows2003 那样一个帐号可以在好几个地方登录。windows2008 是有这样的功能的，只是默认系统没有开启而已... ]]></description>
			<content:encoded><![CDATA[<p>windows2008 默认情况下是不允许多用户登录的，即：一个帐号只能有一个登录回话。不像windows2003 那样一个帐号可以在好几个地方登录。windows2008 是有这样的功能的，只是默认系统没有开启而已。具体方法参照下图：</p>
<p style="text-align: center;"><a href="http://www.ansir.net/wp-content/uploads/2011/06/1.jpg" target="_blank"><img class="size-medium wp-image-893 aligncenter" title="1" src="http://www.ansir.net/wp-content/uploads/2011/06/1-300x221.jpg" alt="" width="300" height="221" /></a><a href="http://www.ansir.net/wp-content/uploads/2011/06/2.jpg" target="_blank"><img class="size-medium wp-image-895 aligncenter" title="2" src="http://www.ansir.net/wp-content/uploads/2011/06/2-300x223.jpg" alt="" width="300" height="223" /></a><a href="http://www.ansir.net/wp-content/uploads/2011/06/3.jpg" target="_blank"><img class="size-medium wp-image-896 aligncenter" title="3" src="http://www.ansir.net/wp-content/uploads/2011/06/3-300x224.jpg" alt="" width="300" height="224" /></a><a href="http://www.ansir.net/wp-content/uploads/2011/06/4.jpg" target="_blank"><img class="size-medium wp-image-897 aligncenter" title="4" src="http://www.ansir.net/wp-content/uploads/2011/06/4-300x207.jpg" alt="" width="300" height="207" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/06/15/%e5%9b%be%e8%a7%a3windows2008-%e5%a4%9a%e7%94%a8%e6%88%b7%e7%99%bb%e5%bd%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bins任务栏增强工具–让Win7也拥有类似Mac系统的Stack图标分组文件夹功能</title>
		<link>http://www.ansir.net/2011/06/12/bins%e4%bb%bb%e5%8a%a1%e6%a0%8f%e5%a2%9e%e5%bc%ba%e5%b7%a5%e5%85%b7%e2%80%93%e8%ae%a9win7%e4%b9%9f%e6%8b%a5%e6%9c%89%e7%b1%bb%e4%bc%bcmac%e7%b3%bb%e7%bb%9f%e7%9a%84stack%e5%9b%be%e6%a0%87%e5%88%86.html</link>
		<comments>http://www.ansir.net/2011/06/12/bins%e4%bb%bb%e5%8a%a1%e6%a0%8f%e5%a2%9e%e5%bc%ba%e5%b7%a5%e5%85%b7%e2%80%93%e8%ae%a9win7%e4%b9%9f%e6%8b%a5%e6%9c%89%e7%b1%bb%e4%bc%bcmac%e7%b3%bb%e7%bb%9f%e7%9a%84stack%e5%9b%be%e6%a0%87%e5%88%86.html#comments</comments>
		<pubDate>Sun, 12 Jun 2011 01:38:29 +0000</pubDate>
		<dc:creator>安sir</dc:creator>
				<category><![CDATA[技术交流]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[任务栏]]></category>

		<guid isPermaLink="false">http://www.ansir.net/?p=886</guid>
		<description><![CDATA[微软的 Windows7 有一个很受用户喜爱的小功能，就是将常用的图标锁定到任务栏，方便随时启动。可是当你锁定的图标越来越多之后，你就会发现你的任务栏的空间同时也变得更小了，难道鱼和... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.heimian.com/upload/2011/6/201106112000298724.jpg"><img src="http://www.heimian.com/upload/2011/6/201106112000298724.jpg" alt="" /></a></p>
<p>微软的 Windows7 有一个很受用户喜爱的小功能，就是将常用的图标锁定到任务栏，方便随时启动。可是当你锁定的图标越来越多之后，你就会发现你的任务栏的空间同时也变得更小了，难道鱼和熊掌不可兼得吗？非也！</p>
<p>Bins 是一款加强 Win7 任务栏的免费软件，能够给任务栏加上类似 Mac OSX 系统中的 Stack 网格功能，目的是给图标创建分组 (这里叫做Bin) 并堆叠起来，让任务栏的空间利用率更高，让你启动常用程序时更加顺手。Bins 的使用方法很简单，只需将程序图标拖到任务栏上另一个程序上即可……</p>
<p>Bins 简介：<br />
Bins 是之前我们介绍过的桌面图标分类增强工具 Fences 的作者开发的一款新的任务栏增强工具，它的效果类似 Mac 系统里的 Stack 功能，或者是 iPhone 上的文件夹，每个“bin”的结构紧凑，而且相当实用。譬如说，你可以建立一个网络软件、办公软件两个分类，分别放进QQ、浏览器、和Word、Excel等。这样需要启动它们时就非常方便快捷了，而且还能节省很多任务栏的空间。</p>
<p>并且，在没有展开图标列表的情况下，你还能直接在任务栏上看到缩略小图标，告诉你这个“bin”里面有什么。虽然看起来任务栏上每个bin只显示4个小图标，但其实它能装载更多。</p>
<p>Bins 的一些功能特色：<br />
1. 可以给你的任务栏创建多个分组，可以很快的找到你要的程序<br />
2. 使用超级容易，只需拖动程序到任务栏上<br />
3. 当鼠标移动到 Bin时，就会以“Stacks”效果展现。(类似iPhone系统的文件夹)<br />
4. 常用到的文件、文件夹也可以加到里面区</p>
<p>写在后面：<br />
Bins 的功能较为简单，所以这里也不需要太多的介绍了，对这种小工具有爱的朋友可以自己下载回去试试。很多时候，遇到一些“适合自己”的增强类的小软件不仅能提高工作效率，还能让你的心情更愉悦。如果你开始为任务栏上越来越多的图标而烦恼，那么不妨试试这个小东西吧！</p>
<p>相关文件下载地址：<br />
官方网站：<a href="http://www.oneupindustries.com/bins/">http://www.oneupindustries.com/bins/</a> 软件性质：免费</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ansir.net/2011/06/12/bins%e4%bb%bb%e5%8a%a1%e6%a0%8f%e5%a2%9e%e5%bc%ba%e5%b7%a5%e5%85%b7%e2%80%93%e8%ae%a9win7%e4%b9%9f%e6%8b%a5%e6%9c%89%e7%b1%bb%e4%bc%bcmac%e7%b3%bb%e7%bb%9f%e7%9a%84stack%e5%9b%be%e6%a0%87%e5%88%86.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
