﻿<?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>BlogJava-光子CI之旅-随笔分类-Ruby/Python/Ceylon</title><link>http://www.blogjava.net/kuuyee/category/53515.html</link><description>while (产品+需求+设计+开发+测试+部署+发布 == doing) 
{ 
  CI 
}</description><language>zh-cn</language><lastBuildDate>Thu, 13 Jun 2013 00:58:16 GMT</lastBuildDate><pubDate>Thu, 13 Jun 2013 00:58:16 GMT</pubDate><ttl>60</ttl><item><title>ruby下gem-fast设置代理错误</title><link>http://www.blogjava.net/kuuyee/archive/2013/06/13/400495.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Wed, 12 Jun 2013 23:58:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/06/13/400495.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/400495.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/06/13/400495.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/400495.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/400495.html</trackback:ping><description><![CDATA[<hr style="margin: 20px 0px; border-right-width: 0px; border-left-width: 0px; border-top-style: solid; border-top-color: #eeeeee; border-bottom-style: solid; border-bottom-color: #ffffff; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px; background-color: #f0efe7;" /><div style="background-color: #fcfcfa; border: 1px solid #e2e0d8; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; padding: 22px; margin-bottom: 35px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><h2><span style="font-size: 14px;">有时候公司内网需要设置HTTP代理才能连接公网，下面列出一些Gem及Git的代理设置方法</span></h2><div><p style="margin: 0px 0px 10px;"><strong>设置Git代理</strong></p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">$git config --global http.proxy http://192.128.1.3:80 <br />$  git config -l <br />http.proxy=http://192.128.1.3:80</code></pre></div></div><div><p style="margin: 0px 0px 10px;"><strong>设置Gem代理</strong></p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">$ export http_proxy=http://192.128.1.3:80 <br />gem install rails --http-proxy $http_proxy</code></pre></div></div><div><p style="margin: 0px 0px 10px;"><strong>让Bundler使用HTTP代理环境设置</strong></p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -E bundle ...</code></pre></div></div><div><h4>非Root用户设置代理后gem-fast会报错</h4><div><p style="margin: 0px 0px 10px;">如果你是非root用户，比如用Git用户设置http代理后，使用gem-fast会报如下错误：</p></div><div><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">curl: (7) couldn't connect to host <br />ERROR:  While executing gem ... (GemFast::Util::ExecutionError)     Failure while executing: curl -f#LA rubygem-gemfast http://ruby.taobao.org/quick/Marshal.4.8/bundler-1.3.5.gemspec.rz --insecure -o /home/git/local/lib/ruby/gems/1.9.1/cache/bundler-1.3.5.gemspec.rz</code></pre></div></div><div><p style="margin: 0px 0px 10px;">目前的还没找到根本的解决办法，原因是授权的问题，因为root用户执行就不报错，所以只能卸载<strong>gem-fast</strong>，这样就不报错了，但是就不能使用gem-fast的快速下载功能了。那位牛人能解决这个问题请告之小弟，谢谢！</p></div></div><p style="margin: 0px 0px 10px;"></p><div>2013-06-12</div></div><img src ="http://www.blogjava.net/kuuyee/aggbug/400495.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2013-06-13 07:58 <a href="http://www.blogjava.net/kuuyee/archive/2013/06/13/400495.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>GitLab5.0安装全过程</title><link>http://www.blogjava.net/kuuyee/archive/2013/04/19/398092.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 19 Apr 2013 07:43:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/04/19/398092.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/398092.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/04/19/398092.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/398092.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/398092.html</trackback:ping><description><![CDATA[<div style="width: 1170px; margin-right: auto; margin-left: auto; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">
<div style="margin-left: -30px;">
<div style="float: left; min-height: 1px; margin-left: 30px; width: 870px;">
<div style="background-color: #fcfcfa; border: 1px solid #e2e0d8; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; padding: 22px; margin-bottom: 35px;">
<h2><span style="font-size: 14px;">GitLab5发布快一个月了，决定试用下，5.0最大的特性就是用GitLab-Shell取代了Gitolite，这大大降低了安装难度，不多本人在安装过程中还是越到了一些问题，所以记录下来供要安装GitLab5的朋友参考！</span></h2>
<p style="margin: 0px 0px 10px;">主要参考文档:&nbsp;<a href="https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md" style="color: #0088cc; text-decoration: none;">https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md</a></p>
<h4>安装步骤总览</h4>
<ol style="padding: 0px; margin: 0px 0px 10px 25px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">
     <li>安装依赖包</li>
     <li>安装Ruby/RVM</li>
     <li>创建Git用户</li>
     <li>安装GitLab-Shell</li>
     <li>配置数据库</li>
     <li>安装GitLab</li>
     <li>启动</li>
