﻿<?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之旅-随笔分类-系统管理</title><link>http://www.blogjava.net/kuuyee/category/48365.html</link><description>while (产品+需求+设计+开发+测试+部署+发布 == doing) 
{ 
  CI 
}</description><language>zh-cn</language><lastBuildDate>Wed, 05 Jun 2013 08:24:15 GMT</lastBuildDate><pubDate>Wed, 05 Jun 2013 08:24:15 GMT</pubDate><ttl>60</ttl><item><title>Linux下的ORACLE安装，成功率99.99999%</title><link>http://www.blogjava.net/kuuyee/archive/2013/05/24/399719.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 24 May 2013 04:27:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/05/24/399719.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/399719.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/05/24/399719.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/399719.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/399719.html</trackback:ping><description><![CDATA[<div style="float: left; min-height: 1px; margin-left: 30px; width: 870px; 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;"><h2><span style="font-size: 14px;">相信很多童鞋都有过在Linux上安装Oracle数据库的痛苦经历，其中绝大多数都是环境设置的问题。我给大家推荐一个国外大牛写的Oracle的安装脚本&nbsp;</span><a href="http://sourceforge.net/projects/oratoolkit/?source=navbar" style="font-size: 14px; color: #0088cc; text-decoration: none;">OTK</a><span style="font-size: 14px;">，是用Bash写的，这东东大大简化了Oracle安装过程，而且成功率达到99.9999%以上，只要确保你的Linux系统是干净的，那么按照这个教程，保证你会安装成功。</span></h2><div><h4>准备工作</h4><div><p style="margin: 0px 0px 10px;">OTK针对各种Linux提供了&nbsp;<a href="https://www.oratoolkit.ch/knowledge/" style="color: #0088cc; text-decoration: none;">安装文档</a>，本文使用的RHEL5.5_x86_64位，数据库版本为11gR2，主要参考这个&nbsp;<a href="https://www.oratoolkit.ch/knowledge/howto/installation/eeSrv-11g-R2-on-RHEL-5.5-x86_64.php" style="color: #0088cc; text-decoration: none;">文档</a>。</p></div><div><p style="margin: 0px 0px 10px;">首先准备阿好如下的安装文件：</p></div><div><ul style="padding: 0px; margin: 0px 0px 10px 25px;"><li><p style="margin: 0px 0px 10px;"><a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html" style="color: #0088cc; text-decoration: none;">linux.x64_11gR2_database_1of2.zip</a></p></li><li><p style="margin: 0px 0px 10px;"><a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html" style="color: #0088cc; text-decoration: none;">linux.x64_11gR2_database_2of2.zip</a></p></li><li><p style="margin: 0px 0px 10px;"><a href="https://www.oratoolkit.ch/redirect.php?url=http://sourceforge.net/projects/oratoolkit/files/" style="color: #0088cc; text-decoration: none;">oratoolkit-1.0.2.1.5-1.noarch.rpm</a></p></li></ul></div><div><p style="margin: 0px 0px 10px;">下载上述文件并放在<tt>/var/tmp/oracle</tt>目录下。最好要把你的YUM源指向你的系统安装光盘或者ISO文件。</p></div></div><div><h4>安装OTK</h4><div><p style="margin: 0px 0px 10px;">用root登陆，执行如下命令：</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;"># su - root <br /># cd /var/tmp/oracle <br /># ls -1 oratool* <br />oratoolkit-1.0.2.1.5-1.noarch.rpm <br /># rpm -ivh oratoolkit-1.0.2.1.5-1.noarch.rpm <br />Preparing...                ########################################### [100%]<br />    1:oratoolkit             ########################################### [100%]</code></pre></div></div><div><p style="margin: 0px 0px 10px;">otk已经帮我们建立了oracle用户，下面需要设置Oracle用户密码</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;"># passwd oracle <br />Changing password for user oracle. <br />New UNIX password: <br />BAD PASSWORD: it is based on a dictionary word <br />Retype new UNIX password: <br />passwd: all authentication tokens updated successfully.</code></pre></div></div></div><div><h4>解决环境依赖</h4><div><p style="margin: 0px 0px 10px;">这一步最爽，最为头疼的环境依赖问题轻松就解决了！首先要验证下你的系统还差什么没有满足要求，OTK脚本提供了智能的环境是否满足检查:</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;"># /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg <br />...//省略大部分输出 <br />20130521_165122: Info: Action swReqCheck of installManager ended with 7 WARNINGS</code></pre></div></div><div><p style="margin: 0px 0px 10px;">最后的结论告诉你的系统共有几个警告（我的系统是7个），你可以在输出日志中查看到底缺了什么。下面的一组命令很酷，让你一下子解决所有的问题:</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;">//先拼装命令 <br /># REQ_FILE_DIR="/opt/oracle/otk/current/conf/installManager/requirement" <br /># REQ_FILE_PATH="$REQ_FILE_DIR/ora11gR2-redhat-5-x86_64.pkg.lst" <br /># YUM_COMMAND=$(echo "yum install") <br /># YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 32-bit | awk '{ print " "$1".i[356]86" }') <br /># YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 64-bit | awk '{ print " "$1".x86_64" }')  <br /><br />//用echo看看最终拼装的命令是什么样 <br /># echo $YUM_COMMAND  <br /><br />//执行命令 <br /># $YUM_COMMAND  <br /><br />//再次执行环境检查 <br /># /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg <br />... <br />20130521_170131: Info: Action swReqCheck of installManager ended successfully //这次验证成功了，环境已经满足Oracle安装要求</code></pre></div></div></div><div><h4>增强sqlplus</h4><div><p style="margin: 0px 0px 10px;">OTK提供了一个优化增强的sqlplus环境：</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;"># cd /opt/oracle/otk/current/tools/rlwrap/ <br /># ./configure <br /># make <br /># make install <br /># /usr/local/bin/rlwrap -v <br />rlwrap 0.30</code></pre></div></div></div><div><h4>使用installManager提取安装</h4><div><p style="margin: 0px 0px 10px;">切换到<tt>/opt/oracle/otk/current/conf/installManager</tt>目录，编辑<tt>osSetup11gR2.cfg</tt>来配置安装参数，包括内核参数、目录创建及所有授权等设置，如果你想默认安装就无需更改这个文件。</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;"># cd /opt/oracle/otk/current/conf/installManager/ <br /># vi osSetup11gR2.cfg <br /># sdiff -s osSetup11gR2.cfg sample/osSetup11gR2.cfg //对比哪些参数修改过 <br /># /opt/oracle/otk/current/bin/installManager osSetup osSetup11gR2.cfg</code></pre></div></div></div><div><h4>把Oracle安装文件移入资源目录</h4><div><p style="margin: 0px 0px 10px;">otk默认读取oracle安装文件的目录是<tt>/var/opt/oracle/repository</tt>，otk的<strong>swInst</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;"># cd /var/tmp/oracle <br /># chown oracle:oinstall * <br /># mv linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip /var/opt/oracle/repository/</code></pre></div></div></div><div><h4>定制oracle用户登录的PS1变量</h4><div><p style="margin: 0px 0px 10px;">这一步没什么实际意义，就是定制Oracle用户登录的提示符。</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;"># su - oracle<br /> ------------------------------------------------------  <br /> oraToolKit environment variables<br /> ------------------------------------------------------  <br /> Installation directory :   /opt/oracle/otk  <br /> Release                :   1.0.2.1.5  <br /> $RUN directory         :   /opt/oracle/otk/1.0/bin  <br /> $LOG_BASE directory    :   /var/opt/oracle/otk/1.0/log  <br /> ------------------------------------------------------  <br />&lt;SITE|COMPANY&gt;:oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive <br />SITE="&lt;SITE|COMPANY&gt;" <br />&lt;SITE|COMPANY&gt;:oracle@stquist1p:sidNotSet$ vi .profile.custom.interactive <br />&lt;SITE|COMPANY&gt;:oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive <br />SITE="KuuYee"//修改这一行，可以显示你喜欢的内容 <br />&lt;SITE|COMPANY&gt;:oracle@stquist1p:sidNotSet$ exit <br /># su - oracle <br />KuuYee:oracle@stquist1p:sidNotSet$</code></pre></div></div></div><div><h4>安装Oracle数据库</h4><div><p style="margin: 0px 0px 10px;">OTK没有采用Oracle Universal Installer(<strong>OUI</strong>)，而是用<strong>swInst</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;">$ bash <br />$ cd $INSTALL_CONF <br />$ cp sample/swInstEeSrv11gR2-Step1-linux-x86_64.cfg . <br />$ installManager swInst swInstEeSrv11gR2-Step1-linux-x86_64.cfg <br />$ su - <br /># /opt/oracle/eesrv/11.2.0/db1/root.sh<br /># exit</code></pre></div></div></div><div><h4>创建数据库实例</h4><div><p style="margin: 0px 0px 10px;">OTK采用<strong>dbSetup</strong>来创建实例，首先要进入<tt>$INSTALL_CONF</tt>目录配置实例参数</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;">$ cd $INSTALL_CONF <br />$ ls -1 dbSetup*.cfg <br />dbSetup-dev.cfg <br />dbSetup-prod.cfg <br />dbSetup-test.cfg <br />$ vi dbSetup-prod.cfg //prod为生产模式 <br />$ sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg <br />DB_NAME="idm_test"                                            | DB_NAME="prod" <br />ORACLE_HOME="$ORACLE_BASE/eesrv/11.2.0/db1"                   | ORACLE_HOME="$ORACLE_BASE/sesrv/11.1.0/db1" <br />NLS_LANG=".AL32UTF8"                                          | NLS_LANG=".UTF8" <br />SYSTEM_SIZE=1G                                                | SYSTEM_SIZE=512M <br />TEMP_SIZE=2G                                                  | TEMP_SIZE=512M <br />UNDO_SIZE=2G                                                  | UNDO_SIZE=512M <br />USERS_SIZE=100M                                               | USERS_SIZE=10M <br />LISTENER_PORT="1541"                                          | LISTENER_PORT="1531" <br />MEMORY_TARGET=7G                                              | MEMORY_TARGET=512M <br />MEMORY_MAX_TARGET=7G                                          | MEMORY_MAX_TARGET=512M <br />SGA_TARGET=3G                                                 | SGA_TARGET=256M <br />PROCESSES=1000                                                | PROCESSES=100 <br />$ installManager dbSetup dbSetup-prod.cfg //执行这部之前最好先配置下/etc/hosts文件，看下面说明</code></pre></div></div><div><p style="margin: 0px 0px 10px;">本文采用<tt>dbSetup-prod.cfg</tt>生产环境模式配置，我们看到还有dev(开发环境)和test(测试环境)，不过我没试过，有兴趣的童鞋可以试试。我在上面列出了我所作出的配置，原文并没有修改内存参数，我之所以修改是因为实际环境因为内存设置太小导致运行一段时间数据库经常挂掉，经过多次的调试而得到的经验值，这里需要说明下我的数据库配置：<br /><strong>OS</strong>：VMware虚拟机(RHEL5.5)<br /><strong>CPU</strong>：8核<br /><strong>内存</strong>：32G<br /><strong>硬盘</strong>：200GB<br />上面用<tt>sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg</tt>命令可以对比下我的参数修改，左面是我的修改参数，右面是原参数,需要特别说明的是第二个参数<tt>ORACLE_HOME</tt>，一定要自修修改，原来的参数是<tt>$ORACLE_BASE/sesrv/11.1.0/db1</tt>，要修改为$ORACLE_BASE/<strong>eesrv/11.2.0</strong>/db1，别改错了！</p></div><div><p style="margin: 0px 0px 10px;"><tt>installManager dbSetup dbSetup-prod.cfg</tt>命令开始安装数据库实例，不过我建议你最好先配置下你的<tt>/etc/hosts</tt>文件，加入下面的内容：</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;">127.0.0.1    你的hostname</code></pre></div></div><div><p style="margin: 0px 0px 10px;">接下来就是漫长的等待，大概需要几十分钟，具体根据你的机器配置情况。如果你最后看到如下的输出：</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;">---------------------------------------------------------------------------------------------------- <br />20130522_091856: Info: Executing libmiscellaneous.getFooter function <br />20130522_091856: Info: Terminating installManager execution <br />20130522_091856: Info: Summary log file:  /var/opt/oracle/otk/1.0/log-old/installManager/../installManager.log <br />20130522_091856: Info: Detailed log file: /var/opt/oracle/otk/1.0/log-old/installManager/dbsetup-20130522_090349.log <br />20130522_091856: Info: Action dbSetup of installManager ended successfully <br />----------------------------------------------------------------------------------------------------</code></pre></div></div><div><p style="margin: 0px 0px 10px;"><strong>Congratulations！</strong>你安装成功了。</p></div><div><p style="margin: 0px 0px 10px;">下面登陆试试：</p></div><div style="padding-left: 15px; margin: 0px 0px 20px; border-left-width: 5px; border-left-style: solid; border-left-color: #eeeeee;"><table style="max-width: 100%; background-color: transparent; border-collapse: collapse; border-spacing: 0px;"><tbody><tr><td><div>Note</div></td><td>OTK默认创建了一个<strong>otk</strong>用户，密码也是<strong>otk</strong>，&nbsp;<strong>sys</strong>和<strong>system</strong>默认密码是<strong>manager</strong></td></tr></tbody></table></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;">$ bash <br />$ sourceProdEnv <br />$ sqlplus sys/manager@idm_dev as sysdba; <br />或者 <br />$ sqlplus otk/otk@idm_dev  <br /><br />SQL*Plus: Release 11.2.0.1.0 Production on Wed May 22 11:05:16 2013  <br /><br />Copyright (c) 1982, 2009, Oracle.  All rights reserved.   <br /><br /><br />Connected to: <br />Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production <br />With the Partitioning, OLAP, Data Mining and Real Application Testing options  <br /><br />SQL&gt;</code></pre></div></div></div><div><h3>使用appctl管理oracle</h3><div><p style="margin: 0px 0px 10px;">OTK提供了一个ctl工具来帮我们管理Oracle实例：</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;">$ ctl status all //查看当前状态 <br />$ ctl stop all   //停止数据库 <br />$ ctl start all  //启动数据库</code></pre></div></div></div><div><h3>使用backupuManager备份oracle</h3><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;">$ cd $BACKUP_CONF <br />$ vi prod.cfg <br />$ sdiff -s prod.cfg sample/prod.cfg DISK_DEVICE_MOUNT_POINT="/" | DISK_DEVICE_MOUNT_POINT="/backup01" <br />$ backupManager full prod.cfg</code></pre></div></div><div><p style="margin: 0px 0px 10px;">定时备份Job</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;">$ crontab -l|head -2 <br /># Example 1: Daily physical database backup <br /># 0 2 * * * [ -d $HOME/../current ] &amp;&amp; (ksh -c '. ./.profile &gt;/dev/null; backupManager full &lt;sid_1&gt;.cfg &lt;sid_2&gt;.cfg &lt;sid_n&gt;.cfg &gt;/dev/null') <br />$ crontab -e <br />$ crontab -l|head -2 <br /># Example 1: Daily physical database backup <br />0 2 * * * [ -d $HOME/../current ] &amp;&amp; (ksh -c '. ./.profile &gt;/dev/null; backupManager full prod.cfg &gt;/dev/null')</code></pre></div></div><div><h4>创建EM管理控制台</h4><div><p style="margin: 0px 0px 10px;">otk并没有帮我们创建EM控制台，对于习惯用Web管理的用户很不方便，我们需要手工创建：</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;">$ emca -config dbcontrol db -repos recreate  <br /><br />STARTED EMCA at May 22, 2013 11:18:41 AM <br />EM Configuration Assistant, Version 11.2.0.0.2 Production <br />Copyright (c) 2003, 2005, Oracle.  All rights reserved.  Enter the following information: <br />Database SID: idm_dev //输入sid <br />Listener port number: 1541 //监听输入端口 <br />Listener ORACLE_HOME [ /opt/oracle/eesrv/11.2.0/db1 ]: //默认回车 <br />Password for SYS user:  //输入密码manager <br />Password for DBSNMP user:  //输入密码manager <br />Password for SYSMAN user:  //输入密码manager <br />Email address for notifications (optional): //默认回车 <br />Outgoing Mail (SMTP) server for notifications (optional): //默认回车 <br />-----------------------------------------------------------------  <br /><br />You have specified the following settings  <br /><br />Database ORACLE_HOME ................ /opt/oracle/eesrv/11.2.0/db1  <br /><br />Local hostname ................ localhost.localdomain <br />Listener ORACLE_HOME ................ /opt/oracle/eesrv/11.2.0/db1 <br />Listener port number ................ 1541 <br />Database SID ................ idm_dev <br />Email address for notifications ............... <br />Outgoing Mail (SMTP) server for notifications ...............  <br /><br />----------------------------------------------------------------- <br />Do you wish to continue? [yes(Y)/no(N)]: yes <br />May 22, 2013 11:19:20 AM oracle.sysman.emcp.EMConfig perform <br />INFO: This operation is being logged at /opt/oracle/cfgtoollogs/emca/idm_dev/emca_2013_05_22_11_18_40.log. <br />May 22, 2013 11:19:21 AM oracle.sysman.emcp.EMReposConfig invoke <br />INFO: Dropping the EM repository (this may take a while) ... <br />May 22, 2013 11:19:23 AM oracle.sysman.emcp.EMReposConfig invoke <br />INFO: Repository successfully dropped <br />May 22, 2013 11:19:23 AM oracle.sysman.emcp.EMReposConfig createRepository <br />INFO: Creating the EM repository (this may take a while) ... <br />May 22, 2013 11:24:27 AM oracle.sysman.emcp.EMReposConfig invoke <br />INFO: Repository successfully created <br />May 22, 2013 11:24:30 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository <br />INFO: Uploading configuration data to EM repository (this may take a while) ... //可能会等一会 <br />May 22, 2013 11:25:19 AM oracle.sysman.emcp.EMReposConfig invoke <br />INFO: Uploaded configuration data successfully <br />May 22, 2013 11:25:23 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib <br />INFO: Software library configured successfully. <br />May 22, 2013 11:25:23 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary <br />INFO: Deploying Provisioning archives ... <br />May 22, 2013 11:25:45 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary <br />INFO: Provisioning archives deployed successfully. <br />May 22, 2013 11:25:45 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole <br />INFO: Securing Database Control (this may take a while) ... <br />May 22, 2013 11:25:58 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole <br />INFO: Database Control secured successfully. <br />May 22, 2013 11:25:58 AM oracle.sysman.emcp.util.DBControlUtil startOMS <br />INFO: Starting Database Control (this may take a while) ... <br />May 22, 2013 11:26:28 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration <br />INFO: Database Control started successfully <br />May 22, 2013 11:26:28 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration <br />INFO: &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; The Database Control URL is https://localhost.localdomain:1158/em &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; //这个是EM的访问链接 <br />May 22, 2013 11:26:31 AM oracle.sysman.emcp.EMDBPostConfig invoke <br />WARNING: <br />************************  WARNING  ************************  <br /><br />Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /opt/oracle/eesrv/11.2.0/db1/localhost.localdomain_idm_dev/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.  <br /><br />*********************************************************** <br />Enterprise Manager configuration completed successfully <br />FINISHED EMCA at May 22, 2013 11:26:31 AM</code></pre></div></div><div><p style="margin: 0px 0px 10px;">OK！ 大功告成，相信各位童鞋都安装成功了，OTK的安装还是很稳健的，至少我安装了几十次都成功了！</p></div><div><p style="margin: 0px 0px 10px;">最后祝各位童鞋好运！</p></div></div></div><p style="margin: 0px 0px 10px;"></p><div>2013-05-21</div></div></div><img src ="http://www.blogjava.net/kuuyee/aggbug/399719.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-05-24 12:27 <a href="http://www.blogjava.net/kuuyee/archive/2013/05/24/399719.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ORACLE数据库ORA-00257解决</title><link>http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Wed, 15 May 2013 02:13:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/399287.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/399287.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/399287.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;">今天数据库突然连不上了，报ORA-00257错误（空间不足错误），通过查找资料，绝大部分说这是由于Archivelog归档日志太多，占用了全部的硬盘剩余空间导致的，通过简单删除日志或加大存储空间就能够解决。</span></h2><div><p style="margin: 0px 0px 10px;">首先进入oracle用户，使用<strong>rman</strong>工具执行命令<strong>rman target/</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;">oracle@test-idm-db01$ rman target/  <br /><br />Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 15 09:29:06 2013  <br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  <br />RMAN-00571: =========================================================== <br />RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== <br />RMAN-00571: =========================================================== <br />RMAN-00554: initialization of internal recovery manager package failed <br />RMAN-04005: error from target database: <br />ORA-01031: insufficient privileges</code></pre></div></div><div><p style="margin: 0px 0px 10px;">竟然报错了，如果你的空间100%一点剩余都没有，那么就会报这个错，只能想办法让你的系统腾出一点空间，哪怕几百兆！然后重启数据库应该就可以登陆dba了。</p></div><div><p style="margin: 0px 0px 10px;">重启数据库，再次<strong>rman</strong></p></div><div><div monospaced"=""><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; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);">oracle@test-idm-db01$ rman target/  <br /><br />Recovery Manager: Release 11.2.0.1.0 - Production on Wed May 15 09:29:40 2013  <br /><br />Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.  <br /><br />connected to target database: IDM_TEST (DBID=4064060693)</pre></div></div><div><p style="margin: 0px 0px 10px;">现在删除Archivelog归档文件，执行下面的命令来删除最近7天的归档：</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;">RMAN&gt; DELETE ARCHIVELOG FROM TIME 'SYSDATE-7';</code></pre></div></div><div><p style="margin: 0px 0px 10px;">也可以只保留最近7天的，其余的都删除：</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;">RMAN&gt; DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';</code></pre></div></div><div><p style="margin: 0px 0px 10px;">但是过一段时间你的日志还是回满，对于开发环境这样的归档功能其实没什么必要，彻底解决办法是关闭这个功能，用dba登陆oracle：</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;">sqlplus / as sysdba;</code></pre></div></div><div><p style="margin: 0px 0px 10px;">然后执行下面的命令：</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;">SQL&gt; <span style="color: #bb0066; font-weight: bold;">alter</span> <span style="color: #333399; font-weight: bold;">database</span> flashback off;</code></pre></div></div><div><p style="margin: 0px 0px 10px;">然后重启数据库就OK了！</p></div><p style="margin: 0px 0px 10px;"></p><div>2013-05-15</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/399287.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-05-15 10:13 <a href="http://www.blogjava.net/kuuyee/archive/2013/05/15/399287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Jenkins文档翻译(2)-构建一个Maven2项目</title><link>http://www.blogjava.net/kuuyee/archive/2013/05/06/398854.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Mon, 06 May 2013 05:15:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/05/06/398854.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/398854.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/05/06/398854.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/398854.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/398854.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;">原文链接:&nbsp;</span><a href="https://wiki.jenkins-ci.org/display/JENKINS/Building+a+maven2+project" style="font-size: 14px; color: #0088cc; text-decoration: none;">https://wiki.jenkins-ci.org/display/JENKINS/Building+a+maven2+project</a></h2><div><p style="margin: 0px 0px 10px;">Jenkins提供一个专注于Maven2项目的Job类型。这种Job类型深度集成Maven2并提供如下优于free-style software project Job类型的特性：</p></div><div><ul style="padding: 0px; margin: 0px 0px 10px 25px;"><li><p style="margin: 0px 0px 10px;">Jenkins从Maven POM中获取更多信息来辅助构建工作，这样就大大减少了Job的配置工作。</p></li><li><p style="margin: 0px 0px 10px;">Jenkins监听Maven执行过程来决定如何处理Job。例如，Jenkins会在Maven测试阶段自动记录JUnit报告。如果你正在运行javadoc目标，Jenkins会自动记录javadoc。</p></li></ul></div><div><p style="margin: 0px 0px 10px;">因此你只需要为Job配置SCM信息和指定运行Maven项目的哪个目标就可以了，其它的Jenkins会帮你决定如何去做。</p></div><div><div></div></div><div><blockquote style="padding: 0px 0px 0px 15px; margin: 0px 0px 20px; border-left-width: 5px; border-left-color: #eeeeee;">&nbsp;<strong>TODO</strong>&nbsp;谈论Maven modules在子项目中的表现，还有构建编号在子项目中是如何控制的。带有截屏。</blockquote><div></div></div><div><h4>用模块依赖链接自动构建</h4><div><p style="margin: 0px 0px 10px;">Jenkins从你的POM模型中读取项目依赖，如果这个依赖已经是Jenkins内的一个构建，那么Jenkins会自动的触发这个构建。Jenkins能够识别POM内所用类型的依赖：</p></div><div><ul style="padding: 0px; margin: 0px 0px 10px 25px;"><li><p style="margin: 0px 0px 10px;">父级POM</p></li><li><p style="margin: 0px 0px 10px;">&lt;dependencies&gt;部分</p></li><li><p style="margin: 0px 0px 10px;">&lt;extensions&gt;部分</p></li><li><p style="margin: 0px 0px 10px;">&lt;reporting&gt;部分</p></li></ul></div><div><p style="margin: 0px 0px 10px;">这个处理过程取决于版本和账户，因为在你的项目中有很多版本/分支，Jenkins要正确的决定如何处理依赖。</p></div></div><div><h4>Maven集成插件</h4><div><p style="margin: 0px 0px 10px;">Jenkins的Maevn2项目类型包含一个Maven集成插件，它已经绑定在Jenkins发行版本中。它会列在可用插件列表中，当插件版本低于Jenkins当前版本时，推荐你升级Maven集成插件。虽然它是一个插件，但是它会作为Jenkins核心的一部分进行开发、测试和发布。</p></div></div><p style="margin: 0px 0px 10px;"></p><div>2013-05-06</div></div></div></div></div><img src ="http://www.blogjava.net/kuuyee/aggbug/398854.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-05-06 13:15 <a href="http://www.blogjava.net/kuuyee/archive/2013/05/06/398854.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Shell环境下删除命令如何排除指定文件</title><link>http://www.blogjava.net/kuuyee/archive/2013/04/21/398171.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Sun, 21 Apr 2013 12:28:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/04/21/398171.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/398171.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/04/21/398171.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/398171.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/398171.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>Shell环境下删除命令如何排除指定文件</h2><div><a href="http://www.kuuyee.org/2013/04/13/bash-del-file-excludes/author.primary_page.url" style="color: #0088cc; text-decoration: none;">kuuyee&nbsp;</a>&nbsp;|&nbsp; 2013-04-13 &nbsp;|&nbsp;&nbsp;<a href="http://www.kuuyee.org/2013/04/13/bash-del-file-excludes/tag.primary_page.url" style="color: #ffffff; text-decoration: none; display: inline-block; padding: 2px 4px; font-size: 11.844px; font-weight: bold; line-height: 14px; text-shadow: rgba(0, 0, 0, 0.247059) 0px -1px 0px; white-space: nowrap; vertical-align: baseline; background-color: #999999; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;">Linux</a>&nbsp;&nbsp;&nbsp;<a href="http://www.kuuyee.org/2013/04/13/bash-del-file-excludes/tag.primary_page.url" style="color: #ffffff; text-decoration: none; display: inline-block; padding: 2px 4px; font-size: 11.844px; font-weight: bold; line-height: 14px; text-shadow: rgba(0, 0, 0, 0.247059) 0px -1px 0px; white-space: nowrap; vertical-align: baseline; background-color: #999999; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;">Shell</a>&nbsp;&nbsp;&nbsp;<a href="http://www.kuuyee.org/2013/04/13/bash-del-file-excludes/tag.primary_page.url" style="color: #ffffff; text-decoration: none; display: inline-block; padding: 2px 4px; font-size: 11.844px; font-weight: bold; line-height: 14px; text-shadow: rgba(0, 0, 0, 0.247059) 0px -1px 0px; white-space: nowrap; vertical-align: baseline; background-color: #999999; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;">Command</a>&nbsp;&nbsp;&nbsp;<a href="http://www.kuuyee.org/2013/04/13/bash-del-file-excludes/tag.primary_page.url" style="color: #ffffff; text-decoration: none; display: inline-block; padding: 2px 4px; font-size: 11.844px; font-weight: bold; line-height: 14px; text-shadow: rgba(0, 0, 0, 0.247059) 0px -1px 0px; white-space: nowrap; vertical-align: baseline; background-color: #999999; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;">系统管理</a>&nbsp;&nbsp;</div><p style="margin: 0px 0px 10px;"></p><div><p style="margin: 0px 0px 10px;">下面列出root目录下的文件结构</p></div><div><div><div><div monospaced"=""><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; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);">+- root<br />     +- fileA.txt<br />     +- subdir1<br />   +-  a.txt<br />   +-  b.txt<br />   +-  c.txt<br />     +- subdir2<br />   +- d.txt<br />   +- e.txt<br />   +- f.txt<br />     +- subdir3<br />     +- subdir4<br />     +- subdir5<br />     +- subdir6<br />     +- subdir7<br />     +- subdir8<br />     +- subdir9<br />     ...</pre></div></div></div></div><div><p style="margin: 0px 0px 10px;">目的是除了目录subdir2和文件fileA.txt其它的都要删除，如果一个一个删就效率太低了，Shell命令可以轻松的解决</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;">ls|grep -v 'subdir2\|fileA.txt'|xargs rm -r</code></pre></div></div><div><p style="margin: 0px 0px 10px;">执行的效果如下</p></div><div><div><div><div monospaced"=""><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; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);">+- root<br />     +- fileA.txt<br />     +- subdir2<br />          +- d.txt<br />          +- e.txt<br />          +- f.txt</pre></div></div></div></div><p style="margin: 0px 0px 10px;"></p><div>2013-04-13</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/398171.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-21 20:28 <a href="http://www.blogjava.net/kuuyee/archive/2013/04/21/398171.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在RHEL5.5上安装PostgreSql92</title><link>http://www.blogjava.net/kuuyee/archive/2013/04/09/397587.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 09 Apr 2013 07:55:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/04/09/397587.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/397587.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/04/09/397587.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/397587.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/397587.html</trackback:ping><description><![CDATA[<p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">RHEL5.5默认的源里没有postgresql9的包，需要下载源。下载地址 ：<a href="http://yum.postgresql.org/9.2/redhat/rhel-5-x86_64/pgdg-redhat92-9.2-7.noarch.rpm" style="color: #0088cc; text-decoration: none;">http://yum.postgresql.org/9.2/redhat/rhel-5-x86_64/pgdg-redhat92-9.2-7.noarch.rpm</a></p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">然后安装源</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;">rpm -ivh pgdg-redhat92-9.2-7.noarch.rpm </code></pre><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">最后安装postgresql92</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 postgresql92 postgresql92-server postgresql92-devel </code></pre><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">初始化数据库</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 postgresql-9.2 initdb Initializing database:                                     [  OK  ]</code></pre><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">启动数据库</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;">/etc/init.d/postgresql-9.2 start Starting postgresql-9.2 service:                           [  OK  ]</code></pre><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">查看数据状态</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;">netstat -nutlap | grep post tcp        0      0 127.0.0.1:5432              0.0.0.0:*                   LISTEN      21627/postmaster     udp        0      0 127.0.0.1:12823             127.0.0.1:12823             ESTABLISHED 21627/postmaster </code></pre><div><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; border: 0px;"><br /></code></div><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;"></p><img src ="http://www.blogjava.net/kuuyee/aggbug/397587.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-09 15:55 <a href="http://www.blogjava.net/kuuyee/archive/2013/04/09/397587.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>设置Linux用户无口令登陆方式</title><link>http://www.blogjava.net/kuuyee/archive/2013/03/20/396700.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Wed, 20 Mar 2013 01:08:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/03/20/396700.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/396700.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/03/20/396700.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/396700.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/396700.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 有些时候需要用户能够无密码登陆，解放办法很简单，如下：<br>切换到root用户，修改/etc/shadow文件。<br>chmod 644 /etc/shadow<br>vim /etc/shadow &nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2013/03/20/396700.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/396700.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-03-20 09:08 <a href="http://www.blogjava.net/kuuyee/archive/2013/03/20/396700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Eclipse配色方案插件 真漂亮！</title><link>http://www.blogjava.net/kuuyee/archive/2013/02/26/395728.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 26 Feb 2013 02:43:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2013/02/26/395728.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/395728.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2013/02/26/395728.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/395728.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/395728.html</trackback:ping><description><![CDATA[<p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">最近发现了一个Eclipse配色方案插件，这回给Eclipse配色太方便了。</p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">插件主页：<a href="http://eclipsecolorthemes.org/" style="color: #0088cc; text-decoration: initial;">http://eclipsecolorthemes.org/</a></p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">插件提供了上万种配色方案，非常漂亮，上图看下：</p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;"><img src="http://www.blogjava.net/images/blogjava_net/kuuyee/53349/o_eclipse_theme_04.jpg" title="找不到方法异常" alt="找不到方法异常" style="max-width: 100%; height: 754px; vertical-align: middle; border-width: 0px; width: 937px;" width="937" height="754" /></p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">安装很简单，打开&nbsp;<strong>Eclipse Marketplace</strong></p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;"><img src="http://www.blogjava.net/images/blogjava_net/kuuyee/53349/o_eclipse_theme_01.jpg" title="找不到方法异常" alt="找不到方法异常" style="max-width: 100%; height: 372px; vertical-align: middle; border-width: 0px; width: 343px;" width="343" height="372" /></p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">查找&nbsp;<strong>Eclipse Color Theme</strong>，会找到这个插件。</p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;"><img src="http://www.blogjava.net/images/blogjava_net/kuuyee/53349/o_eclipse_theme_02.jpg" border="0" alt="" width="608" height="326" /><br /></p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;">安装完成后进入&nbsp;<strong>Preferences &#8212;&gt; Appearance &#8212;&gt; Color Theme</strong>&nbsp;就可选择主题了</p><p style="margin: 0px 0px 10px; color: #333333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 20px; background-color: #ffffff;"><img src="http://www.blogjava.net/images/blogjava_net/kuuyee/53349/o_eclipse_theme_03.jpg" title="找不到方法异常" alt="找不到方法异常" style="max-width: 100%; height: 656px; vertical-align: middle; border-width: 0px; width: 793px;" width="793" height="656" /></p><img src ="http://www.blogjava.net/kuuyee/aggbug/395728.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-02-26 10:43 <a href="http://www.blogjava.net/kuuyee/archive/2013/02/26/395728.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>ORACLE 11g在Linux下手工配置EM</title><link>http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 05 Apr 2012 03:08:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/373355.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/373355.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/373355.html</trackback:ping><description><![CDATA[<div id="content" style="font-family: 微软雅黑; line-height: normal; font-size: medium; "><div id="preamble" style="margin-top: 1.5em; margin-bottom: 1.5em; "><div style="font-family: Georgia, 'Times New Roman', Times, serif; margin-left: 0px; "><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">使用OTK工具安装的Oracle默认没有配置EM，下面记录下配置和启动过程!</p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">首先创建EM，执行下面的命令</p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca -config dbcontrol db -repos recreate</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">我第一次运行报如下错误：<br /></p><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 />-->Mar&nbsp;<span style="color: #800000; font-weight: bold; ">31</span>,&nbsp;<span style="color: #800000; font-weight: bold; ">2012</span>&nbsp;<span style="color: #800000; font-weight: bold; ">4</span>:<span style="color: #800000; font-weight: bold; ">16</span>:<span style="color: #800000; font-weight: bold; ">06</span>&nbsp;PM&nbsp;oracle.sysman.emcp.EMReposConfig&nbsp;createRepository<br />CONFIG:&nbsp;ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">00604</span>:&nbsp;error&nbsp;occurred&nbsp;at&nbsp;recursive&nbsp;SQL&nbsp;<span style="color: #0000FF; ">level</span>&nbsp;<span style="color: #800000; font-weight: bold; ">1</span><br />ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">01653</span>:&nbsp;unable&nbsp;<span style="color: #0000FF; ">to</span>&nbsp;extend&nbsp;<span style="color: #0000FF; ">table</span>&nbsp;SYS.SOURCE$&nbsp;<span style="color: #0000FF; ">by</span>&nbsp;<span style="color: #800000; font-weight: bold; ">128</span>&nbsp;<span style="color: #808080; ">in</span>&nbsp;tablespace&nbsp;SYSTEM<br />oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException:&nbsp;ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">00604</span>:&nbsp;error&nbsp;occurred&nbsp;at&nbsp;recursive&nbsp;SQL&nbsp;<span style="color: #0000FF; ">level</span>&nbsp;<span style="color: #800000; font-weight: bold; ">1</span><br />ORA<span style="color: #808080; ">-</span><span style="color: #800000; font-weight: bold; ">01653</span>:&nbsp;unable&nbsp;<span style="color: #0000FF; ">to</span>&nbsp;extend&nbsp;<span style="color: #0000FF; ">table</span>&nbsp;SYS.SOURCE$&nbsp;<span style="color: #0000FF; ">by</span>&nbsp;<span style="color: #800000; font-weight: bold; ">128</span>&nbsp;<span style="color: #808080; ">in</span>&nbsp;tablespace&nbsp;SYSTEM<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:<span style="color: #800000; font-weight: bold; ">1650</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:<span style="color: #800000; font-weight: bold; ">1000</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:<span style="color: #800000; font-weight: bold; ">339</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:<span style="color: #800000; font-weight: bold; ">380</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:<span style="color: #800000; font-weight: bold; ">510</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:<span style="color: #800000; font-weight: bold; ">228</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:<span style="color: #800000; font-weight: bold; ">157</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfig.perform(EMConfig.java:<span style="color: #800000; font-weight: bold; ">253</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">589</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">1448</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">573</span>)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:<span style="color: #800000; font-weight: bold; ">521</span>)<br />Mar&nbsp;<span style="color: #800000; font-weight: bold; ">31</span>,&nbsp;<span style="color: #800000; font-weight: bold; ">2012</span>&nbsp;<span style="color: #800000; font-weight: bold; ">4</span>:<span style="color: #800000; font-weight: bold; ">16</span>:<span style="color: #800000; font-weight: bold; ">06</span>&nbsp;PM&nbsp;oracle.sysman.emcp.EMReposConfig&nbsp;invoke<br />SEVERE:&nbsp;Error&nbsp;creating&nbsp;the&nbsp;repository</div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; "><br />解决办法</strong></p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">使用SYS用户登录sqlplus，然后执行下面的语句：</p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; "> SQL<span style="color: #990000; ">&gt;</span> <span style="font-weight: bold; "><span style="color: #0000ff; ">SELECT</span></span> <span style="color: #990000; ">*</span> <span style="font-weight: bold; "><span style="color: #0000ff; ">FROM</span></span> DBA_DATA_FILES <span style="font-weight: bold; "><span style="color: #0000ff; ">where</span></span> TABLESPACE_NAME <span style="color: #990000; ">=</span> <span style="color: #ff0000; ">'SYSTEM'</span><span style="color: #990000; ">;</span> <br />FILE_NAME     FILE_ID TABLESPACE_NAME                    <br /> BYTES     BLOCKS <span style="font-weight: bold; "><span style="color: #0000ff; ">STATUS</span></span>  RELATIVE_FNO AUT   MAXBYTES  MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS  <br />ONLINE_  <span style="color: #990000; ">/</span>data01<span style="color: #990000; ">/</span>rdbms<span style="color: #990000; ">/</span>wcdb<span style="color: #990000; ">/</span>datafile<span style="color: #990000; ">/</span>wcdb_system_01<span style="color: #990000; ">.</span>dbf          <span style="color: #993399; ">1</span> SYSTEM                          <span style="color: #993399; ">536870912</span>      <span style="color: #993399; ">65536</span> AVAILABLE           <br /> <span style="color: #993399; ">1</span> NO           <span style="color: #993399; ">0</span>          <span style="color: #993399; ">0</span>            <span style="color: #993399; ">0</span>  <span style="color: #993399; ">535822336</span>       <span style="color: #993399; ">65408</span> <br />SYSTEM</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">然后新定义个空间文件wcdb_system_02.dbf，注意不要重名</p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">然后新定义个空间文件*wcdb_system_02.dbf*，注意不要重名</p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">SQL<span style="color: #990000; ">&gt;</span> <span style="font-weight: bold; "><span style="color: #0000ff; ">ALTER</span></span> TABLESPACE SYSTEM <span style="font-weight: bold; "><span style="color: #0000ff; ">ADD</span></span> DATAFILE <span style="color: #ff0000; ">'/data01/rdbms/wcdb/datafile/wcdb_system_02.dbf'</span> SIZE 500M<span style="color: #990000; ">;</span> Tablespace altered<span style="color: #990000; ">.</span></tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">然后再次执行EM创建成功！</p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; ">EM的访问地址：<a href="https://host:1158/em" style="color: fuchsia; ">https://localhost:1158/em</a></p></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">删除一个EM资料库</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>repos <span style="font-weight: bold; "><span style="color: #0000ff; ">drop</span></span></tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">配置数据库的 Database Control</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>config dbcontrol db</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">删除数据库的 Database Control配置</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>deconfig dbcontrol db</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">重新配置db control的端口，默认端口在1158</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emca <span style="color: #990000; ">-</span>reconfig ports $ emca <span style="color: #990000; ">-</span>reconfig ports <span style="color: #990000; ">-</span>dbcontrol_http_port <span style="color: #993399; ">1160</span> $ emca <span style="color: #990000; ">-</span>reconfig ports <span style="color: #990000; ">-</span>agent_port <span style="color: #993399; ">3940</span></tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">先设 置ORACLE_SID环境变量后,启动EM console服务</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emctl start dbconsole</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">先设置 ORACLE_SID环境变量后,停止EM console服务</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emctl stop dbconsole</tt></pre></div></div><div><p style="margin-top: 0.5em; margin-bottom: 0.5em; "><strong style="color: #083194; ">先设置ORACLE_SID环 境变量后,查看EM console服务的状态</strong></p></div><div style="margin-top: 1em; margin-bottom: 1.5em; "><div style="padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-top-color: #dddddd; border-right-color: #dddddd; border-bottom-color: #dddddd; border-image: initial; border-left-width: 5px; border-left-style: solid; border-left-color: #f0f0f0; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f8f8f8; background-position: initial initial; background-repeat: initial initial; "><pre style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; "><tt style="font-size: inherit; color: navy; ">$ emctl <span style="font-weight: bold; "><span style="color: #0000ff; ">status</span></span> dbconsole</tt></pre></div></div></div></div></div><div id="footer" style="font-family: Arial, Helvetica, sans-serif; font-size: small; border-top-width: 2px; border-top-style: solid; border-top-color: silver; padding-top: 0.5em; margin-top: 4em; line-height: normal; "></div><img src ="http://www.blogjava.net/kuuyee/aggbug/373355.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> 2012-04-05 11:08 <a href="http://www.blogjava.net/kuuyee/archive/2012/04/05/373355.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个速度比较快的Cygwin镜像</title><link>http://www.blogjava.net/kuuyee/archive/2011/10/17/361490.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Mon, 17 Oct 2011 15:43:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/10/17/361490.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/361490.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/10/17/361490.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/361490.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/361490.html</trackback:ping><description><![CDATA[最近发现163镜像总是中途下载失败！所以测试了一下别的镜像，发现一个速度还可以（是小鬼子的）！<br />就此记录连接<br /><div style="display: inline-block; "><div><div><a href="ftp://ftp.iij.ad.jp/pub/cygwin/">ftp://ftp.iij.ad.jp/pub/cygwin/<br /><br /></a></div></div></div><img src ="http://www.blogjava.net/kuuyee/aggbug/361490.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-17 23:43 <a href="http://www.blogjava.net/kuuyee/archive/2011/10/17/361490.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>Cygwin简单配置</title><link>http://www.blogjava.net/kuuyee/archive/2011/10/08/360190.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Sat, 08 Oct 2011 06:26:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/10/08/360190.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/360190.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/10/08/360190.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/360190.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/360190.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 首先安装cygwin,这部很简单在此不描述了,给出下载链接http://cygwin.com/setup.exe 记得装上vim和OpenSSh还有cygrunsrv&nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/10/08/360190.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/360190.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 14:26 <a href="http://www.blogjava.net/kuuyee/archive/2011/10/08/360190.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>(转载)Redhat linux下调整系统时钟</title><link>http://www.blogjava.net/kuuyee/archive/2011/08/30/357568.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 30 Aug 2011 06:33:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/08/30/357568.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/357568.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/08/30/357568.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/357568.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/357568.html</trackback:ping><description><![CDATA[<div><div>               <div id="blog_text"> <div>原文链接:<a href="http://yoozhu.com/?p=232">http://yoozhu.com/?p=232</a><br /><br />最近公司的服务器时间慢了，想调整一下。试了好多次，总不成功，经过几天的努力，终于成功了。现在把我的做法写下来，让后来的同仁少走弯路。</div> <div> </div> <div><strong>1.先修改日期</strong><br /> date -s 11/24/1999<br /> 這時時間變成 Wed Nov 24 00:00:00 CST 1999</div> <div><strong>2.再来修改时间</strong><br /> date -s 09:41:00<br /> Wed Nov 24 00:00:00 CST 1999</div> <div><strong>3.检查硬件(CMOS)时间</strong><br /> clock -r</div> <div><strong>4.将系统时间写入CMOS</strong><br /> clock -w</div> <div>最后两步一般人容易忘记，所以总是失败。呵呵。</div> </div> 						          </div></div><img src ="http://www.blogjava.net/kuuyee/aggbug/357568.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-08-30 14:33 <a href="http://www.blogjava.net/kuuyee/archive/2011/08/30/357568.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一条命令搞定svg批量格式转换</title><link>http://www.blogjava.net/kuuyee/archive/2011/05/17/350370.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 17 May 2011 01:12:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/05/17/350370.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/350370.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/05/17/350370.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/350370.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/350370.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: ,抽时间试用了一下Gnome3，发现默认主题的图标超漂亮，就下载了一套。结果打开一看，竟然全是SVG格式，虽然使用Adobe提供的SVG Viewer可以查看,但是只能一个一个的看，不能批量浏览。费了很多时间查找SVG批量格式转换的软件，结果不是收费就是不能批量处理，很是郁闷，最后没辙了，只好使用Linux提供的ImageMagick(现在ImageMagicK也有Windows版本,懒得装了)。ImageMagick真是难以置信的强大,一条命令就可以搞定SVG到PNG格式的批量转换:&nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/05/17/350370.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/350370.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-17 09:12 <a href="http://www.blogjava.net/kuuyee/archive/2011/05/17/350370.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux下列出所有子目录及磁盘占用情况</title><link>http://www.blogjava.net/kuuyee/archive/2011/04/25/348985.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Mon, 25 Apr 2011 09:46:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/04/25/348985.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/348985.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/04/25/348985.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/348985.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/348985.html</trackback:ping><description><![CDATA[今天<a href="http://jenkins-ci.org/">Jenkins</a>(以前叫Hudson)CI服务器突然挂了，排查了半天发现磁盘已经100%，真后悔当初没把磁盘设大点，其实可以用LVM调整一下，但是心里还是没底，怕把数据都丢失了，决定以后再调整磁盘分配。目前先吧Jenkins下没用的项目都干掉，可以腾出很多空间。<br />
<br />
我们都知道使用<strong><span style="color: #0000cd">du</span></strong>命令可以查看目录，例如查看<span style="color: #0000cd"><strong>/home/kuuyee</strong></span>目录占用磁盘空间大小可以使用下面的命令：<br />
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #008080">1</span><img alt="" align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" /><span style="color: #000000">root@pm</span><span style="color: #000000">-</span><span style="color: #000000">ubuntu:</span><span style="color: #000000">~</span><span style="color: #008000">#</span><span style="color: #008000">&nbsp;du&nbsp;/home/kuuyee&nbsp;-sh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000"><br />
</span><span style="color: #008080">2</span><span style="color: #008000"><img alt="" align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">333M&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">/</span><span style="color: #000000">home</span><span style="color: #000000">/</span><span style="color: #000000">kuuyee</span></div>
<br />
但是有个问题，我的Jenkins目录下有上百个构建项目，一个一个的差看目录占用情况太麻烦了，google了一下找到一个办法：<br />
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #008080">1</span><img alt="" align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" /><span style="color: #000000">root@pm</span><span style="color: #000000">-</span><span style="color: #000000">ubuntu:</span><span style="color: #000000">~</span><span style="color: #008000">#</span><span style="color: #008000">&nbsp;du&nbsp;/home&nbsp;--max-depth=1&nbsp;-h</span><span style="color: #008000"><br />
</span><span style="color: #008080">2</span><span style="color: #008000"><img alt="" align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">125M&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">/</span><span style="color: #000000">home</span><span style="color: #000000">/</span><span style="color: #000000">linux<br />
</span><span style="color: #008080">3</span><span style="color: #000000"><img alt="" align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" />333M&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">/</span><span style="color: #000000">home</span><span style="color: #000000">/</span><span style="color: #000000">kuuyee<br />
</span><span style="color: #008080">4</span><span style="color: #000000"><img alt="" align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" />457M&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #000000">/</span><span style="color: #000000">home</span></div>
<br />
这样的话就吧所有的子目录的磁盘占用情况都列出来了!这里的<span style="color: #0000cd"><strong>--max-depth</strong></span>参数代表着要列出目录的深度，如果要列出两级目录就设置为<span style="color: #b22222"><strong>2</strong></span>，以此类推。<br />
如果想吧结果输出到文件里可以这样：<br />
<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #008080">1</span><img align="top" src="http://www.blogjava.net/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">root@pm</span><span style="color: #000000">-</span><span style="color: #000000">ubuntu:</span><span style="color: #000000">~</span><span style="color: #008000">#</span><span style="color: #008000">&nbsp;du&nbsp;/home&nbsp;--max-depth=1&nbsp;-h&nbsp;&gt;&nbsp;disk_status.txt</span></div>
<br />
<p>下面给出du命令的用法及参数说明：</p>
<p style="font-size: 12pt"><strong>用法：du [选项]&#8230; [文件]&#8230;<br />
或：du [选项]&#8230; &#8211;files0-from=F<br />
总结每个&lt;文件&gt;的磁盘用量，目录则取总用量。</strong></p>
<p><strong>参数含义如下：</strong><br />
<span style="color: #0000cd"><strong>-s</strong></span> 对每个Names参数只给出占用的数据块总数。<br />
<span style="color: #0000cd"><strong>-a</strong></span> 递归地显示指定目录中各文件及子孙目录中各文件占用的数据块数。若既不指定-s，也不指定-a，则只显示Names中的每一个目录及其中的各子目录所占的磁盘块数。<br />
<span style="color: #0000cd"><strong>-b</strong></span> 以字节为单位列出磁盘空间使用情况（系统缺省以 k 字节为单位）。<br />
<span style="color: #0000cd"><strong>-k</strong></span> 以1024字节为单位列出磁盘空间使用情况。<br />
<span style="color: #0000cd"><strong>-c</strong></span> 最后再加上一个总计（系统缺省设置）。<br />
<span style="color: #0000cd"><strong>-l</strong></span> 计算所有的文件大小。</p><img src ="http://www.blogjava.net/kuuyee/aggbug/348985.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-04-25 17:46 <a href="http://www.blogjava.net/kuuyee/archive/2011/04/25/348985.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>批处理中获取当前路径</title><link>http://www.blogjava.net/kuuyee/archive/2011/04/22/348762.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 22 Apr 2011 01:37:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/04/22/348762.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/348762.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/04/22/348762.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/348762.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/348762.html</trackback:ping><description><![CDATA[<strong>废话不多说,直接看例子：<br />
</strong>
<div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;"><!--<br />
<br />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br />
http://www.CodeHighlighter.com/<br />
<br />
--><span style="color: #008080;">1</span>&nbsp;<span style="color: #800080;">@echo</span><span style="color: #000000;">&nbsp;off<br />
</span><span style="color: #008080;">2</span>&nbsp;<span style="color: #000000;">echo&nbsp;当前盘符：</span><span style="color: #000000;">%~</span><span style="color: #000000;">d0<br />
</span><span style="color: #008080;">3</span>&nbsp;<span style="color: #000000;">echo&nbsp;当前盘符和路径：</span><span style="color: #000000;">%~</span><span style="color: #000000;">dp0<br />
</span><span style="color: #008080;">4</span>&nbsp;<span style="color: #000000;">echo&nbsp;当前批处理全路径：</span><span style="color: #000000;">%~</span><span style="color: #000000;">f0<br />
</span><span style="color: #008080;">5</span>&nbsp;<span style="color: #000000;">echo&nbsp;当前盘符和路径的短文件名格式：</span><span style="color: #000000;">%~</span><span style="color: #000000;">sdp0<br />
</span><span style="color: #008080;">6</span>&nbsp;<span style="color: #000000;">echo&nbsp;当前CMD默认目录：</span><span style="color: #800080;">%cd</span><span style="color: #000000;">%</span><span style="color: #000000;"><br />
</span><span style="color: #008080;">7</span>&nbsp;<span style="color: #000000;">pause</span></div><img src ="http://www.blogjava.net/kuuyee/aggbug/348762.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-04-22 09:37 <a href="http://www.blogjava.net/kuuyee/archive/2011/04/22/348762.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>XSL入门(翻译)</title><link>http://www.blogjava.net/kuuyee/archive/2011/03/09/345993.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Wed, 09 Mar 2011 00:58:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/03/09/345993.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/345993.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/03/09/345993.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/345993.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/345993.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 最近经常用到Docbook,所以突击一下XSL,<DocBook XSL: The Complete Guide>本书不错,所以翻译了一下XSL的入门部分.<br>XSL是​一​个​模​板​语​言​，而​不​是​一​个​程​序​语​言​。​这​意​味​着​stylesheet制​定​了​一​个​输​出​样​本​，而​不​是​使​用​程​序​按​步​骤​生​成​。​一​个​stylesheet包​含​了​一​个​混​合​的​输​出​样​本​，并​且​为​每​个​样​本​佩​戴​了​输​出​指​令​。​每​一​个​晓​得​输​出​样​本​加​上​处​理​指​令​就​构​成​了​一​个​模​板​。​<br>&nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/03/09/345993.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/345993.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-03-09 08:58 <a href="http://www.blogjava.net/kuuyee/archive/2011/03/09/345993.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Jenkins文档翻译(1)-管理</title><link>http://www.blogjava.net/kuuyee/archive/2011/03/07/345864.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Mon, 07 Mar 2011 02:54:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/03/07/345864.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/345864.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/03/07/345864.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/345864.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/345864.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Jenkins官方文档翻译之Jenkins管理.<br>Jenkins需​要​一​些​磁​盘​空​间​来​执​行​构​建​和​归​档​。​你​可​以​在​Jenkins的​配​置​页​面​查​看​磁​盘​所​在​的​路​径​。​默​认​情​况​下​是​~/.jenkins，你​可​以​通​过​如​下​的​方​法​来​改​变​设​置​： &nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/03/07/345864.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/345864.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-03-07 10:54 <a href="http://www.blogjava.net/kuuyee/archive/2011/03/07/345864.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>两条命令搞定CentOS5.4中PHP的版本升级</title><link>http://www.blogjava.net/kuuyee/archive/2011/03/04/345739.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 04 Mar 2011 09:43:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/03/04/345739.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/345739.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/03/04/345739.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/345739.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/345739.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 著名的内容管理程序Prupal发布了7.0版,决定试用下.<br>安装过程遇到PHP版本过低的问题,CentOS5.4自带的PHP是5.1.6版,而Drupal7要求PHP必须是5.2.3以上.<br>&nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/03/04/345739.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/345739.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-03-04 17:43 <a href="http://www.blogjava.net/kuuyee/archive/2011/03/04/345739.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Git试用</title><link>http://www.blogjava.net/kuuyee/archive/2011/03/03/345587.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 03 Mar 2011 05:22:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2011/03/03/345587.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/345587.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2011/03/03/345587.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/345587.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/345587.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Hudson终​于​摆​脱​了​Oracle,现​在​更​名​为​Jenkins,并​使​用​GitHub托​管​所​有​代​码​.<br>之​前​一​直​用​Subversion作​为​版​本​管​理​,今​天​就​拿​Jenkins项​目​试​用​一​下​Git这​个​分​布​式​的​版​本​管​理​工​具​ &nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2011/03/03/345587.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/345587.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-03-03 13:22 <a href="http://www.blogjava.net/kuuyee/archive/2011/03/03/345587.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS下KVM试用</title><link>http://www.blogjava.net/kuuyee/archive/2010/12/07/339987.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 07 Dec 2010 07:32:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2010/12/07/339987.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/339987.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2010/12/07/339987.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/339987.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/339987.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 最​近​整​理​公​司​的​几​台​服​务​器​，由​于​机​器​少​应​用​多​，就​总​是​觉​得​服​务​器​资​源​紧​张​，所​以​痛 ​下​决​心​使​用​虚​拟​机​。​考​察​了​一​番​决​定​使​用​KVM，因​为​机​器​配​置​不​是​很​高​，使​用​KVM性​能 ​会​比​较​好​。​<br>基​础​系​统​选​用​CentOS5.4，下​面​列​出​具​体​的​安​装​配​置​过​程​ &nbsp;&nbsp;<a href='http://www.blogjava.net/kuuyee/archive/2010/12/07/339987.html'>阅读全文</a><img src ="http://www.blogjava.net/kuuyee/aggbug/339987.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> 2010-12-07 15:32 <a href="http://www.blogjava.net/kuuyee/archive/2010/12/07/339987.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>转载 linux下将远程磁盘mount到本地</title><link>http://www.blogjava.net/kuuyee/archive/2010/12/01/339525.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Wed, 01 Dec 2010 08:55:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2010/12/01/339525.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/339525.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2010/12/01/339525.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/339525.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/339525.html</trackback:ping><description><![CDATA[<span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium/20px 微软雅黑; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 17px; font-family: 'BBAlpha Sans', 'Prelude Medium', 'S60 Sans', Tahoma, Verdana, Arial, sans-serif; color: #8e604f; font-size: 13px" class="Apple-style-span">
<div style="line-height: 17px"><font style="line-height: normal" size="2"><a href="http://shenjoshua.spaces.live.com/blog/cns!5CC44EF3358EA7F2!183.entry">http://shenjoshua.spaces.live.com/blog/cns!5CC44EF3358EA7F2!183.entry</a><br />
问题：<br style="line-height: 17px" />
现需要把一台服务器上的几个目录共享给其他几台机器使用，这些机器的操作系统都是Linux。</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">实现的办法：<br style="line-height: 17px" />
使用nfs服务，在客户端mount服务器的文件夹。</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">操作步骤：<br style="line-height: 17px" />
1.在服务器端启动nfs和portmap服务。<br style="line-height: 17px" />
service nfs start<br style="line-height: 17px" />
service portmap start<br style="line-height: 17px" />
运行ntsysv，把nfs和portmap加入到启动服务中去</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">2.在服务器编辑配置文件/etc/exports<br style="line-height: 17px" />
如果你需要共享/data目录给10.10.10.10这个ip，可以加上如下的配置语句：<br style="line-height: 17px" />
/data&nbsp;&nbsp; 10.10.10.10(rw,no_root_squash)</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">3.重启服务器端的nfs服务<br style="line-height: 17px" />
service nfs restart</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">4.在客户端启动portmap服务<br style="line-height: 17px" />
service portmap start</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">5.在客户端mount远程文件夹</font></div>
<div style="line-height: 17px"><font style="line-height: normal" size="2">mkdir /data<br style="line-height: 17px" />
mount -t nfs 10.10.10.1:/data /data<span class="Apple-converted-space">&nbsp;</span></font></div>
</span></span><img src ="http://www.blogjava.net/kuuyee/aggbug/339525.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> 2010-12-01 16:55 <a href="http://www.blogjava.net/kuuyee/archive/2010/12/01/339525.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>LoadRunner 监控CentOS笔记</title><link>http://www.blogjava.net/kuuyee/archive/2010/11/26/339143.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 26 Nov 2010 09:05:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2010/11/26/339143.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/339143.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2010/11/26/339143.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/339143.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/339143.html</trackback:ping><description><![CDATA[<p>
</p><p>先安装所需的软件</p>
<p><br />
</p>
<p>yum install rsh-server rusers-server</p>
<p><br />
</p>
<p>&nbsp;然后启动服务</p>
<p>service xinetd reload</p>
<p>/etc/init.d/./rstatd start</p>
<p><br />
</p>
<p>可以用roadrunner连接监控了</p>
<p>&nbsp;</p><img src ="http://www.blogjava.net/kuuyee/aggbug/339143.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> 2010-11-26 17:05 <a href="http://www.blogjava.net/kuuyee/archive/2010/11/26/339143.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS mail </title><link>http://www.blogjava.net/kuuyee/archive/2010/04/20/318896.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 20 Apr 2010 13:20:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2010/04/20/318896.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/318896.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2010/04/20/318896.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/318896.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/318896.html</trackback:ping><description><![CDATA[http://www.enghiong.com/library/extmail+centos+5+2+<img src ="http://www.blogjava.net/kuuyee/aggbug/318896.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> 2010-04-20 21:20 <a href="http://www.blogjava.net/kuuyee/archive/2010/04/20/318896.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CentOS5.3设定静态IP</title><link>http://www.blogjava.net/kuuyee/archive/2009/09/22/296016.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 22 Sep 2009 05:52:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2009/09/22/296016.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/296016.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2009/09/22/296016.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/296016.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/296016.html</trackback:ping><description><![CDATA[<p>首先进入/etc/sysconfig/network-scripts/<br />
<br />
编辑内容如下：</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">DEVICE</span><span style="color: #000000">=</span><span style="color: #000000">eth0<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />BOOTPROTO</span><span style="color: #000000">=</span><span style="color: #000000">static<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />HWADDR</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;MAC地址，这个一般都识别出来了，不用改<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />IPADDR</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;IP地址<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />NETMASK</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;子网掩码<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />GATEWAY</span><span style="color: #000000">=</span><span style="color: #000000">&nbsp;网关</span></div>
<p>然后设定DNS,编辑文件/etc/resolv.conf如下：</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">nameserver&nbsp;第一DNS<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />nameserver&nbsp;备用DNS</span></div>
<p>然后重启网络服务</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">service&nbsp;network&nbsp;restart</span></div>
<p>OK,ifconfig一下就应该看到IP地址已经设定。</p><img src ="http://www.blogjava.net/kuuyee/aggbug/296016.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> 2009-09-22 13:52 <a href="http://www.blogjava.net/kuuyee/archive/2009/09/22/296016.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Linux下挂载远程Windows共享目录</title><link>http://www.blogjava.net/kuuyee/archive/2009/09/04/293925.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 04 Sep 2009 10:18:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2009/09/04/293925.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/293925.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2009/09/04/293925.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/293925.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/293925.html</trackback:ping><description><![CDATA[<p>环境：CentOS5.3<br />
远程Windows IP：192.168.1.20 (user/password：administrator/123456) 共享目录为c:\Download<br />
CentOS挂载目录：/mnt/share (必须首先创建好)<br />
<br />
挂载步骤：<br />
1。创建/mnt/share</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">mkdir</span><span style="color: #000000">&nbsp;</span><span style="color: #000000">-</span><span style="color: #000000">p&nbsp;</span><span style="color: #000000">/</span><span style="color: #000000">mnt</span><span style="color: #000000">/</span><span style="color: #000000">share</span></div>
<p><br />
2。挂载远程windows目录</p>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">mount&nbsp;</span><span style="color: #000000">-</span><span style="color: #000000">t&nbsp;cifs&nbsp;</span><span style="color: #000000">-</span><span style="color: #000000">o&nbsp;username</span><span style="color: #000000">=</span><span style="color: #000000">administrator</span><span style="color: #000000">,</span><span style="color: #000000">password</span><span style="color: #000000">=</span><span style="color: #800000">123456</span><span style="color: #000000">&nbsp;</span><span style="color: #800000">192.168</span><span style="color: #000000">.</span><span style="color: #800000">1.20</span><span style="color: #000000">:</span><span style="color: #000000">Download&nbsp;</span><span style="color: #000000">/</span><span style="color: #000000">mnt</span><span style="color: #000000">/</span><span style="color: #000000">share</span></div>
<p><br />
OK,在/mnt/share下应该可以看到Download下的内容了。</p><img src ="http://www.blogjava.net/kuuyee/aggbug/293925.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> 2009-09-04 18:18 <a href="http://www.blogjava.net/kuuyee/archive/2009/09/04/293925.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu指定静态IP</title><link>http://www.blogjava.net/kuuyee/archive/2009/09/03/293754.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 03 Sep 2009 08:38:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2009/09/03/293754.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/293754.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2009/09/03/293754.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/293754.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/293754.html</trackback:ping><description><![CDATA[默认情况下ubuntu是用dhcp来获取IP的，对于但用户来说比较方便，免去了配置网络的步骤，但是如果是对于多用户的局域网来说就比较不利，因为dhcp偶尔会更换IP,从而是想要连接的用户必须更改IP配置。<br />
<br />
指定静态IP的方法如下：<br />
<br />
1.编辑/etc/network/interfaces,内容如下<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">auto&nbsp;eth0<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />iface&nbsp;eth0&nbsp;inet&nbsp;static<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />address&nbsp;&nbsp;</span><span style="color: #800000">192.168</span><span style="color: #000000">.</span><span style="color: #800000">1.100</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;＃静态ip<br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" />gateway&nbsp;&nbsp;</span><span style="color: #800000">192.168</span><span style="color: #000000">.</span><span style="color: #800000">1.1</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">#</span><span style="color: #008000">网关</span><span style="color: #008000"><br />
<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">netmask&nbsp;&nbsp;</span><span style="color: #800000">255.255</span><span style="color: #000000">.</span><span style="color: #800000">255.0</span><span style="color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #008000">#</span><span style="color: #008000">子网掩码</span></div>
<br />
2.编辑/etc/resolv.conf，指定DNS<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">nameserver&nbsp;</span><span style="color: #800000">192.168</span><span style="color: #000000">.</span><span style="color: #800000">1.1</span></div>
<br />
3.重新启动网络服务<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">/</span><span style="color: #000000">etc</span><span style="color: #000000">/</span><span style="color: #000000">init</span><span style="color: #000000">.</span><span style="color: #000000">d</span><span style="color: #000000">/</span><span style="color: #000000">networking&nbsp;restart</span></div>
<br />
OK,IP已经指定！<img src ="http://www.blogjava.net/kuuyee/aggbug/293754.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> 2009-09-03 16:38 <a href="http://www.blogjava.net/kuuyee/archive/2009/09/03/293754.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vSphere使用中的vCenter链接主机的问题</title><link>http://www.blogjava.net/kuuyee/archive/2009/09/03/293718.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Thu, 03 Sep 2009 03:42:00 GMT</pubDate><guid>http://www.blogjava.net/kuuyee/archive/2009/09/03/293718.html</guid><wfw:comment>http://www.blogjava.net/kuuyee/comments/293718.html</wfw:comment><comments>http://www.blogjava.net/kuuyee/archive/2009/09/03/293718.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kuuyee/comments/commentRss/293718.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kuuyee/services/trackbacks/293718.html</trackback:ping><description><![CDATA[使用vCenter链接新安装的vSphere主机会报如下错误<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">Unable&nbsp;to&nbsp;</span><span style="color: #0000ff">connect</span><span style="color: #000000">&nbsp;to&nbsp;the&nbsp;MKS</span><span style="color: #000000">:</span><span style="color: #000000">&nbsp;Cannot&nbsp;</span><span style="color: #0000ff">connect</span><span style="color: #000000">&nbsp;to&nbsp;</span><span style="color: #800000">192.168</span><span style="color: #000000">.</span><span style="color: #800000">1.112</span><span style="color: #000000">:</span><span style="color: #800000">903</span></div>
<br />
解决办法<br />
ssh到vSphere主机，编辑/etc/vmware/config,添加如下内容<br />
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">vmauth</span><span style="color: #000000">.</span><span style="color: #000000">server</span><span style="color: #000000">.</span><span style="color: #000000">alwaysproxy</span><span style="color: #000000">=</span><span style="color: #000000">TRUE</span></div>
<br />
重启vSphere主机，问题解决。<img src ="http://www.blogjava.net/kuuyee/aggbug/293718.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> 2009-09-03 11:42 <a href="http://www.blogjava.net/kuuyee/archive/2009/09/03/293718.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>