﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Gezidan Studio (鸽子蛋博客)-随笔分类-Linux</title><link>http://www.cppblog.com/gezidan/category/17472.html</link><description>每日必需来踩踩哦..</description><language>zh-cn</language><lastBuildDate>Wed, 12 Oct 2011 20:37:39 GMT</lastBuildDate><pubDate>Wed, 12 Oct 2011 20:37:39 GMT</pubDate><ttl>60</ttl><item><title>使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制</title><link>http://www.cppblog.com/gezidan/archive/2011/10/09/157841.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Sun, 09 Oct 2011 01:42:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/09/157841.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157841.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/09/157841.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157841.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157841.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 为了提高性能，几乎所有互联网应用都有缓存机制，其中Memcache是使用非常广泛的一个分布式缓存系统。众所周知，LAMP是非常经典的Web架构方式，但是随着Nginx的成熟，越来越多的系统开始转型为LNMP（Linux+Nginx+MySQL+PHP with fpm），这是因为Nginx采用基于事件机制的I/O多路复用思想设计，在高并发情况下其性能远远优于默认采用prefork模式的Apache，另外，相对于Apache，Nginx更轻量，同时拥有大量优秀的扩展模块，使得在Nginx上可以实现一些美妙的功能。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/10/09/157841.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/157841.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-10-09 09:42 <a href="http://www.cppblog.com/gezidan/archive/2011/10/09/157841.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在centos上搭建Git分布式管理控制系统</title><link>http://www.cppblog.com/gezidan/archive/2011/10/09/157838.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Sun, 09 Oct 2011 01:24:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/09/157838.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157838.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/09/157838.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157838.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157838.html</trackback:ping><description><![CDATA[<span class="Apple-style-span" style="color: #333333; font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px; background-color: #ffffff; ">
<h1 style="font-family: 微软雅黑, sans-serif; font-size: 26px; background-color: #999999; color: #ffffff; padding-top: 8px; padding-right: 10px; padding-bottom: 8px; padding-left: 10px; ">简介：</h1>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">Git是一个开源的分布式版本控制系统，用以有效、高速的处理从很小到非常大的项目版本管理。</p>
<h1 style="font-family: 微软雅黑, sans-serif; font-size: 26px; background-color: #999999; color: #ffffff; padding-top: 8px; padding-right: 10px; padding-bottom: 8px; padding-left: 10px; ">安装步骤：</h1>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><strong>操作系统：centos 5.5</strong></p>
<ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
     <ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
         <li style="background-image: url(http://www.cnblogs.com/Skins/Minyx2_Lite/images/icon_miniarrow.gif); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px; list-style-type: disc; background-position: 0px 9px; background-repeat: no-repeat no-repeat; ">
         <h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; ">安装GIT依赖的包</h2>
         </li>
     </ul>
</ul>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">yum install zlib-devel&nbsp;<br />
yum install openssl-devel&nbsp;<br />
yum install perl&nbsp;<br />
yum install cpio&nbsp;<br />
yum install expat-devel&nbsp;<br />
yum install gettext-devel</p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">yum install autoconf</p>
<ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
     <ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
         <li style="background-image: url(http://www.cnblogs.com/Skins/Minyx2_Lite/images/icon_miniarrow.gif); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px; list-style-type: disc; background-position: 0px 9px; background-repeat: no-repeat no-repeat; ">
         <h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; ">安装curl</h2>
         </li>
     </ul>
</ul>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">安装cURL&nbsp;</p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "># wget http://curl.haxx.se/download/curl-7.17.1.tar.gz&nbsp;<br />
# tar zxvf curl-7.17.1.tar.gz&nbsp; //解压</p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">#cd curl-7.17.1&nbsp;<br />
# ./configure --prefix=/usr/local/curl&nbsp;<br />
# make&nbsp;<br />
# make install</p>
<ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
     <li style="background-image: url(http://www.cnblogs.com/Skins/Minyx2_Lite/images/icon_miniarrow.gif); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px; list-style-type: disc; background-position: 0px 9px; background-repeat: no-repeat no-repeat; ">
     <h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; ">修改ld.so.conf 添加/usr/local/lib</h2>
     </li>