</ol>
<h4>安装依赖库</h4>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install libicu-devel mysql-devel pcre-devel</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装python,官方要求版本必须在2.5以上，而且不支持3.0,Fedora一般的版本都在2.7以上，因此直接安装源自带的即可</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install python</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装完查看下版本</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">python --version</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">还要确保python2命令有效</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">python2 --version</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">如果提示&nbsp;<code style="padding: 2px 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #dd1144; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8;">bash: python2: 未找到命令</code>&nbsp;,那你需要link一下</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo ln -s /usr/bin/python /usr/bin/python2</code></pre>
<h4>安装Ruby</h4>
<ul style="padding: 0px; margin: 0px 0px 10px 25px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">
     <li>源码方式安装</li>
</ul>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mkdir /tmp/ruby &amp;&amp; cd /tmp/ruby <br />curl --progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | tar xz <br />cd ruby-1.9.3-p392 <br />./configure <br />make <br />sudo make install</code></pre>
<ul style="padding: 0px; margin: 0px 0px 10px 25px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">
     <li>RVM方式</li>
</ul>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">curl -#L https://get.rvm.io | bash -s stable --ruby</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">默然安装ruby2.0, GitLab推荐用1.9.3</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">rvm install ruby-1.9.3-p392</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">还要安装Bundler</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo gem install bundler</code></pre>
<h4>添加系统Git用户</h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">创建一个&nbsp;<code style="padding: 2px 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #dd1144; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8;">git</code>&nbsp;用户供GitLab使用</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">adduser --comment 'GitLab' git</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">让git用户无密码登陆</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo chmod 644 /etc/shadow vim /etc/shadow</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">去掉用户的叹号</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">git:!!:15814:0:99999:7::: 修改为 git::15814:0:99999:7:::</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">加入sudo组</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">chmod u+w /etc/sudoers <br />vim /etc/sudoers <br /><br />## Allow root to run any commands anywhere <br />root ALL=(ALL) ALL <br />git ALL=(ALL) ALL #加入这行</code></pre>
<h4>安装GitLab Shell</h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换到git用户</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">su - git cd ~/</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">克隆GitLab Shell</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">git clone https://github.com/gitlabhq/gitlab-shell.git <br />cd gitlab-shell</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换到最新的分支<br />
</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><div>git checkout v1.2.0 </div></pre>
<h4></h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">生产配置文件</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">cp config.yml.example config.yml</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">更改配置信息，一般就改下你部署的域名地址gitlab_url</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">vim config.yml <br />
# Url to gitlab instance. Used for api calls. Should be ends with slash.
gitlab_url: "http://localhost/" #改成你的域名或者IP</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">./bin/install</code></pre>
<h4>安装数据库</h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">gitlab支持mysql和postgresql，这里以mysql为例，postgresql会比较麻烦！</p>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换回root用户</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">su - root</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装mysql及开发包</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install -y mysql-server mysql mysql-devel</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">启动数据库</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">service mysqld start</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">初始化GitLab数据库</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql -u root -p 
Enter password: 
Welcome to the MySQL monitor. 
Commands end with ; or \g. 
Your MySQL connection id is 2 
Server version: 5.5.30 MySQL Community Server (GPL)</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql&gt; CREATE USER 'gitlab'@'localhost' IDENTIFIED BY 'gitlab'; 
Query OK, 0 rows affected (0.01 sec)</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql&gt; CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
Query OK, 1 row affected (0.00 sec)</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql&gt; GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost';
Query OK, 0 rows affected (0.00 sec)</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql&gt; \q 
Bye</code></pre>
<h4></h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">测试gitlab用户连接mysql</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -u git -H mysql -u gitlab -p -D gitlabhq_production</code></pre>
<h4>安装GitLab</h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">终于到GitLab的安装了，进入git用户</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">su - git 
cd ~/</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">克隆GitLab</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab <br />cd gitlab</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换到5.0稳定分支</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -u git -H git checkout 5-0-stable</code></pre>
<h4>配置</h4>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">cd /home/git/gitlab</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 用样例配置生成gitlab配置 
sudo -u git -H cp config/gitlab.yml.example config/gitlab.yml</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 更改域名 
sudo -u git -H vim config/gitlab.yml</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 确保gitlab对 log/ 和 tmp/ 目录有写权限 
sudo chown -R git log/ 
sudo chown -R git tmp/ 
sudo chmod -R u+rwX log/ 
sudo chmod -R u+rwX tmp/</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 创建附属目录 
sudo -u git -H mkdir /home/git/gitlab-satellites</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 创建pids目录并确保对gitlab可写 
sudo -u git -H mkdir tmp/pids/ 
sudo chmod -R u+rwX tmp/pids/</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 生成Unicorn配置 
sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb</code></pre>
<h4>配置GitLab DB设置</h4>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># Mysql sudo -u git cp config/database.yml.mysql config/database.yml</code></pre>
<h4>安装Gems</h4>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">cd /home/git/gitlab</code> 
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo gem install charlock_holmes --version '0.6.9'</code> <br />
<code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># For MySQL (note, the option says "without") 
bundle install --deployment --without development test postgres</code></pre>
<h4></h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><span style="font-family: verdana, 'courier new'; line-height: 21px;"><br />
</span></p>
<h4 style="margin: 10px 0px; text-rendering: optimizelegibility; font-size: 17.5px;">初始化数据并激活高级特性</h4>
<p>&nbsp;</p>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">首先编辑/home/git/gitlab/config/database.yml</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 
# PRODUCTION 
# 
production: 
  adapter: mysql2 
  encoding: utf8 
  reconnect: false 
  database: gitlabhq_production 
  pool: 5 
  username: root 
  password: "secure password" #更改为你mysql的root用户密码 