</ul>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">vi /etc/ld.so.conf 添加/usr/local/lib</p>
<ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
     <li style="background-image: url(http://www.cnblogs.com/Skins/Minyx2_Lite/images/icon_miniarrow.gif); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px; list-style-type: disc; background-position: 0px 9px; background-repeat: no-repeat no-repeat; ">
     <h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; ">运行idconfig</h2>
     </li>
</ul>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; ">/sbin/ldconfig</p>
<ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 45px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
     <li style="background-image: url(http://www.cnblogs.com/Skins/Minyx2_Lite/images/icon_miniarrow.gif); padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 15px; list-style-type: disc; background-position: 0px 9px; background-repeat: no-repeat no-repeat; ">
     <h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; ">安装Git</h2>
     </li>
</ul>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code>wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz<br />
tar xzvf git-latest.tar.gz&nbsp;<br />
cd git-2011-10-08</code></p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code></code><code>autoconf</code></p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code>./configure --with-curl=/usr/local/curl&nbsp;<br />
make&nbsp;<br />
make install</code></p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code>*************************************安装ok</code></p>
<h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; ">测试<code>：</code></h2>
<h2 style="font-family: 微软雅黑, sans-serif; font-size: 22px; letter-spacing: -1px; background-image: none; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 6px; padding-right: 0px; padding-bottom: 6px; padding-left: 0px; line-height: 26px; color: #336699; background-position: 0% 100%; background-repeat: repeat no-repeat; "><code>终端输入#git</code></h2>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><a href="http://images.cnblogs.com/cnblogs_com/phphuaibei/201110/201110081814067963.png" style="outline-style: none; outline-width: initial; outline-color: initial; text-decoration: none; color: #3d81ee; border-bottom-width: 1px; border-bottom-style: dashed; "><img title="wps_clip_image-15949" border="0" alt="wps_clip_image-15949" src="http://images.cnblogs.com/cnblogs_com/phphuaibei/201110/201110081814097949.png" width="627" height="346" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; background-color: #ffffff; display: inline; border-style: initial; border-color: initial; " /></a></p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code>相关参数和说明还是很全的</code></p>
<h1 style="font-family: 微软雅黑, sans-serif; font-size: 26px; background-color: #999999; color: #ffffff; padding-top: 8px; padding-right: 10px; padding-bottom: 8px; padding-left: 10px; "><code>使用和搭建版本控制：</code></h1>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code>可以参考：</code></p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code><a href="http://blog.haohtml.com/wp-content/uploads/2011/04/git-tut.pdf" style="outline-style: none; outline-width: initial; outline-color: initial; text-decoration: none; color: #3d81ee; border-bottom-width: 1px; border-bottom-style: dashed; ">http://blog.haohtml.com/wp-content/uploads/2011/04/git-tut.pdf</a></code></p>
<p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><a href="http://www.linuxsir.org/main/doc/git/gittutorcn.htm" style="outline-style: none; outline-width: initial; outline-color: initial; text-decoration: none; color: #3d81ee; border-bottom-width: 1px; border-bottom-style: dashed; ">http://www.linuxsir.org/main/doc/git/gittutorcn.htm</a></p>
</span>﻿<span class="Apple-style-span" style="color: #333333; font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px; background-color: #ffffff; "><p style="line-height: 25px; margin-top: 12px; margin-bottom: 12px; "><code>或者下载《<a href="http://files.cnblogs.com/phphuaibei/git%E6%90%AD%E5%BB%BA.pdf" target="_blank" style="outline-style: none; outline-width: initial; outline-color: initial; text-decoration: none; color: #3d81ee; border-bottom-width: 1px; border-bottom-style: dashed; ">git搭建</a>》文档</code></p></span><div class="MySignatureBoard" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; line-height: 24px; min-height: 31px; overflow-x: hidden; overflow-y: hidden; word-wrap: break-word; word-break: break-all; "> <img alt="Logo" src="http://www.cppblog.com/images/cppblog_com/gezidan/17469/r_Rixu_net(245_100).png" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; margin-left: 10px; margin-right: 10px; margin-top: 10px; margin-bottom: 10px; float: left; width: 245px; height: 100px; " /> <div id="MySignature" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 255px; margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-color: #4371a6; background-image: url(http://www.xxx.com/bk.png); background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: transparent; background-position: 15px 50%; background-repeat: no-repeat no-repeat; "> <span style="color: #333333; line-height: 21px; ">作者：<a href="http://www.rixu.net" style="text-decoration: none; color: #000000; line-height: 24px; cursor: pointer; outline-style: none; outline-width: initial; outline-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #333333; " target="_blank">Gezidan</a></span> <div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 25px; "> <span style="color: #333333; line-height: 21px; ">出处：<a href="http://www.rixu.net" style="text-decoration: none; color: #000000; line-height: 24px; cursor: pointer; outline-style: none; outline-width: initial; outline-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #333333; " target="_blank">http://www.rixu.net</a>　　　　</span></div> <div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 25px; "> <span style="color: #333333; line-height: 21px; ">本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。</span></div> </div>
</div>
<br />
<br /><br />
<br />
本文转载自&nbsp;http://www.cnblogs.com/phphuaibei/archive/2011/10/08/2202382.html<img src ="http://www.cppblog.com/gezidan/aggbug/157838.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-10-09 09:24 <a href="http://www.cppblog.com/gezidan/archive/2011/10/09/157838.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VNC远程管理Linux服务器安全指导</title><link>http://www.cppblog.com/gezidan/archive/2011/10/08/157750.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Sat, 08 Oct 2011 01:11:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/08/157750.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157750.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/08/157750.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157750.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157750.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 在开源领域，远程遥控技术的代表就是VNC了。VNC（Virtual Network Computer，虚拟网络计算机）是一套由AT&T实验室开发的可操控远程计算机的软件。根据主控端与被控端的不同，VNC软件可以分为两个部分，分别为VNC Server与VNC viewer。前者是安装在被控制端上，而后者被安装在主控端上。VNC软件不仅是开源的，而且是跨平台的。有不少系统管理员喜欢在Windows平台上使用这个VNC来作为远程管理Linux服务器或者客户端的工具。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/10/08/157750.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/157750.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-10-08 09:11 <a href="http://www.cppblog.com/gezidan/archive/2011/10/08/157750.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用iptables实现NAT转发功能</title><link>http://www.cppblog.com/gezidan/archive/2011/10/08/157748.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Sat, 08 Oct 2011 01:02:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/08/157748.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157748.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/08/157748.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157748.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157748.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 本文案例中，我们假设有一家ISP提供园区Internet接入服务，为了方便管理，该ISP分配给园区用户的IP地址都是私网IP，通过该私网IP用户无法向外发布信息。但是，部分用户要求建立自己的WWW服务器对外发布信息。<br>我们可以在防火墙的外部网卡上绑定多个合法IP地址，然后通过ip映射使发给其中某一个IP地址的包转发至内部某一用户的WWW服务器上，然后再将该内部WWW服务器响应包伪装成该合法IP发出的包。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/10/08/157748.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/157748.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-10-08 09:02 <a href="http://www.cppblog.com/gezidan/archive/2011/10/08/157748.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS 6下搭建Apache+MySQL+PHP+SSL</title><link>http://www.cppblog.com/gezidan/archive/2011/09/26/156805.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Mon, 26 Sep 2011 01:39:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/09/26/156805.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/156805.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/09/26/156805.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/156805.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/156805.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要:         网上的一些文章都已经比较老了，现在版本高了之后，其实配置是很省力的（不考虑什么负载的话）<br>分享全过程，出了文中提到的安装epel rpmfushion 源指令不同外，其他的过程也适用与Centos 5<br>1.安装CentOS 6 ,可以选择最小安装，也可以安装桌面<br>2.升级系统<br>yum update<br>&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/09/26/156805.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/156805.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-09-26 09:39 <a href="http://www.cppblog.com/gezidan/archive/2011/09/26/156805.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用SELinux保护你的Apache</title><link>http://www.cppblog.com/gezidan/archive/2011/09/20/156310.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Tue, 20 Sep 2011 06:18:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/09/20/156310.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/156310.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/09/20/156310.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/156310.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/156310.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 你的Web服务器确实有可能遭受攻击，但是SELinux可以用来确保你的网站不用承受真正的伤害。<br><br>你可以运用SELinux类型来创建一个确切定义：一个服务可以做什么和它在哪里完成要做的事情。默认情况下，httpd_sys_content类型被设为/var/www，它规定httpd进程可以在该目录中工作。如果攻击者破坏了Apache Web服务器并尝试在别处写入，就像红帽和Fedora以及CentOS等相似Linux版本的默认/tmp，你需要知道你正在处理什么。如果你配置Apache来为/data目录中的内容服务，SELinux也会默认地防止这种情况。<br><br>由于这些默认设置可能造成复杂的情况，很多Linux管理员关闭SELinux。虽然关闭SELinux的确让你的服务器提供服务时更容易，但是它还是增加了安全风险。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/09/20/156310.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/156310.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-09-20 14:18 <a href="http://www.cppblog.com/gezidan/archive/2011/09/20/156310.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iptables实战：通过NAT转发实现私网对外发布信息</title><link>http://www.cppblog.com/gezidan/archive/2011/09/20/156309.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Tue, 20 Sep 2011 06:15:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/09/20/156309.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/156309.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/09/20/156309.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/156309.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/156309.html</trackback:ping><description><![CDATA[<span class="Apple-style-span" style="color: #333333; font-family: 宋体; line-height: 28px; background-color: #f8f8f8; ">
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">本文假设读者已经对NAT的原理和基本用法有所了解。如不确定，可参考以下文章：</p>
<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 55px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; list-style-type: none; list-style-position: outside; list-style-image: none; word-wrap: break-word; word-break: normal; ">
     <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; list-style-type: decimal; list-style-position: outside; list-style-image: none; word-wrap: break-word; word-break: normal; "><a target="_blank" href="http://os.51cto.com/art/200709/56169.htm" style="color: #004276; text-decoration: underline; ">如何用iptables实现Linux下强大的NAT功能</a></li>
     <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; list-style-type: decimal; list-style-position: outside; list-style-image: none; word-wrap: break-word; word-break: normal; "><a target="_blank" href="http://os.51cto.com/art/201103/249054.htm" style="color: #004276; text-decoration: underline; ">如何用iptables实现NAT</a></li>
     <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; list-style-type: decimal; list-style-position: outside; list-style-image: none; word-wrap: break-word; word-break: normal; "><a target="_blank" href="http://os.51cto.com/art/201103/249323.htm" style="color: #004276; text-decoration: underline; ">iptables nat表基本语法</a></li>
</ol>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">本文案例中，我们假设有一家ISP提供园区Internet接入服务，为了方便管理，该ISP分配给园区用户的IP地址都是私网IP，通过该私网IP用户无法向外发布信息。但是，部分用户要求建立自己的WWW服务器对外发布信息。</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">我们可以在防火墙的外部网卡上绑定多个合法IP地址，然后通过ip映射使发给其中某一个IP地址的包转发至内部某一用户的WWW服务器上，然后再将该内部WWW服务器响应包伪装成该合法IP发出的包。</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">具体的IP分配如下：&nbsp;</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（1）该ISP分配给A单位www服务器的IP为:</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">私网ip:172.168.92.100</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">公网ip:210.95.33.100</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（2）该ISP分配给B单位www服务器的IP为:</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">私网ip:172.168.92.200</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">公网ip:210.95.33.200</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（3）Linux防火墙的IP地址分别为:</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">内网接口eth1:172.168.92.10</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">外网接口eth0:210.95.33.1</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">然后，我们需要进行如下步骤地操作：</p>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（1）将分配给A、B单位的真实ip绑定到防火墙的外网接口，以root权限执行以下命令：</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; font-family: 'Courier New', monospace; font-size: 12px; width: 591px; overflow-x: auto; overflow-y: auto; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #e6e6e6; background-position: initial initial; background-repeat: initial initial; ">#ifconfig eth0 add 210.95.33.100 netmask 255.255.255.0
#ifconfig eth0 add 210.95.33.200 netmask 255.255.255.0</pre>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（2）成功升级内核后安装iptables，然后执行以下脚本载入相关模块：</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; font-family: 'Courier New', monospace; font-size: 12px; width: 591px; overflow-x: auto; overflow-y: auto; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #e6e6e6; background-position: initial initial; background-repeat: initial initial; ">modprobe ip_tables
modprobe ip_nat_ftp</pre>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（3）对防火墙接收到的目的ip为210.95.33.100和210.95.33.200的所有数据包进行目的NAT(DNAT)：</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; font-family: 'Courier New', monospace; font-size: 12px; width: 591px; overflow-x: auto; overflow-y: auto; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #e6e6e6; background-position: initial initial; background-repeat: initial initial; ">#iptables -A PREROUTING -i eth0 -d 210.95.33.100 -j DNAT --to 172.168.92.100
#iptables -A PREROUTING -i eth0 -d 210.95.33.200 -j DNAT --to 172.168.92.200</pre>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">（4）对防火墙接收到的源ip地址为172.168.92.100和172.168.92.200的数据包进行源NAT(SNAT):</p>
<pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; font-family: 'Courier New', monospace; font-size: 12px; width: 591px; overflow-x: auto; overflow-y: auto; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #e6e6e6; background-position: initial initial; background-repeat: initial initial; ">#iptables -A POSTROUTING -o eth0 -s 172.168.92.100 -j SNAT --to 210.95.33.100
#iptables -A POSTROUTING -o eth0 -s 172.168.92.200 -j SNAT --to 210.95.33.200</pre>
<p style="margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: #333333; background-color: transparent; text-indent: 28px; ">这样，所有目的ip为210.95.33.100和210.95.33.200的数据包都将分别被转发给172.168.92.100和172.168.92.200；而所有来自172.168.92.100和172.168.92.200的数据包都将分别被伪装成由210.95.33.100和210.95.33.200，从而也就实现了ip映射。</p>
</span><div class="MySignatureBoard" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; line-height: 24px; min-height: 31px; overflow-x: hidden; overflow-y: hidden; word-wrap: break-word; word-break: break-all; "> <img alt="Logo" src="http://www.cppblog.com/images/cppblog_com/gezidan/17469/r_Rixu_net(245_100).png" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px;border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; margin-left: 10px; margin-right: 10px; margin-top: 10px; margin-bottom: 10px; float: left; width: 245px; height: 100px; " />
<div id="MySignature" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 255px; margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-color: #4371a6; background-image: url(http://www.xxx.com/bk.png); background-attachment: scroll; background-origin: initial; background-clip: initial; background-color: transparent; background-position: 15px 50%; background-repeat: no-repeat no-repeat; "> <span style="color: #333333; line-height: 21px; ">作者：<a href="http://www.rixu.net" style="text-decoration: none; color: #000000; line-height: 24px; cursor: pointer; outline-style: none; outline-width: initial; outline-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #333333; " target="_blank">Gezidan</a></span>
<div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 25px; "> <span style="color: #333333; line-height: 21px; ">出处：<a href="http://www.rixu.net" style="text-decoration: none; color: #000000; line-height: 24px; cursor: pointer; outline-style: none; outline-width: initial; outline-color: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: #333333; " target="_blank">http://www.rixu.net</a>　　　　</span></div>
<div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 25px; "> <span style="color: #333333; line-height: 21px; ">本文版权归作者和博客园共有，欢迎转载，但未经作者同意必须保留此段声明，且在文章页面明显位置给出原文连接，否则保留追究法律责任的权利。</span></div>
</div>
</div><img src ="http://www.cppblog.com/gezidan/aggbug/156309.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-09-20 14:15 <a href="http://www.cppblog.com/gezidan/archive/2011/09/20/156309.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何用iptables实现Linux下强大的NAT功能</title><link>http://www.cppblog.com/gezidan/archive/2011/09/20/156308.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Tue, 20 Sep 2011 06:11:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/09/20/156308.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/156308.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/09/20/156308.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/156308.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/156308.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 本文主要介绍如何使用iptbales实现linux2.4下的强大的NAT功能。关于iptables的详细语法请参考“用iptales实现包过虑型防火墙”一文。需要申明的是，本文绝对不是 NAT-HOWTO的简单重复或是中文版，在整个的叙述过程中，作者都在试图用自己的语言来表达自己的理解，自己的思想。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/09/20/156308.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/156308.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-09-20 14:11 <a href="http://www.cppblog.com/gezidan/archive/2011/09/20/156308.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>完美安装CentOS + Nginx + PHP-FPM + MySQL</title><link>http://www.cppblog.com/gezidan/archive/2011/09/20/156305.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Tue, 20 Sep 2011 05:49:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/09/20/156305.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/156305.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/09/20/156305.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/156305.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/156305.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: PHP 5.3.1<br>MySQL 5.0.89<br>Nginx 0.8.33 或 0.7.65 （可选）<br>现在，我们可以快速全自动搞定 CentOS + Nginx + PHP-FPM + MySQL 的安装了<br>这个可比网上流传的什么一键安装包要好得多，强烈推荐此法安装，适合所有菜鸟和高手<br>我服务器上全用的源代码编译安装，也好不到哪去，还很费劲&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/09/20/156305.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/156305.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-09-20 13:49 <a href="http://www.cppblog.com/gezidan/archive/2011/09/20/156305.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C++自定义发IP包例子</title><link>http://www.cppblog.com/gezidan/archive/2011/08/19/153850.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Fri, 19 Aug 2011 06:55:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/19/153850.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153850.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/19/153850.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153850.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153850.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/19/153850.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153850.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-19 14:55 <a href="http://www.cppblog.com/gezidan/archive/2011/08/19/153850.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open处理</title><link>http://www.cppblog.com/gezidan/archive/2011/08/19/153826.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Thu, 18 Aug 2011 17:42:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/19/153826.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153826.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/19/153826.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153826.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153826.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 之前已经在freebsd主机登陆到dreamhost.com的ssh密钥实验是成功的，参考网址<br>http://wiki.dreamhost.com/SSH#Passwordless_Login<br>但今天尝试把密钥放到debian系统的/root/.ssh/id_rsa中，然后在debian的终端界面输入<br>ssh xxxx@xxxx.dreamhost.com<br>这样就出现 Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open. 等错误显示了，经google查询下，原来只要把权限降到0600就ok了<br>输入命令<br>chmod 0600 /root/.ssh/id_rsa<br>然后再<br>ssh xxxx@xxxx.dreamhost.com<br>这样就可以密钥登陆了.&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/19/153826.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153826.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-19 01:42 <a href="http://www.cppblog.com/gezidan/archive/2011/08/19/153826.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux中文man在线手册</title><link>http://www.cppblog.com/gezidan/archive/2011/08/18/153806.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Thu, 18 Aug 2011 13:58:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/18/153806.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153806.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/18/153806.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153806.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153806.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/18/153806.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153806.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-18 21:58 <a href="http://www.cppblog.com/gezidan/archive/2011/08/18/153806.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu 服务器版安装mono记录</title><link>http://www.cppblog.com/gezidan/archive/2011/08/16/153587.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Tue, 16 Aug 2011 10:56:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/16/153587.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153587.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/16/153587.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153587.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153587.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/16/153587.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153587.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-16 18:56 <a href="http://www.cppblog.com/gezidan/archive/2011/08/16/153587.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用OpenSSH构建SSH服务器</title><link>http://www.cppblog.com/gezidan/archive/2011/08/16/153586.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Tue, 16 Aug 2011 10:54:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/16/153586.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153586.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/16/153586.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153586.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153586.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 　　SSH服务和Telnet服务一样，通过远程登录登录到系统，在远程操控系统。但它与Telnet的不同点就是：Telnet在传输的过程中是平文传输，而SSH是将传输内容加密，在传送的过程中保证了传送内容的保密性，从而提高了系统的安全性。 <br><br>　　在这里，我们不准备将SSH服务作为用户上传下载文件的工具。我们只用SSH服务的开通为远程管理系统提供方便。另外在用户认证方式上，为了服务器和用户的安全，禁止用户密码的认证方式，而基于“钥匙”的方式。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/16/153586.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153586.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-16 18:54 <a href="http://www.cppblog.com/gezidan/archive/2011/08/16/153586.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>LNMP安装配置-linux Nginx/Mysql/Php/Phpmyadmin(CentOS vps)</title><link>http://www.cppblog.com/gezidan/archive/2011/08/12/153108.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Thu, 11 Aug 2011 16:27:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/12/153108.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153108.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/12/153108.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153108.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153108.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 只在vps服务器搭建vpn线路，显然有些浪费。比如还可以在Linux的vps服务器上安装lnmp网站服务器。<br><br>LNMP是指在linux系统下安装Nginx服务器、Mysql数据库、Php (Phpmyadmin)。安装LNMP过程很简单，另外也有LNMP一键安装包，因此甚至不需要进行一些LNMP配置，网站服务器就可以工作了。但是lnmp一键安装的缺点是如果安装过程出现了问题，配置起来就困难很多了。<br><br>为什么不用lamp，即没有采用Apache服务器的原因是该VPS配置性能不高，跑apache服务器将会非常吃力。而Nginx是一个高性能的http、反向代理服务器，Nginx的特点就是轻便和高性能，非常适合低配置的VPS搭建网站服务器。下面是远方博客在CentOS系统下安装和配置LNMP、安装FTP服务器vsftpd、并搭建wordpress博客网站的过程，记录供备忘并交流。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/12/153108.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153108.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-12 00:27 <a href="http://www.cppblog.com/gezidan/archive/2011/08/12/153108.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VPS构建web服务器介绍</title><link>http://www.cppblog.com/gezidan/archive/2011/08/12/153104.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Thu, 11 Aug 2011 16:11:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/12/153104.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/153104.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/12/153104.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/153104.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/153104.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 廉价的VPS都不约而同的会提供Linux的系统，并在控制面板上也会提供各种Linux系统的Reinstall，比说说经典的Redhat、Debian、Centos、Fedora 还有Ubuntu。选择什么系统的话，还是因人而异，很多玩Linux服务器的老手都会推荐Centos，因为相对比入手简单特别是国内有关的中文教材比较多，个人比较喜欢Debian，Debian占用资源很少，稳定性也不错，可惜国内有关的教程不多。。而至于源于Debian 的 Ubuntu，虽然在使用上比Debian方便多，但是也存在很多问题，桌面版本的系统使用起来相当的舒服，就是服务器系统的使用，个人不倾向Ubuntu。理论上64位的系统要比32位的要快，但是在廉价VPS母机的有限硬件条件下，其实差别甚微。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/12/153104.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/153104.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-12 00:11 <a href="http://www.cppblog.com/gezidan/archive/2011/08/12/153104.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux下automake用法</title><link>http://www.cppblog.com/gezidan/archive/2011/08/08/152772.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Mon, 08 Aug 2011 03:58:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/08/152772.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/152772.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/08/152772.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/152772.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/152772.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 作为Linux下的程序开发人员，大家一定都遇到过Makefile，用make命令来编译自己写的程序确实是很方便。一般情况下，大家都是手工写一个简单Makefile，如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。 <br><br>在本文中，将给大家介绍如何使用 autoconf和automake两个工具来帮助我们自动地生成符合自由软件惯例的Makefile，这样就可以象常见的GNU程序一样，只要使用“./configure”，“make”，“make install”就可以把程序安装到Linux系统中去了。这将特别适合想做开放源代码软件的程序开发人员，又或如果你只是自己写些小的Toy程序，那么这个文章对你也会有很大的帮助。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/08/152772.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/152772.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-08 11:58 <a href="http://www.cppblog.com/gezidan/archive/2011/08/08/152772.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>非常优秀的vimrc设置</title><link>http://www.cppblog.com/gezidan/archive/2011/08/08/152766.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Mon, 08 Aug 2011 03:21:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/08/152766.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/152766.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/08/152766.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/152766.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/152766.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 非常优秀的vimrc设置。反正我很喜欢<br><br>" An example for a vimrc file.<br>"<br>" Maintainer: a18ccms <a18ccms@gmail.com><br>" Last change: 2010 03 12<br>"<br>" To use it, copy it to<br>" for Unix and OS/2: ~/.vimrc<br>" for Amiga: s:.vimrc<br>" for MS-DOS and Win32: $VIM\_vimrc<br>" for OpenVMS: sys$login:.vimrc<br> <br>" When started as "evim", evim.vim will already have done these settings.<br>if v:progname =~? "evim"<br>finish<br>endif&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/08/152766.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/152766.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-08 11:21 <a href="http://www.cppblog.com/gezidan/archive/2011/08/08/152766.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>经典编程书籍（C++, 网络, Windows, Linux）</title><link>http://www.cppblog.com/gezidan/archive/2011/08/08/152756.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Mon, 08 Aug 2011 02:59:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/08/152756.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/152756.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/08/152756.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/152756.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/152756.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 两年前就给自己列出了一个读书清单，但进展缓慢，看的经典书籍仍然寥寥可数，惭愧中...... <br>现在将这个书单重新修改，一方面鞭策自己学习，另一方面也表达对大牛们有如滔滔江水般的敬仰之意。 <br>书单中列举的都是相关领域的经典书籍，必读之作。此书单的编辑参考了很多网站，包括一些名家的推荐，例如侯捷，孟岩，荣耀，潘爱民等等，在此也向这些前辈表示感谢。^_^ &nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/08/152756.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/152756.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-08 10:59 <a href="http://www.cppblog.com/gezidan/archive/2011/08/08/152756.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>u盘/移动硬盘（usb hd）安装多种linux live CD</title><link>http://www.cppblog.com/gezidan/archive/2011/08/06/152609.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Fri, 05 Aug 2011 16:18:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/06/152609.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/152609.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/06/152609.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/152609.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/152609.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 如果U盘够大，可以在一个U盘安装slax,pclinuxos,Linux Mint,puppy Linux等多种live linux。移动硬盘原理相同，不做区分。<br>因为U盘常用来拷贝文件，fat格式在多种操作系统上通用，所以用grub4dos管理U盘引导。<br>把U盘格成HDD格式：<br>用DiskGenius 3.2把U盘格式化为USB-HDD格式，推荐使用FAT32分区；或者用U盘格式化工具（HPUSBFW.EXE ）格式化为 HDD 格式。还有其它 工具如FlashBoot、 WIN PM 等。<br>将引导代码写入U盘mbr：<br>Win32下，运行grubinst_gui.exe ，在“磁盘”处选中U盘，在“选项”区选中“不保存原来的mbr”、“不引导原来的mbr”、“启动时不搜索软盘”、“输出详细信息”，点击“安装”即可。<br>拷贝grub4dos的grub.exe、grldr、menu.lst到u盘根目录。<br>现在，U盘已经可以用grub引导，把电脑设置为U盘优先引导，测试一下grub的引导。<br>安装linux live cd的过程分&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/06/152609.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/152609.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-06 00:18 <a href="http://www.cppblog.com/gezidan/archive/2011/08/06/152609.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Windows完成端口与Linux epoll技术简介</title><link>http://www.cppblog.com/gezidan/archive/2011/08/04/152436.html</link><dc:creator>Gezidan Studio</dc:creator><author>Gezidan Studio</author><pubDate>Thu, 04 Aug 2011 05:49:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/08/04/152436.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/152436.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/08/04/152436.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/152436.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/152436.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: WINDOWS完成端口编程<br>1、基本概念<br>2、WINDOWS完成端口的特点<br>3、完成端口（Completion Ports ）相关数据结构和创建<br>4、完成端口线程的工作原理<br>5、Windows完成端口的实例代码<br>Linux的EPoll模型<br>1、为什么select落后<br>2、内核中提高I/O性能的新方法epoll<br>3、epoll的优点<br>4、epoll的工作模式 <br>5、epoll的使用方法<br>6、Linux下EPOll编程实例<br>总结&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/08/04/152436.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/152436.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">Gezidan Studio</a> 2011-08-04 13:49 <a href="http://www.cppblog.com/gezidan/archive/2011/08/04/152436.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>