# host: localhost 
# socket: /tmp/mysql.sock 
#</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">执行rake</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">bundle exec rake gitlab:setup RAILS_ENV=production</code></pre>
<div alert-danger"="" style="padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: rgba(255, 255, 255, 0.498039) 0px 1px 0px; background-color: #f2dede; border: 1px solid #eed3d7; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; color: #b94a48; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">报错了，提示 Error connecting to Redis on localhost:6379 (ECONNREFUSED)<br />
解决办法：<br />
切到root,安装Redis<br />
bc(command). yum install redis*<br />
service redis start #启动redis</div>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">重新执行rake</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">bundle exec rake gitlab:setup RAILS_ENV=production</code></pre>
<div alert-info"="" style="padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: rgba(255, 255, 255, 0.498039) 0px 1px 0px; background-color: #d9edf7; border: 1px solid #bce8f1; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; color: #3a87ad; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">如果你安装最新版可能会报&nbsp;<code style="padding: 2px 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #dd1144; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8;">/home/git/repositories/root</code>&nbsp;目录找不到，手工建上即可！</div>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">如果你看到如下信息:</p>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">... 
Administrator account created:</code> <br /><br /><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">login.........admin@local.host 
password......5iveL!fe</code></pre>
<h4></h4>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><strong>恭喜你！你已经成功安装GitLab了！别忘了记录输出的管理用户名和密码！</strong></p>
<h4>启动GitLab</h4>
<pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">bundle exec rails s -e production 
=&gt; Booting WEBrick 
=&gt; Rails 3.2.13 application starting in production on http://0.0.0.0:3000 
=&gt; Call with -d to detach 
=&gt; Ctrl-C to shutdown server 
[2013-04-19 15:04:41] INFO WEBrick 1.3.1 
[2013-04-19 15:04:41] INFO ruby 1.9.3 (2013-02-22) 
[x86_64-linux] [2013-04-19 15:04:41] INFO WEBrick::HTTPServer#start: pid=11488 port=3000</code></pre>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">Ok,你现在可以访问GitLab了，默认端口是 @3000@， 访问 http://你的域名或IP:3000<br />
第一访问会比较慢，因为要编译很多js和css.</p>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">哈哈！看到登陆页面了吧！</p>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><img src="http://www.kuuyee.org/images/gitlab/gitlab_01.png" title="GitLab登陆" alt="GitLab登陆" style="max-width: 100%; vertical-align: middle; border-width: 0px;" /></p>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">输入管理用户名和密码！开始享受GitLab吧！</p>
<p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><img src="http://www.kuuyee.org/images/gitlab/gitlab_02.png" title="GitLab首页" alt="GitLab首页" style="max-width: 100%; vertical-align: middle; border-width: 0px;" /></p>
<p style="margin: 0px 0px 10px;"></p>
<div>2013-04-19</div>
</div>
</div>
</div>
</div>
<footer style="text-align: center; padding: 20px 0px; margin-top: 20px; border-top-width: 1px; border-top-style: solid; border-top-color: #e5e5e5; background-color: #f5f5f5; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">
<div style="width: 1170px; margin-right: auto; margin-left: auto;"></div>
</footer><img src ="http://www.blogjava.net/kuuyee/aggbug/398092.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2013-04-19 15:43 <a href="http://www.blogjava.net/kuuyee/archive/2013/04/19/398092.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>下一代静态网站生成框架Awestruct在Fedora18安装全过程</title><link>http://www.blogjava.net/kuuyee/archive/2013/01/24/394698.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 24 Jan 2013 05:39:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/01/24/394698.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/394698.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/01/24/394698.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/394698.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/394698.html</trackback:ping><description><![CDATA[<h2></h2><h2><strong style="color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18px;">Awestruct是非常棒的静态网站生成框架，他基于Jekyll，使用Ruby语言开发。Awestruct可以根据模板生成非常漂亮的网站，例如可以用BootStrap或者BluePrint，这两个大名鼎鼎的东东不用多说了吧，地球人都知道。废话不多说，进入主题。</strong></h2><h3>安装Ruby环境</h3><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">首先安装一些依赖库，否则安装Awestruct会报如下的错误：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Building native extensions.  This could take a while... <br />......... <br />ERROR:  Error installing <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a>:         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ERROR: Failed to build gem native extension. .         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/bin/ruby extconf.rb <br />checking for stdio.h... *** extconf.rb failed *** <br />Could not create Makefile due to some reason, probably lack of <br />necessary libraries and/or headers.  Check the mkmf.log file for more <br />details.  You may need configuration options. <br />. <br />Provided configuration options:         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-dir         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-dir         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-include         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-include=${opt-dir}/include         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-opt-lib         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-opt-lib=${opt-dir}/lib         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--with-make-prog         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--without-make-prog         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--srcdir=.         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--curdir         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--ruby=/usr/bin/ruby <br />/usr/share/ruby/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) <br />You have to install development tools first.         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:506:in `try_cpp'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:931:in `block in have_header'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:790:in `block in checking_for'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:284:in `block (2 levels) in postpone'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:254:in `open'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:284:in `block in postpone'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:254:in `open'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:280:in `postpone'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:789:in `checking_for'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/ruby/mkmf.rb:930:in `have_header'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from extconf.rb:2:in `&lt;main&gt;'</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">开始安装依赖库，用&nbsp;<strong>root</strong>&nbsp;用户或者&nbsp;<strong>su</strong>&nbsp;执行如下命令：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel</code></pre><div alert-success"="" style="padding: 8px 35px 8px 14px; margin-bottom: 18px; text-shadow: rgba(255, 255, 255, 0.498039) 0px 1px 0px; background-color: #dff0d8; border: 1px solid #d6e9c6; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; color: #468847; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px;">我是Fedora的粉丝，对不住用其它发行版的童鞋了，请自行根据我列出的安装包找到对应的系统安装方法。</div><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">安装Ruby和RubyGems,用&nbsp;<strong>root</strong>&nbsp;用户或者&nbsp;<strong>su</strong>&nbsp;执行如下命令：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install ruby ruby-devel ruby-irb rubygems</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">Fedora18 Yum源的Ruby非常新，都是目前(2012-12-14)的最新版本，看看安装的Ruby版本：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">正在安装    : libyaml-0.1.4-3.fc18.x86_64                                           1/10    <br />正在安装    : ruby-libs-1.9.3.327-22.fc18.x86_64                                    2/10    <br />正在安装    : ruby-irb-1.9.3.327-22.fc18.noarch                                     3/10    <br />正在安装    : rubygem-json-1.6.5-2.fc18.x86_64                                      4/10    <br />正在安装    : rubygem-io-console-0.3-22.fc18.x86_64                                 5/10    <br />正在安装    : rubygem-bigdecimal-1.1.0-22.fc18.x86_64                               6/10    <br />正在安装    : rubygem-rdoc-3.12-5.fc18.noarch                                       7/10    <br />正在安装    : rubygems-1.8.24-3.fc18.noarch                                         8/10    <br />正在安装    : ruby-1.9.3.327-22.fc18.x86_64                                         9/10    <br />正在安装    : ruby-devel-1.9.3.327-22.fc18.x86_64 </code></pre><h3>安装Awestruct</h3><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">Awestruct使用RubyGems管理安装，用&nbsp;<strong>root</strong>&nbsp;用户或者&nbsp;<strong>su</strong>&nbsp;执行如下命令：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">gem install <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> --no-ri --no-rdoc</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">结果报如下错误:</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Fetching: nokogiri-1.5.5.gem (100%) <br />ERROR:  Error installing <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a>:         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;invalid gem format for /usr/local/share/gems/cache/nokogiri-1.5.5.gem</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">这个问题让我郁闷了N久时间，Google了大半天，还特意搞了FANQIANG，结果死活装不上nokogiri。最后通过Yum来解决,我只能说RubyGems安装很无耻！还是YUM好！，命令如下：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install -y rubygem-nokogiri</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">再次安装Awestruct：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install -y rubygem-nokogiri</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">盼望已久的时刻来临，如果哪位童鞋看到如下的输出，Congratulations！</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Successfully installed <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a>-0.4.7 17 gems installed</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">不过别高兴太早，先适用下是否OK！用BootStrap模板生产一个新的静态网站，命令如下：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"><a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> -i -f bootstrap //或者用awestruct --init --framework bootstrap</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">傻眼了，还是报错：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">[root@localhost kuuyee]# <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> -i -f bootstrap <br />/usr/local/share/gems/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/execjs-1.4.0/lib/execjs.rb:5:in `&lt;module:ExecJS&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/execjs-1.4.0/lib/execjs.rb:4:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `&lt;top (required)&gt;'         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'     <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `&lt;top (required)&gt;'          &nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'     <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/handlers/coffeescript_handler.rb:8:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/handler_chains.rb:14:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/pipeline.rb:2:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/engine.rb:6:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/generate.rb:1:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/invoker.rb:4:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/bin/awestruct:6:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/awestruct:23:in `load'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/awestruct:23:in `&lt;main&gt;'</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">顾名思义，提示没有JavaScript Runtime。继续Google，最后一位高人指点说装个JavaScript引擎就OK，我选择NodeJS。只可惜NodeJSF没有YUM源，只能源码编译安装，无所谓，继续:</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">wget -c 'http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz' <br />tar zxvf node-v0.8.16.tar.gz  <br />cd node-v0.8.16 <br />./configure  <br />make &amp;&amp; make install</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">又是一阵漫长的等待，搞不明白一个JS框架怎么要编译这么久，无语！最后编译完成测试一下：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">[root@localhost node-v0.8.16]# node -v v0.8.16</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">OK,继续Awestruct测试：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">[root@localhost kuuyee]# <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> -i -f bootstrap <br />/usr/local/share/gems/gems/git-1.2.5/lib/git/lib.rb:700:in `command': git version   2&gt;&amp;1:sh: git: 未找到命令 (Git::GitExecuteError)         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/git-1.2.5/lib/git/lib.rb:649:in `current_command_version'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/git-1.2.5/lib/git/lib.rb:659:in `meets_required_version?'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/git-1.2.5/lib/git.rb:30:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/deploy/base_deploy.rb:2:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/deploy/s3_deploy.rb:1:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/deploy.rb:1:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/invoker.rb:7:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/share/gems/gems/awestruct-0.4.7/bin/awestruct:6:in `&lt;top (required)&gt;'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/awestruct:23:in `load'         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from /usr/local/bin/awestruct:23:in `&lt;main&gt;'</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">竟然还TMD报错，不过这回不用急，只是提示没装Git，好办！那就装呗：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install git</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">再继续Awestruct：</p><pre style="padding: 8.5px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"><div style="display: inline-block;"><font color="#333333" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size: 12px; line-height: 18px; white-space: pre-wrap;">[root@localhost kuuyee.org]# <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> -i -f bootstrap
Create directory: /root/git_project/kuuyee.org/_config
Create directory: /root/git_project/kuuyee.org/_layouts
Create directory: /root/git_project/kuuyee.org/_ext
Create file: /root/git_project/kuuyee.org/_ext/pipeline.rb
Create directory: /root/git_project/kuuyee.org/stylesheets
directory _site/stylesheets/ 
directory images/ 
directory javascripts/ 
   create stylesheets/styles.scss 
   create images/glyphicons-halflings.png 
   create images/glyphicons-halflings-white.png 
   create javascripts/bootstrap-alert.js 
   create javascripts/bootstrap-button.js 
   create javascripts/bootstrap-carousel.js 
   create javascripts/bootstrap-collapse.js 
   create javascripts/bootstrap-dropdown.js 
   create javascripts/bootstrap-modal.js 
   create javascripts/bootstrap-popover.js 
   create javascripts/bootstrap-scrollspy.js 
   create javascripts/bootstrap-tab.js 
   create javascripts/bootstrap-tooltip.js 
   create javascripts/bootstrap-transition.js 
   create javascripts/bootstrap-typeahead.js 
   create _site/stylesheets/styles.css 

Now you're <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a>!

To generate your site continuous during development, simply run:

  <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> -d

and visit your site at

  http://localhost:4242/

Create file: /root/git_project/kuuyee.org/_layouts/base.html.haml
Create file: /root/git_project/kuuyee.org/index.html.haml</span></font><font color="rgba(0, 0, 0, 0)" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size: 12.025px; line-height: 18px; white-space: pre-wrap;">
</span></font></div></code></pre><div><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"><div style="display: inline-block;"></div></code></div><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;"><strong>Congratulations!</strong>&nbsp;这回真的恭喜你了！赶紧部署一下：</p><pre style="padding: 8.5px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><div style="display: inline-block; font-size: 12px; line-height: 18px; white-space: pre-wrap;"><font color="#333333" face="Menlo, Monaco, Consolas, Courier New, monospace">[root@localhost kuuyee]#  <a title="下一代静态网站生成工具" href="http://awestruct.org" >下一代静态网站生成工具</a> -d
Unable to locate profile: development
Using profile: NONE
Generating site: http://localhost:4242
Generating: /1003/awestruct-sample/_site/images/glyphicons-halflings-white.png
Generating: /1003/awestruct-sample/_site/images/glyphicons-halflings.png
Generating: /1003/awestruct-sample/_site/index.html
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-alert.js
/usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/handlers/interpolation_handler.rb:35: Use RbConfig instead of obsolete and deprecated Config.
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-button.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-carousel.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-collapse.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-dropdown.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-modal.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-popover.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-scrollspy.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-tab.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-tooltip.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-transition.js
Generating: /1003/awestruct-sample/_site/javascripts/bootstrap-typeahead.js
Analyzing:  /1003/awestruct-sample/_site/stylesheets/styles.css
[Listen warning]:
  Missing dependency 'rb-inotify' (version '~&gt; 0.8.8')!
  Please run the following to satisfy the dependency:   
    gem install --version '~&gt; 0.8.8' rb-inotify   
.  
  For a better performance, it's recommended that you satisfy the missing dependency.
  Listen will be polling changes. Learn more at https://github.com/guard/listen#polling-fallback.
.
&gt;&gt; Thin web server (v1.4.1 codename Chromeo)
&gt;&gt; Maximum connections set to 1024
&gt;&gt; Listening on 0.0.0.0:4242, CTRL+C to stop
</font></div><font color="#333333" face="Menlo, Monaco, Consolas, Courier New, monospace"><span style="font-size: 12.025px; line-height: 18px; white-space: pre-wrap;"><br /></span></font></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">打开&nbsp;<a href="http://localhost:4242/" style="color: #0088cc; text-decoration: initial;">http://localhost:4242/</a>&nbsp;看看吧！</p><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;"><img src="http://docs.1003.com/images/bootstrap.png" title="BootStrap网站模板" alt="BootStrap网站模板" style="max-width: 100%; vertical-align: middle; border: 0px;" /></p><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">细心的童鞋一定会注意到部署输出有警告，我是属于不想看到任何警告的人，所以还得继续，清楚警告：</p><pre style="padding: 8.5px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 12.025px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 9px; line-height: 18px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902); font-weight: normal;"><code style="padding: 0px; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">gem install --version '~&gt; 0.8.8' rb-inotify</code></pre><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;">再次部署访问就不会有警告了！</p><p style="margin: 0px 0px 9px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #ffffff;"><strong>大功告成！祝愿各位童鞋安装成功！</strong></p><img src ="http://www.blogjava.net/kuuyee/aggbug/394698.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2013-01-24 13:39 <a href="http://www.blogjava.net/kuuyee/archive/2013/01/24/394698.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>用Weblogic WLST脚本 远程部署Web应用</title><link>http://www.blogjava.net/kuuyee/archive/2011/10/13/361213.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 13 Oct 2011 15:46:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/10/13/361213.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/361213.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/10/13/361213.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/361213.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/361213.html</trackback:ping><description><![CDATA[废话少说 直接上代码<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080; ">&nbsp;1</span>&nbsp;<span style="color: #0000FF; ">import</span><span style="color: #000000; ">&nbsp;re<br /></span><span style="color: #008080; ">&nbsp;2</span>&nbsp;<span style="color: #000000; ">&nbsp;<br /></span><span style="color: #008080; ">&nbsp;3</span>&nbsp;<span style="color: #000000; ">warPath&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">'</span><span style="color: #800000; ">helloWebApp</span><span style="color: #800000; ">'</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">&nbsp;4</span>&nbsp;<span style="color: #000000; ">serverUrl&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">'</span><span style="color: #800000; ">t3://192.168.1.100:7001</span><span style="color: #800000; ">'</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">&nbsp;5</span>&nbsp;<span style="color: #000000; ">username&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">'</span><span style="color: #800000; ">weblogic</span><span style="color: #800000; ">'</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">&nbsp;6</span>&nbsp;<span style="color: #000000; ">password&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">'</span><span style="color: #800000; ">weblogic</span><span style="color: #800000; ">'</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">&nbsp;7</span>&nbsp;<span style="color: #000000; ">targetServer</span><span style="color: #000000; ">=</span><span style="color: #800000; ">"</span><span style="color: #800000; ">examplesServer</span><span style="color: #800000; ">"</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">&nbsp;8</span>&nbsp;<span style="color: #000000; ">deployAppName</span><span style="color: #000000; ">=</span><span style="color: #800000; ">'</span><span style="color: #800000; ">DeployExample2</span><span style="color: #800000; ">'</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">&nbsp;9</span>&nbsp;<span style="color: #000000; "><br /></span><span style="color: #008080; ">10</span>&nbsp;<span style="color: #000000; ">&nbsp;<br /></span><span style="color: #008080; ">11</span>&nbsp;<span style="color: #000000; ">connect(username,&nbsp;password,&nbsp;serverUrl)<br /></span><span style="color: #008080; ">12</span>&nbsp;<span style="color: #000000; ">&nbsp;<br /></span><span style="color: #008080; ">13</span>&nbsp;<span style="color: #000000; ">appList&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;re.findall(deployAppName,&nbsp;ls(</span><span style="color: #800000; ">'</span><span style="color: #800000; ">/AppDeployments</span><span style="color: #800000; ">'</span><span style="color: #000000; ">))<br /></span><span style="color: #008080; ">14</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000FF; ">print</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">"</span><span style="color: #800000; ">=========================</span><span style="color: #800000; ">"</span><span style="color: #000000; "><br /></span><span style="color: #008080; ">15</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000FF; ">print</span><span style="color: #000000; ">&nbsp;len(appList)<br /></span><span style="color: #008080; ">16</span>&nbsp;<span style="color: #000000; "></span><span style="color: #0000FF; ">if</span><span style="color: #000000; ">&nbsp;len(appList)&nbsp;</span><span style="color: #000000; ">&gt;</span><span style="color: #000000; ">&nbsp;0:<br /></span><span style="color: #008080; ">17</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000; ">#</span><span style="color: #008000; ">oldestArchiveVersion&nbsp;=&nbsp;min(map(int,&nbsp;appList))</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">18</span>&nbsp;<span style="color: #008000; "></span><span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000FF; ">print</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">'</span><span style="color: #800000; ">come&nbsp;in!!!</span><span style="color: #800000; ">'</span><span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #008080; ">19</span>&nbsp;<span style="color: #000000; ">&nbsp;&nbsp;&nbsp;&nbsp;undeploy(deployAppName)<br /></span><span style="color: #008080; ">20</span>&nbsp;<span style="color: #000000; ">&nbsp;<br /></span><span style="color: #008080; ">21</span>&nbsp;<span style="color: #000000; "></span><span style="color: #008000; ">#</span><span style="color: #008000; ">deploy(appName='DeployExample',&nbsp;path&nbsp;=&nbsp;'helloWebApp',&nbsp;targets&nbsp;=&nbsp;'examplesServer',timeout=600000,&nbsp;block&nbsp;=&nbsp;'true')</span><span style="color: #008000; "><br /></span><span style="color: #008080; ">22</span>&nbsp;<span style="color: #008000; "></span><span style="color: #000000; "><br /></span><span style="color: #008080; ">23</span>&nbsp;<span style="color: #000000; ">deploy(deployAppName,&nbsp;warPath,&nbsp;targets</span><span style="color: #000000; ">=</span><span style="color: #000000; ">targetServer,&nbsp;securityModel&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">"</span><span style="color: #800000; ">Advanced</span><span style="color: #800000; ">"</span><span style="color: #000000; ">,timeout</span><span style="color: #000000; ">=</span><span style="color: #000000; ">600000</span><span style="color: #000000; ">,&nbsp;block&nbsp;</span><span style="color: #000000; ">=</span><span style="color: #000000; ">&nbsp;</span><span style="color: #800000; ">"</span><span style="color: #800000; ">true</span><span style="color: #800000; ">"</span><span style="color: #000000; ">)<br /></span><span style="color: #008080; ">24</span>&nbsp;<span style="color: #000000; ">exit()</span></div>Ok<img src ="http://www.blogjava.net/kuuyee/aggbug/361213.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2011-10-13 23:46 <a href="http://www.blogjava.net/kuuyee/archive/2011/10/13/361213.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS5.4安装Trac记录</title><link>http://www.blogjava.net/kuuyee/archive/2011/10/08/360212.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Sat, 08 Oct 2011 09:52:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/10/08/360212.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/360212.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/10/08/360212.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/360212.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/360212.html</trackback:ping><description><![CDATA[<div><div style="color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><div monospaced"=""><pre coderay"="" style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"><br />rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-4.noarch.rpm <br />yum install libffi -y <br />yum install python26 -y <br />rm -f /usr/bin/python <br />ln -s /usr/bin/python26 /usr/bin/python <br />vim /usr/bin/yum <br />python -V <br />wget http://peak.telecommunity.com/dist/ez_setup.py <br />python ez_setup.py <br />easy_install Babel==0.9.5 <br />easy_install Trac <br />trac-admin easyci_project initenv <br />tracd --port 8000 /easyci/trac/easyci_project <br />trac-admin /easyci/trac/easyci_project permission add admin TRAC_ADMIN</code></pre></div></div><p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"></p></div><img src ="http://www.blogjava.net/kuuyee/aggbug/360212.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2011-10-08 17:52 <a href="http://www.blogjava.net/kuuyee/archive/2011/10/08/360212.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>(转载)CentOS中简单用yum升级 Python 至2.6</title><link>http://www.blogjava.net/kuuyee/archive/2011/10/08/360206.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Sat, 08 Oct 2011 09:26:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/10/08/360206.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/360206.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/10/08/360206.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/360206.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/360206.html</trackback:ping><description><![CDATA[<div><a href="http://vpshello.com/upgrade-python-to-26-with-yum/">http://vpshello.com/upgrade-python-to-26-with-yum/<br /><span class="Apple-style-span" style="color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Microsoft YaHei', Arial, Verdana, sans-serif; font-size: 12px; line-height: 18px; -webkit-text-decorations-in-effect: none; background-color: #ffffff; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">写了不少VPS评测，今天发个简单的技术帖。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">CentOS 在当前最新的 5.6 版中，其 python 的版本依然比较落后，还是古老的 2.4。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">但是有些程序需要 2.6 才跑得起来，编译安装的话，又太麻烦，而且不适合菜鸟使用。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">下面就给出使用 yum 升级 python 至 2.6 的简单方案。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "><span id="more-173" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></span></p><div id="codeSnippetWrapper" style="margin-top: 20px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; text-align: left; border-left-color: silver; border-left-style: solid; line-height: 12pt; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; overflow-x: auto; overflow-y: auto; border-top-color: silver; border-top-style: solid; cursor: text; border-right-color: silver; border-right-style: solid; background-position: initial initial; background-repeat: initial initial; "><div id="codeSnippet" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; "><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum1" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   1:</span> rpm -Uvh http:<span 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #008000; background-position: initial initial; background-repeat: initial initial; ">//download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm</span></pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum2" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   2:</span> yum install libffi -y</pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum3" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   3:</span> yum install python26 -y</pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum4" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   4:</span> rm -f /usr/bin/python</pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum5" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   5:</span> ln -s /usr/bin/python26 /usr/bin/python</pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p></div></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">如果是 64 位的 CentOS，则将上述第一句代码中的 i386 改为 x86_64 即可。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">运行完毕后，此时系统默认的 python 已经是 2.6 版了。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">然而，yum 是基于 python2.4 的，因此会出现故障。解决方法也很简单：</p><div id="codeSnippetWrapper" style="margin-top: 20px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; text-align: left; border-left-color: silver; border-left-style: solid; line-height: 12pt; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; overflow-x: auto; overflow-y: auto; border-top-color: silver; border-top-style: solid; cursor: text; border-right-color: silver; border-right-style: solid; background-position: initial initial; background-repeat: initial initial; "><div id="codeSnippet" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; "><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum1" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   1:</span> nano /usr/bin/yum</pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p></div></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">将第一行末的 python 后加上 2.4，即将第一行改为：</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">#!/usr/bin/python2.4</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">这样，yum 依然使用 python 2.4 环境运行，一切恢复正常。</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; ">此时我们输入 python -V 即可看到当前的 python 版本：</p><div id="codeSnippetWrapper" style="margin-top: 20px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-color: silver; border-bottom-style: solid; text-align: left; border-left-color: silver; border-left-style: solid; line-height: 12pt; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; max-height: 200px; overflow-x: auto; overflow-y: auto; border-top-color: silver; border-top-style: solid; cursor: text; border-right-color: silver; border-right-style: solid; background-position: initial initial; background-repeat: initial initial; "><div id="codeSnippet" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; "><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: white; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum1" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   1:</span> # python -V</pre><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; background-position: initial initial; background-repeat: initial initial; "></p><pre style="margin-top: 0em; margin-right: 0em; margin-bottom: 0em; margin-left: 0em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 8pt; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f4f4f4; border-bottom-style: none; text-align: left; line-height: 12pt; border-left-style: none; width: 570px; font-family: 'Courier New', courier, monospace; direction: ltr; border-top-style: none; color: black; border-right-style: none; overflow-x: visible; overflow-y: visible; background-position: initial initial; background-repeat: initial initial; "><span id="lnum2" 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; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 12px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #606060; background-position: initial initial; background-repeat: initial initial; ">   2:</span> Python 2.6.5</pre></div></div></span><br /></a></div><img src ="http://www.blogjava.net/kuuyee/aggbug/360206.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2011-10-08 17:26 <a href="http://www.blogjava.net/kuuyee/archive/2011/10/08/360206.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ceylon语言介绍第一部分（翻译）——Hibernate之父的又一力作</title><link>http://www.blogjava.net/kuuyee/archive/2011/05/24/350885.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Mon, 23 May 2011 23:25:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/05/24/350885.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/350885.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/05/24/350885.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/350885.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/350885.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Hibernate之父闭关两年后推出的又一力作——JVM语言 Ceylon<br>Ceylon是一门新的语言，它运行在Java虚拟机上，目前正有我所在的小组开发，它隶属于RedHat。我们都是Java和Java生态系统的粉丝，因为它的实用性、广阔的文化氛围和开发社区、天生适用于商业应用以及可移植性。然而我们必须承认这门语言和其现有的类库，已经过了15年的发展，它不能再提供更好的功能来解决现在的商业问题。&nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/05/24/350885.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/350885.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kuuyee/" target="_blank">kuuyee</a> 2011-05-24 07:25 <a href="http://www.blogjava.net/kuuyee/archive/2011/05/24/350885.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>