??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩一区二区国产,亚洲免费观看视频,精品久久人人做人人爰http://www.aygfsteel.com/kuuyee/category/39683.htmlwhile (产品+需?设计+开?试+部v+发布 == doing) { CI }zh-cnWed, 05 Jun 2013 12:00:27 GMTWed, 05 Jun 2013 12:00:27 GMT60Linux下的ORACLE安装Q成功率99.99999%http://www.aygfsteel.com/kuuyee/archive/2013/05/24/399719.htmlkuuyeekuuyeeFri, 24 May 2013 04:27:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2013/05/24/399719.htmlhttp://www.aygfsteel.com/kuuyee/comments/399719.htmlhttp://www.aygfsteel.com/kuuyee/archive/2013/05/24/399719.html#Feedback1http://www.aygfsteel.com/kuuyee/comments/commentRss/399719.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/399719.html

怿很多童鞋都有q在Linux上安装Oracle数据库的痛苦l历Q其中绝大多数都是环境设|的问题。我l大家推荐一个国外大牛写的Oracle的安装脚?nbsp;OTKQ是用Bash写的Q这东东大大化了(jin)Oracle安装q程Q而且成功率达?9.9999%以上Q只要确保你的Linuxpȝ是干净的,那么按照q个教程Q保证你?x)安装成功?/span>

准备工作

OTK针对各种Linux提供?nbsp;安装文档Q本文用的RHEL5.5_x86_64位,数据库版本ؓ(f)11gR2Q主要参考这?nbsp;文档?/p>

首先准备阿好如下的安装文Ӟ(x)

下蝲上述文gq放?tt>/var/tmp/oracle目录下。最好要把你的YUM源指向你的系l安装光盘或者ISO文g?/p>

安装OTK

用root登陆Q执行如下命令:(x)

# su - root 
# cd /var/tmp/oracle
# ls -1 oratool*
oratoolkit-1.0.2.1.5-1.noarch.rpm
# rpm -ivh oratoolkit-1.0.2.1.5-1.noarch.rpm
Preparing... ########################################### [100%]
1:oratoolkit ########################################### [100%]

otk已经帮我们徏立了(jin)oracle用户Q下面需要设|Oracle用户密码

# passwd oracle 
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.

解决环境依赖

q一步最爽,最为头疼的环境依赖问题Lp决了(jin)Q首先要验证下你的系l还差什么没有满求,OTK脚本提供?jin)智能的环境是否满(g)?

# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg 
...//省略大部分输?
20130521_165122: Info: Action swReqCheck of installManager ended with 7 WARNINGS

最后的l论告诉你的pȝ共有几个警告Q我的系l是7个)(j)Q你可以在输出日志中查看到底~Z(jin)什么。下面的一l命令很P让你一下子解决所有的问题:

//先拼装命?
# REQ_FILE_DIR="/opt/oracle/otk/current/conf/installManager/requirement"
# REQ_FILE_PATH="$REQ_FILE_DIR/ora11gR2-redhat-5-x86_64.pkg.lst"
# YUM_COMMAND=$(echo "yum install")
# YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 32-bit | awk '{ print " "$1".i[356]86" }')
# YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 64-bit | awk '{ print " "$1".x86_64" }')

//用echo看看最l拼装的命o(h)是什么样
# echo $YUM_COMMAND

//执行命o(h)
# $YUM_COMMAND

//再次执行环境(g)?
# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg
...
20130521_170131: Info: Action swReqCheck of installManager ended successfully //q次验证成功?jin),环境已经满Oracle安装要求

增强sqlplus

OTK提供?jin)一个优化增强的sqlplus环境Q?/p>

# cd /opt/oracle/otk/current/tools/rlwrap/ 
# ./configure
# make
# make install
# /usr/local/bin/rlwrap -v
rlwrap 0.30

使用installManager提取安装

切换?tt>/opt/oracle/otk/current/conf/installManager目录Q编?tt>osSetup11gR2.cfg来配|安装参敎ͼ包括内核参数、目录创建及(qing)所有授权等讄Q如果你想默认安装就无需更改q个文g?/p>

# cd /opt/oracle/otk/current/conf/installManager/ 
# vi osSetup11gR2.cfg
# sdiff -s osSetup11gR2.cfg sample/osSetup11gR2.cfg //Ҏ(gu)哪些参数修改q?
# /opt/oracle/otk/current/bin/installManager osSetup osSetup11gR2.cfg

把Oracle安装文gUd资源目录

otk默认doracle安装文g的目录是/var/opt/oracle/repositoryQotk?strong>swInst实例安装命o(h)?x)读取这个目录?x)

# cd /var/tmp/oracle 
# chown oracle:oinstall *
# mv linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip /var/opt/oracle/repository/

定制oracle用户d的PS1变量

q一步没什么实际意义,是定制Oracle用户d的提C符?/p>

# su - oracle
------------------------------------------------------
oraToolKit environment variables
------------------------------------------------------
Installation directory : /opt/oracle/otk
Release : 1.0.2.1.5
$RUN directory : /opt/oracle/otk/1.0/bin
$LOG_BASE directory : /var/opt/oracle/otk/1.0/log
------------------------------------------------------
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive
SITE="<SITE|COMPANY>"
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ vi .profile.custom.interactive
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive
SITE="KuuYee"http://修改q一行,可以昄你喜Ƣ的内容
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ exit
# su - oracle
KuuYee:oracle@stquist1p:sidNotSet$

安装Oracle数据?/h4>

OTK没有采用Oracle Universal Installer(OUI)Q而是?strong>swInst来控制整个安装过E的Q?/p>

$ bash 
$ cd $INSTALL_CONF
$ cp sample/swInstEeSrv11gR2-Step1-linux-x86_64.cfg .
$ installManager swInst swInstEeSrv11gR2-Step1-linux-x86_64.cfg
$ su -
# /opt/oracle/eesrv/11.2.0/db1/root.sh
# exit

创徏数据库实?/h4>

OTK采用dbSetup来创建实例,首先要进?tt>$INSTALL_CONF目录配置实例参数

$ cd $INSTALL_CONF 
$ ls -1 dbSetup*.cfg
dbSetup-dev.cfg
dbSetup-prod.cfg
dbSetup-test.cfg
$ vi dbSetup-prod.cfg //prod为生产模?
$ sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg
DB_NAME="idm_test" | DB_NAME="prod"
ORACLE_HOME="$ORACLE_BASE/eesrv/11.2.0/db1" | ORACLE_HOME="$ORACLE_BASE/sesrv/11.1.0/db1"
NLS_LANG=".AL32UTF8" | NLS_LANG=".UTF8"
SYSTEM_SIZE=1G | SYSTEM_SIZE=512M
TEMP_SIZE=2G | TEMP_SIZE=512M
UNDO_SIZE=2G | UNDO_SIZE=512M
USERS_SIZE=100M | USERS_SIZE=10M
LISTENER_PORT="1541" | LISTENER_PORT="1531"
MEMORY_TARGET=7G | MEMORY_TARGET=512M
MEMORY_MAX_TARGET=7G | MEMORY_MAX_TARGET=512M
SGA_TARGET=3G | SGA_TARGET=256M
PROCESSES=1000 | PROCESSES=100
$ installManager dbSetup dbSetup-prod.cfg //执行q部之前最好先配置?etc/hosts文gQ看下面说明

本文采用dbSetup-prod.cfg生环境模式配置Q我们看到还有dev(开发环?和test(试环境)Q不q我没试q,有兴的童鞋可以试试。我在上面列Z(jin)我所作出的配|,原文q没有修改内存参敎ͼ我之所以修Ҏ(gu)因ؓ(f)实际环境因ؓ(f)内存讄太小Dq行一D|间数据库l常挂掉Q经q多ơ的调试而得到的l验|q里需要说明下我的数据库配|:(x)
OSQVMware虚拟?RHEL5.5)
CPUQ??br />内存Q?2G
Q?00GB
上面?tt>sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg命o(h)可以Ҏ(gu)下我的参C改,左面是我的修改参敎ͼ右面是原参数,需要特别说明的是第二个参数ORACLE_HOMEQ一定要自修修改Q原来的参数?tt>$ORACLE_BASE/sesrv/11.1.0/db1Q要修改?ORACLE_BASE/eesrv/11.2.0/db1Q别攚w?jin)?/p>

installManager dbSetup dbSetup-prod.cfg命o(h)开始安装数据库实例Q不q我你最好先配置下你?tt>/etc/hosts文gQ加入下面的内容Q?/p>

127.0.0.1    你的hostname

接下来就是O长的{待Q大概需要几十分钟,具体Ҏ(gu)你的机器配置情况。如果你最后看到如下的输出Q?/p>

---------------------------------------------------------------------------------------------------- 
20130522_091856: Info: Executing libmiscellaneous.getFooter function
20130522_091856: Info: Terminating installManager execution
20130522_091856: Info: Summary log file: /var/opt/oracle/otk/1.0/log-old/installManager/../installManager.log
20130522_091856: Info: Detailed log file: /var/opt/oracle/otk/1.0/log-old/installManager/dbsetup-20130522_090349.log
20130522_091856: Info: Action dbSetup of installManager ended successfully
----------------------------------------------------------------------------------------------------

CongratulationsQ?/strong>你安装成功了(jin)?/p>

下面登陆试试Q?/p>

Note
OTK默认创徏?jin)一?strong>otk用户Q密码也?strong>otkQ?nbsp;sys?strong>system默认密码?strong>manager
$ bash 
$ sourceProdEnv
$ sqlplus sys/manager@idm_dev as sysdba;
或?
$ sqlplus otk/otk@idm_dev

SQL*Plus: Release 11.2.0.1.0 Production on Wed May 22 11:05:16 2013

Copyright (c) 1982, 2009, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

使用appctl理oracle

OTK提供?jin)一个ctl工具来帮我们理Oracle实例Q?/p>

$ ctl status all //查看当前状?
$ ctl stop all //停止数据?
$ ctl start all //启动数据?/code>

使用backupuManager备䆾oracle

$ cd $BACKUP_CONF 
$ vi prod.cfg
$ sdiff -s prod.cfg sample/prod.cfg DISK_DEVICE_MOUNT_POINT="/" | DISK_DEVICE_MOUNT_POINT="/backup01"
$ backupManager full prod.cfg

定时备䆾Job

$ crontab -l|head -2 
# Example 1: Daily physical database backup
# 0 2 * * * [ -d $HOME/../current ] && (ksh -c '. ./.profile >/dev/null; backupManager full <sid_1>.cfg <sid_2>.cfg <sid_n>.cfg >/dev/null')
$ crontab -e
$ crontab -l|head -2
# Example 1: Daily physical database backup
0 2 * * * [ -d $HOME/../current ] && (ksh -c '. ./.profile >/dev/null; backupManager full prod.cfg >/dev/null')

创徏EM理控制?/h4>

otkq没有帮我们创徏EM控制収ͼ对于?fn)惯用Web理的用户很不方便,我们需要手工创建:(x)

$ emca -config dbcontrol db -repos recreate  

STARTED EMCA at May 22, 2013 11:18:41 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information:
Database SID: idm_dev //输入sid
Listener port number: 1541 //监听输入端口
Listener ORACLE_HOME [ /opt/oracle/eesrv/11.2.0/db1 ]: //默认回R
Password for SYS user: //输入密码manager
Password for DBSNMP user: //输入密码manager
Password for SYSMAN user: //输入密码manager
Email address for notifications (optional): //默认回R
Outgoing Mail (SMTP) server for notifications (optional): //默认回R
-----------------------------------------------------------------

You have specified the following settings

Database ORACLE_HOME ................ /opt/oracle/eesrv/11.2.0/db1

Local hostname ................ localhost.localdomain
Listener ORACLE_HOME ................ /opt/oracle/eesrv/11.2.0/db1
Listener port number ................ 1541
Database SID ................ idm_dev
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: yes
May 22, 2013 11:19:20 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/cfgtoollogs/emca/idm_dev/emca_2013_05_22_11_18_40.log.
May 22, 2013 11:19:21 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
May 22, 2013 11:19:23 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
May 22, 2013 11:19:23 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
May 22, 2013 11:24:27 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
May 22, 2013 11:24:30 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ... //可能?x)等一?
May 22, 2013 11:25:19 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
May 22, 2013 11:25:23 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
May 22, 2013 11:25:23 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
May 22, 2013 11:25:45 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
May 22, 2013 11:25:45 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
May 22, 2013 11:25:58 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
May 22, 2013 11:25:58 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
May 22, 2013 11:26:28 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
May 22, 2013 11:26:28 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<< //q个是EM的访问链?
May 22, 2013 11:26:31 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************

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.

***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at May 22, 2013 11:26:31 AM

OKQ?大功告成Q相信各位童鞋都安装成功?jin),OTK的安装还是很E_的,臛_我安装了(jin)几十ơ都成功?jin)?/p>

最后祝各位童鞋好运Q?/p>

2013-05-21


kuuyee 2013-05-24 12:27 发表评论
]]>
Shell环境下删除命令如何排除指定文?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2013/04/21/398171.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/398171.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2013/04/21/398171.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/398171.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/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 style="color: #0088cc; text-decoration: none;">kuuyee </a> |  2013-04-13  |  <a 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>   <a 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>   <a 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>   <a 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;">pȝ理</a>  </div><p style="margin: 0px 0px 10px;"></p><div><p style="margin: 0px 0px 10px;">下面列出root目录下的文gl构</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;">目的是除?jin)目录subdir2和文件fileA.txt其它的都要删除,如果一个一个删效率太低了(jin)QShell命o(h)可以L的解?/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.aygfsteel.com/kuuyee/aggbug/398171.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2013-04-21 20:28 <a href="http://www.aygfsteel.com/kuuyee/archive/2013/04/21/398171.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>GitLab5.0安装全过E?/title><link>http://www.aygfsteel.com/kuuyee/archive/2013/04/19/398092.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Fri, 19 Apr 2013 07:43:00 GMT</pubDate><guid>http://www.aygfsteel.com/kuuyee/archive/2013/04/19/398092.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/398092.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2013/04/19/398092.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/398092.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/398092.html</trackback:ping><description><![CDATA[<div style="width: 1170px; margin-right: auto; margin-left: auto; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"> <div style="margin-left: -30px;"> <div style="float: left; min-height: 1px; margin-left: 30px; width: 870px;"> <div style="background-color: #fcfcfa; border: 1px solid #e2e0d8; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; padding: 22px; margin-bottom: 35px;"> <h2><span style="font-size: 14px;">GitLab5发布快一个月?jin),军_试用下,5.0最大的Ҏ(gu)就是用GitLab-Shell取代?jin)GitoliteQ这大大降低?jin)安装难度,不多本h在安装过E中q是到?jin)一些问题,所以记录下来供要安装GitLab5的朋友参考!</span></h2> <p style="margin: 0px 0px 10px;">主要参考文? <a style="color: #0088cc; text-decoration: none;">https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md</a></p> <h4>安装步骤总览</h4> <ol style="padding: 0px; margin: 0px 0px 10px 25px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"> <li>安装依赖?/li> <li>安装Ruby/RVM</li> <li>创徏Git用户</li> <li>安装GitLab-Shell</li> <li>配置数据?/li> <li>安装GitLab</li> <li>启动</li> </ol> <h4>安装依赖?/h4> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install libicu-devel mysql-devel pcre-devel</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装python,官方要求版本必须?.5以上Q而且不支?.0,Fedora一般的版本都在2.7以上Q因此直接安装源自带的即?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install python</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装完查看下版本</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">python --version</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">q要保python2命o(h)有效</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">python2 --version</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">如果提示 <code style="padding: 2px 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #dd1144; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8;">bash: python2: 未找到命?/code> ,那你需要link一?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo ln -s /usr/bin/python /usr/bin/python2</code></pre> <h4>安装Ruby</h4> <ul style="padding: 0px; margin: 0px 0px 10px 25px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"> <li>源码方式安装</li> </ul> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mkdir /tmp/ruby && cd /tmp/ruby <br />curl --progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | tar xz <br />cd ruby-1.9.3-p392 <br />./configure <br />make <br />sudo make install</code></pre> <ul style="padding: 0px; margin: 0px 0px 10px 25px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"> <li>RVM方式</li> </ul> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">curl -#L https://get.rvm.io | bash -s stable --ruby</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">默然安装ruby2.0, GitLab推荐?.9.3</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">rvm install ruby-1.9.3-p392</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">q要安装Bundler</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo gem install bundler</code></pre> <h4>dpȝGit用户</h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">创徏一?nbsp;<code style="padding: 2px 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #dd1144; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8;">git</code> 用户供GitLab使用</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">adduser --comment 'GitLab' git</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">让git用户无密码登?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo chmod 644 /etc/shadow vim /etc/shadow</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">L用户的叹?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">git:!!:15814:0:99999:7::: 修改?git::15814:0:99999:7:::</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">加入sudol?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">chmod u+w /etc/sudoers <br />vim /etc/sudoers <br /><br />## Allow root to run any commands anywhere <br />root ALL=(ALL) ALL <br />git ALL=(ALL) ALL #加入q行</code></pre> <h4>安装GitLab Shell</h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换到git用户</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">su - git cd ~/</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">克隆GitLab Shell</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">git clone https://github.com/gitlabhq/gitlab-shell.git <br />cd gitlab-shell</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换到最新的分支<br /> </p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><div>git checkout v1.2.0 </div></pre> <h4></h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">生配置文g</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">cp config.yml.example config.yml</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">更改配置信息Q一般就改下你部|的域名地址gitlab_url</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">vim config.yml <br /> # Url to gitlab instance. Used for api calls. Should be ends with slash. gitlab_url: "http://localhost/" #Ҏ(gu)你的域名或者IP</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">./bin/install</code></pre> <h4>安装数据?/h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">gitlab支持mysql和postgresqlQ这里以mysqlZQpostgresql?x)比较麻烦(ch)?/p> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换回root用户</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">su - root</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">安装mysql?qing)开发包</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">yum install -y mysql-server mysql mysql-devel</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">启动数据?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">service mysqld start</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">初始化GitLab数据?/p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.5.30 MySQL Community Server (GPL)</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY 'gitlab'; Query OK, 0 rows affected (0.01 sec)</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`; Query OK, 1 row affected (0.00 sec)</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost'; Query OK, 0 rows affected (0.00 sec)</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">mysql> \q Bye</code></pre> <h4></h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">试gitlab用户q接mysql</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -u git -H mysql -u gitlab -p -D gitlabhq_production</code></pre> <h4>安装GitLab</h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">l于到GitLab的安装了(jin)Q进入git用户</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">su - git cd ~/</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">克隆GitLab</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab <br />cd gitlab</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">切换?.0E_分支</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo -u git -H git checkout 5-0-stable</code></pre> <h4>配置</h4> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">cd /home/git/gitlab</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 用样例配|生成gitlab配置 sudo -u git -H cp config/gitlab.yml.example config/gitlab.yml</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 更改域名 sudo -u git -H vim config/gitlab.yml</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 保gitlab?log/ ?tmp/ 目录有写权限 sudo chown -R git log/ sudo chown -R git tmp/ sudo chmod -R u+rwX log/ sudo chmod -R u+rwX tmp/</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 创徏附属目录 sudo -u git -H mkdir /home/git/gitlab-satellites</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 创徏pids目录q确保对gitlab可写 sudo -u git -H mkdir tmp/pids/ sudo chmod -R u+rwX tmp/pids/</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># 生成Unicorn配置 sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb</code></pre> <h4>配置GitLab DB讄</h4> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># Mysql sudo -u git cp config/database.yml.mysql config/database.yml</code></pre> <h4>安装Gems</h4> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">cd /home/git/gitlab</code> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">sudo gem install charlock_holmes --version '0.6.9'</code> <br /> <code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># For MySQL (note, the option says "without") bundle install --deployment --without development test postgres</code></pre> <h4></h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><span style="font-family: verdana, 'courier new'; line-height: 21px;"><br /> </span></p> <h4 style="margin: 10px 0px; text-rendering: optimizelegibility; font-size: 17.5px;">初始化数据ƈȀz高U特?/h4> <p> </p> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">首先~辑/home/git/gitlab/config/database.yml</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;"># # PRODUCTION # production: adapter: mysql2 encoding: utf8 reconnect: false database: gitlabhq_production pool: 5 username: root password: "secure password" #更改Zmysql的root用户密码 # host: localhost # socket: /tmp/mysql.sock #</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">执行rake</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">bundle exec rake gitlab:setup RAILS_ENV=production</code></pre> <div alert-danger"="" style="padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: rgba(255, 255, 255, 0.498039) 0px 1px 0px; background-color: #f2dede; border: 1px solid #eed3d7; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; color: #b94a48; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">报错?jin),提?Error connecting to Redis on localhost:6379 (ECONNREFUSED)<br /> 解决办法Q?br /> 切到root,安装Redis<br /> bc(command). yum install redis*<br /> service redis start #启动redis</div> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">重新执行rake</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">bundle exec rake gitlab:setup RAILS_ENV=production</code></pre> <div alert-info"="" style="padding: 8px 35px 8px 14px; margin-bottom: 20px; text-shadow: rgba(255, 255, 255, 0.498039) 0px 1px 0px; background-color: #d9edf7; border: 1px solid #bce8f1; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; color: #3a87ad; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">如果你安装最新版可能?x)?nbsp;<code style="padding: 2px 4px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: #dd1144; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; white-space: nowrap; background-color: #f7f7f9; border: 1px solid #e1e1e8;">/home/git/repositories/root</code> 目录找不刎ͼ手工Z卛_Q?/div> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">如果你看到如下信?</p> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">... Administrator account created:</code> <br /><br /><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">login.........admin@local.host password......5iveL!fe</code></pre> <h4></h4> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><strong>恭喜你!你已l成功安装GitLab?jin)!别忘了(jin)记录输出的理用户名和密码Q?/strong></p> <h4>启动GitLab</h4> <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: #333333; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; margin-top: 0px; margin-bottom: 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; background-color: #f5f5f5; border: 1px solid rgba(0, 0, 0, 0.14902);"><code style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: transparent; border: 0px;">bundle exec rails s -e production => Booting WEBrick => Rails 3.2.13 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2013-04-19 15:04:41] INFO WEBrick 1.3.1 [2013-04-19 15:04:41] INFO ruby 1.9.3 (2013-02-22) [x86_64-linux] [2013-04-19 15:04:41] INFO WEBrick::HTTPServer#start: pid=11488 port=3000</code></pre> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">Ok,你现在可以访问GitLab?jin),默认端口?@3000@Q?讉K http://你的域名或IP:3000<br /> W一讉K?x)比较慢Q因~译很多js和css.</p> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">哈哈Q看到登陆页面了(jin)吧!</p> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><img src="http://www.kuuyee.org/images/gitlab/gitlab_01.png" title="GitLab登陆" alt="GitLab登陆" style="max-width: 100%; vertical-align: middle; border-width: 0px;" /></p> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;">输入理用户名和密码Q开始n受GitLab吧!</p> <p style="margin: 0px 0px 10px; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"><img src="http://www.kuuyee.org/images/gitlab/gitlab_02.png" title="GitLab首页" alt="GitLab首页" style="max-width: 100%; vertical-align: middle; border-width: 0px;" /></p> <p style="margin: 0px 0px 10px;"></p> <div>2013-04-19</div> </div> </div> </div> </div> <footer style="text-align: center; padding: 20px 0px; margin-top: 20px; border-top-width: 1px; border-top-style: solid; border-top-color: #e5e5e5; background-color: #f5f5f5; color: #4e443c; font-family: adelle, Georgia, 'Times New Roman', serif; line-height: 20px;"> <div style="width: 1170px; margin-right: auto; margin-left: auto;"></div> </footer><img src ="http://www.aygfsteel.com/kuuyee/aggbug/398092.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2013-04-19 15:43 <a href="http://www.aygfsteel.com/kuuyee/archive/2013/04/19/398092.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在RHEL5.5上安装PostgreSql92http://www.aygfsteel.com/kuuyee/archive/2013/04/09/397587.htmlkuuyeekuuyeeTue, 09 Apr 2013 07:55:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2013/04/09/397587.htmlhttp://www.aygfsteel.com/kuuyee/comments/397587.htmlhttp://www.aygfsteel.com/kuuyee/archive/2013/04/09/397587.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/397587.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/397587.htmlRHEL5.5默认的源里没有postgresql9的包Q需要下载源。下载地址 Q?a style="color: #0088cc; text-decoration: none;">http://yum.postgresql.org/9.2/redhat/rhel-5-x86_64/pgdg-redhat92-9.2-7.noarch.rpm

然后安装?/p>

rpm -ivh pgdg-redhat92-9.2-7.noarch.rpm 

最后安装postgresql92

yum install postgresql92 postgresql92-server postgresql92-devel 

初始化数据库

service postgresql-9.2 initdb Initializing database:                                     [  OK  ]

启动数据?/p>

/etc/init.d/postgresql-9.2 start Starting postgresql-9.2 service:                           [  OK  ]

查看数据状?/p>

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 



kuuyee 2013-04-09 15:55 发表评论
]]>
讄Linux用户无口令登陆方?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2013/03/20/396700.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/396700.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2013/03/20/396700.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/396700.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/396700.html</trackback:ping><description><![CDATA[     摘要: 有些时候需要用戯够无密码登陆Q解攑֊法很单,如下Q?<br>切换到root用户Q修?etc/shadow文g?<br>chmod 644 /etc/shadow <br>vim /etc/shadow   <a href='http://www.aygfsteel.com/kuuyee/archive/2013/03/20/396700.html'>阅读全文</a><img src ="http://www.aygfsteel.com/kuuyee/aggbug/396700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2013-03-20 09:08 <a href="http://www.aygfsteel.com/kuuyee/archive/2013/03/20/396700.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Fedora18 KDE定制版安装记?/title><link>http://www.aygfsteel.com/kuuyee/archive/2013/01/29/394882.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Tue, 29 Jan 2013 06:37:00 GMT</pubDate><guid>http://www.aygfsteel.com/kuuyee/archive/2013/01/29/394882.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/394882.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2013/01/29/394882.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/394882.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/394882.html</trackback:ping><description><![CDATA[<p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>Z么是KDEQ因为实在忍受不?jin)Gnome3?jin)?a style="color: #0088cc; text-decoration: initial;">Z么我弃用GNOME转向KDE</a>q篇文章很全面了(jin)Gnome的不I而KDE才是真正l用户用的桌面Q基本上不输lWin7Q如果你是Linuxer,投入KDE怀抱吧Q?/strong></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;">U下我的桌面!</p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/r_fedora18-kde-instll_00_min.jpg" title="Fedora18 KDE" alt="Fedora18 KDE" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="640" height="360" /></p> <h4>下蝲LiveCD</h4> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><a style="color: #0088cc; text-decoration: initial;">http://download.fedoraproject.org/pub/fedora/linux/releases/18/Live/x86_64/Fedora-18-x86_64-Live-KDE.iso</a><br /> <a style="color: #0088cc; text-decoration: initial;">https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.11.7-setup.exe</a> <br /> liveusb-creator用来创徏USB安装介质QKDE安装盘不大Q就800多MB?/p> <h4>开始安?/h4> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;">插入烧录好的USBQ重启电(sh)脑选择USB启动,看到如下启动面Q?br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_01_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="595" height="408" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>q入LiveCD桌面Q点?yn)L面上的Install to Hard Drive安装图标,如下图:(x)</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_02_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="801" height="601" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>选择中文语言</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_03_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="802" height="603" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>q入安装摘要面Q主要是讄存储</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_04_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="801" height="600" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>点击安装目标位置Q进入磁盘选择?/strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_05_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="798" height="599" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>选中安装盘点l?/strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_06_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="801" height="600" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>在安装选项里把自定义磁盘分区勾上,然后点击回收I间</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_07_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="801" height="395" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>q入手动分区,点击自动创徏q接Q如下图Q?/strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_08_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="798" height="399" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>直接使用Fedora默认的分区方案,不用做Q何更改(除非你想自定义分区方案)(j)点击l束分区</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/r_fedora18-kde-instll_09_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="640" height="479" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>完成存储讄Q点d始安?/strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_10_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="801" height="601" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>q入安装q度Q同时设|root密码</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_11_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="800" height="599" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>完成安装Q重启系l!</strong><br /> <img src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/53286/o_fedora18-kde-instll_12_min.jpg" title="Fedora18 KDE LiveCD" alt="Fedora18 KDE LiveCD" style="max-width: 100%; vertical-align: middle; border-width: 0px; " width="802" height="601" /></p> <p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>Congratulations!</strong> 安装完成Q先写到q,安装成功的童鞋可以先随便玩玩Q后l的内容我会(x)逐渐告诉大家如何把KDE打造成实用而且漂亮的桌面?br /></p><div><p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"><strong>待箋…</strong></p><p style="margin: 0px 0px 1.5em; font-size: 16.363636016845703px; color: #333333; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 20px; background-color: #ffffff;"></p></div><p> </p><img src ="http://www.aygfsteel.com/kuuyee/aggbug/394882.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2013-01-29 14:37 <a href="http://www.aygfsteel.com/kuuyee/archive/2013/01/29/394882.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>下一代静态网站生成框架Awestruct在Fedora18安装全过E?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2013/01/24/394698.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/394698.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2013/01/24/394698.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/394698.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/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是非常棒的静态网站生成框Ӟ他基于JekyllQ用Ruby语言开发。Awestruct可以Ҏ(gu)模板生成非常漂亮的网站,例如可以用BootStrap或者BluePrintQ这两个大名鼎鼎的东东不用多说了(jin)吧,地球人都知道。废话不多说Q进入主题?/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;">首先安装一些依赖库Q否则安装Awestruct?x)报如下的错误?x)</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="下一代静态网站生成工? >下一代静态网站生成工?/a>: <br />        ERROR: Failed to build gem native extension. . <br />        /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 />        --with-opt-dir <br />        --without-opt-dir <br />        --with-opt-include <br />        --without-opt-include=${opt-dir}/include <br />        --with-opt-lib <br />        --without-opt-lib=${opt-dir}/lib <br />        --with-make-prog <br />        --without-make-prog <br />        --srcdir=. <br />        --curdir <br />        --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 />        from /usr/share/ruby/mkmf.rb:506:in `try_cpp' <br />        from /usr/share/ruby/mkmf.rb:931:in `block in have_header' <br />        from /usr/share/ruby/mkmf.rb:790:in `block in checking_for' <br />        from /usr/share/ruby/mkmf.rb:284:in `block (2 levels) in postpone' <br />        from /usr/share/ruby/mkmf.rb:254:in `open' <br />        from /usr/share/ruby/mkmf.rb:284:in `block in postpone' <br />        from /usr/share/ruby/mkmf.rb:254:in `open' <br />        from /usr/share/ruby/mkmf.rb:280:in `postpone' <br />        from /usr/share/ruby/mkmf.rb:789:in `checking_for' <br />        from /usr/share/ruby/mkmf.rb:930:in `have_header' <br />        from extconf.rb:2:in `<main>'</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;">开始安装依赖库Q用 <strong>root</strong> 用户或?nbsp;<strong>su</strong> 执行如下命o(h)Q?/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的粉丝,对不住用其它发行版的童鞋?jin),误行根据我列出的安装包扑ֈ对应的系l安装方法?/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;<strong>su</strong> 执行如下命o(h)Q?/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版本Q?/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理安装Q用 <strong>root</strong> 用户或?nbsp;<strong>su</strong> 执行如下命o(h)Q?/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="下一代静态网站生成工? >下一代静态网站生成工?/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;">l果报如下错?</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="下一代静态网站生成工? >下一代静态网站生成工?/a>: <br />        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;">q个问题让我郁闷?jin)N久时_(d)Google?jin)大半天Q还Ҏ(gu)搞了(jin)FANQIANGQ结果死z装不上nokogiri。最后通过Yum来解?我只能说RubyGems安装很无耻!q是YUM好!Q命令如下:(x)</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;">再次安装AwestructQ?/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;">盼望已久的时L_(d)如果哪位童鞋看到如下的输出,CongratulationsQ?/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="下一代静态网站生成工? >下一代静态网站生成工?/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;">不过别高兴太早,先适用下是否OKQ用BootStrap模板生一个新的静态网站,命o(h)如下Q?/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="下一代静态网站生成工? >下一代静态网站生成工?/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;">?c)了(jin),q是报错Q?/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="下一代静态网站生成工? >下一代静态网站生成工?/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 />        from /usr/local/share/gems/gems/execjs-1.4.0/lib/execjs.rb:5:in `<module:ExecJS>' <br />        from /usr/local/share/gems/gems/execjs-1.4.0/lib/execjs.rb:4:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'      <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'     <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/handlers/coffeescript_handler.rb:8:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/handler_chains.rb:14:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/pipeline.rb:2:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/engine.rb:6:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/generate.rb:1:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/invoker.rb:4:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/bin/awestruct:6:in `<top (required)>' <br />        from /usr/local/bin/awestruct:23:in `load' <br />        from /usr/local/bin/awestruct:23:in `<main>'</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;">֐思义Q提C没有JavaScript Runtime。lGoogleQ最后一位高人指点说装个JavaScript引擎O(jin)KQ我选择NodeJS。只可惜NodeJSF没有YUM源,只能源码~译安装Q无所谓,l箋:</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 && 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;">又是一阉|O长的{待Q搞不明白一个JS框架怎么要编译这么久Q无语!最后编译完成测试一下:(x)</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,l箋Awestruct试Q?/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="下一代静态网站生成工? >下一代静态网站生成工?/a> -i -f bootstrap <br />/usr/local/share/gems/gems/git-1.2.5/lib/git/lib.rb:700:in `command': git version 2>&1:sh: git: 未找到命?(Git::GitExecuteError) <br />        from /usr/local/share/gems/gems/git-1.2.5/lib/git/lib.rb:649:in `current_command_version' <br />        from /usr/local/share/gems/gems/git-1.2.5/lib/git/lib.rb:659:in `meets_required_version?' <br />        from /usr/local/share/gems/gems/git-1.2.5/lib/git.rb:30:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/deploy/base_deploy.rb:2:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/deploy/s3_deploy.rb:1:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/deploy.rb:1:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/lib/awestruct/cli/invoker.rb:7:in `<top (required)>' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require' <br />        from /usr/local/share/gems/gems/awestruct-0.4.7/bin/awestruct:6:in `<top (required)>' <br />        from /usr/local/bin/awestruct:23:in `load' <br />        from /usr/local/bin/awestruct:23:in `<main>'</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;">竟然qTMD报错Q不q这回不用急,只是提示没装GitQ好办!那就装呗Q?/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;">再lAwestructQ?/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="下一代静态网站生成工? >下一代静态网站生成工?/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="下一代静态网站生成工? >下一代静态网站生成工?/a>! To generate your site continuous during development, simply run: <a title="下一代静态网站生成工? >下一代静态网站生成工?/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> q回真的恭喜你了(jin)Q赶紧部|一下:(x)</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="下一代静态网站生成工? >下一代静态网站生成工?/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 '~> 0.8.8')! Please run the following to satisfy the dependency: gem install --version '~> 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. . >> Thin web server (v1.4.1 codename Chromeo) >> Maximum connections set to 1024 >> 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;">打开 <a href="http://localhost:4242/" style="color: #0088cc; text-decoration: initial;">http://localhost:4242/</a> 看看吧!</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;">l心的童鞋一定会(x)注意到部|输出有警告Q我是属于不想看CQ何警告的人,所以还得l,清楚警告Q?/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 '~> 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;">再次部v讉K׃?x)有警告了(jin)?/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>大功告成Q祝愿各位童鞋安装成功!</strong></p><img src ="http://www.aygfsteel.com/kuuyee/aggbug/394698.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2013-01-24 13:39 <a href="http://www.aygfsteel.com/kuuyee/archive/2013/01/24/394698.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ORACLE 11g在Linux下手工配|EMhttp://www.aygfsteel.com/kuuyee/archive/2012/04/05/373355.htmlkuuyeekuuyeeThu, 05 Apr 2012 03:08:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2012/04/05/373355.htmlhttp://www.aygfsteel.com/kuuyee/comments/373355.htmlhttp://www.aygfsteel.com/kuuyee/archive/2012/04/05/373355.html#Feedback1http://www.aygfsteel.com/kuuyee/comments/commentRss/373355.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/373355.html

使用OTK工具安装的Oracle默认没有配置EMQ下面记录下配置和启动过E?

首先创徏EMQ执行下面的命o(h)

$ emca -config dbcontrol db -repos recreate

我第一ơ运行报如下错误Q?br />

Mar 312012 4:16:06 PM oracle.sysman.emcp.EMReposConfig createRepository
CONFIG: ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.SOURCE$ by 128 in tablespace SYSTEM
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.SOURCE$ by 128 in tablespace SYSTEM
        at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1650)
        at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:1000)
        at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:339)
        at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:380)
        at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:510)
        at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:228)
        at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
        at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
        at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
        at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
        at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
        at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Mar 312012 4:16:06 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository


解决办法

使用SYS用户dsqlplusQ然后执行下面的语句Q?/p>

 SQL> SELECT * FROM DBA_DATA_FILES where TABLESPACE_NAME = 'SYSTEM'; 
FILE_NAME FILE_ID TABLESPACE_NAME
BYTES BLOCKS STATUS RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
ONLINE_ /data01/rdbms/wcdb/datafile/wcdb_system_01.dbf 1 SYSTEM 536870912 65536 AVAILABLE
1 NO 0 0 0 535822336 65408
SYSTEM

然后新定义个I间文gwcdb_system_02.dbfQ注意不要重?/p>

然后新定义个I间文g*wcdb_system_02.dbf*Q注意不要重?/p>

SQL> ALTER TABLESPACE SYSTEM ADD DATAFILE '/data01/rdbms/wcdb/datafile/wcdb_system_02.dbf' SIZE 500M; Tablespace altered.

然后再次执行EM创徏成功Q?/p>

EM的访问地址Q?a href="https://host:1158/em" style="color: fuchsia; ">https://localhost:1158/em

删除一个EM资料?/strong>

$ emca -repos drop

配置数据库的 Database Control

$ emca -config dbcontrol db

删除数据库的 Database Control配置

$ emca -deconfig dbcontrol db

重新配置db control的端口,默认端口?158

$ emca -reconfig ports $ emca -reconfig ports -dbcontrol_http_port 1160 $ emca -reconfig ports -agent_port 3940

先设 |ORACLE_SID环境变量?启动EM console服务

$ emctl start dbconsole

先设|?ORACLE_SID环境变量?停止EM console服务

$ emctl stop dbconsole

先设|ORACLE_SID?境变量后,查看EM console服务的状?/strong>

$ emctl status dbconsole


kuuyee 2012-04-05 11:08 发表评论
]]>
一个速度比较快的Cygwin镜像http://www.aygfsteel.com/kuuyee/archive/2011/10/17/361490.htmlkuuyeekuuyeeMon, 17 Oct 2011 15:43:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2011/10/17/361490.htmlhttp://www.aygfsteel.com/kuuyee/comments/361490.htmlhttp://www.aygfsteel.com/kuuyee/archive/2011/10/17/361490.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/361490.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/361490.html此记录q接


kuuyee 2011-10-17 23:43 发表评论
]]>
CentOS5.4安装Trac记录http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360212.htmlkuuyeekuuyeeSat, 08 Oct 2011 09:52:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2011/10/08/360212.htmlhttp://www.aygfsteel.com/kuuyee/comments/360212.htmlhttp://www.aygfsteel.com/kuuyee/archive/2011/10/08/360212.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/360212.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/360212.html

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-4.noarch.rpm
yum install libffi -y
yum install python26 -y
rm -f /usr/bin/python
ln -s /usr/bin/python26 /usr/bin/python
vim /usr/bin/yum
python -V
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
easy_install Babel==0.9.5
easy_install Trac
trac-admin easyci_project initenv
tracd --port 8000 /easyci/trac/easyci_project
trac-admin /easyci/trac/easyci_project permission add admin TRAC_ADMIN



kuuyee 2011-10-08 17:52 发表评论
]]>
(转蝲)CentOS中简单用yum升 Python ?.6http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360206.htmlkuuyeekuuyeeSat, 08 Oct 2011 09:26:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2011/10/08/360206.htmlhttp://www.aygfsteel.com/kuuyee/comments/360206.htmlhttp://www.aygfsteel.com/kuuyee/archive/2011/10/08/360206.html#Feedback1http://www.aygfsteel.com/kuuyee/comments/commentRss/360206.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/360206.htmlhttp://vpshello.com/upgrade-python-to-26-with-yum/

写了(jin)不少VPS评测Q今天发个简单的技术帖?/p>

CentOS 在当前最新的 5.6 版中Q其 python 的版本依然比较落后,q是古老的 2.4?/p>

但是有些E序需?2.6 才跑得v来,~译安装的话Q又太麻?ch),而且不适合菜鸟使用?/p>

下面qZ?yum 升 python ?2.6 的简单方案?/p>

   1: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm

   2: yum install libffi -y

   3: yum install python26 -y

   4: rm -f /usr/bin/python

   5: ln -s /usr/bin/python26 /usr/bin/python

如果?64 位的 CentOSQ则上q第一句代码中?i386 改ؓ(f) x86_64 卛_?/p>

q行完毕后,此时pȝ默认?python 已经?2.6 版了(jin)?/p>

然而,yum 是基?python2.4 的,因此?x)出现故障。解x法也很简单:(x)

   1: nano /usr/bin/yum

第一行末?python 后加?2.4Q即第一行改为:(x)

#!/usr/bin/python2.4

q样Qyum 依然使用 python 2.4 环境q行Q一切恢复正常?/p>

此时我们输入 python -V 卛_看到当前?python 版本Q?/p>

   1: # python -V

   2: Python 2.6.5



kuuyee 2011-10-08 17:26 发表评论
]]>
Cygwin单配|?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2011/10/08/360190.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/360190.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360190.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/360190.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/360190.html</trackback:ping><description><![CDATA[     摘要: 首先安装cygwin,q部很简单在此不描述?l出下蝲链接http://cygwin.com/setup.exe 记得装上vim和OpenSShq有cygrunsrv  <a href='http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360190.html'>阅读全文</a><img src ="http://www.aygfsteel.com/kuuyee/aggbug/360190.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2011-10-08 14:26 <a href="http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360190.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>(转蝲)Redhat linux下调整系l时?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2011/08/30/357568.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/357568.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2011/08/30/357568.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/357568.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/357568.html</trackback:ping><description><![CDATA[<div><div> <div class="wmqeeuq" id="blog_text"> <div>原文链接:<a >http://yoozhu.com/?p=232</a><br /><br />最q公司的服务器时间慢?jin),惌整一下。试?jin)好多次QM成功Q经q几天的努力Q终于成功了(jin)。现在把我的做法写下来,让后来的同仁走弯\?/div> <div> </div> <div><strong>1.先修Ҏ(gu)?/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.(g)查硬?CMOS)旉</strong><br /> clock -r</div> <div><strong>4.系l时间写入CMOS</strong><br /> clock -w</div> <div>最后两步一般hҎ(gu)忘记Q所以Lp|。呵c(din)?/div> </div> </div></div><img src ="http://www.aygfsteel.com/kuuyee/aggbug/357568.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2011-08-30 14:33 <a href="http://www.aygfsteel.com/kuuyee/archive/2011/08/30/357568.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一条命令搞定svg扚w格式转换http://www.aygfsteel.com/kuuyee/archive/2011/05/17/350370.htmlkuuyeekuuyeeTue, 17 May 2011 01:12:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2011/05/17/350370.htmlhttp://www.aygfsteel.com/kuuyee/comments/350370.htmlhttp://www.aygfsteel.com/kuuyee/archive/2011/05/17/350370.html#Feedback1http://www.aygfsteel.com/kuuyee/comments/commentRss/350370.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/350370.html阅读全文

kuuyee 2011-05-17 09:12 发表评论
]]>
Linux下列出所有子目录?qing)磁盘占用情?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2011/04/25/348985.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/348985.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2011/04/25/348985.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/348985.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/348985.html</trackback:ping><description><![CDATA[今天<a >Jenkins</a>(以前叫Hudson)CI服务器突然挂?jin),排查了(jin)半天发现磁盘已l?00%Q真后?zhn)当初没把盘讑֤点,其实可以用LVM调整一下,但是心里q是没底Q怕把数据都丢׃(jin)Q决定以后再调整盘分配。目前先吧Jenkins下没用的目都干掉,可以腑և很多I间?br /> <br /> 我们都知道?strong><span style="color: #0000cd">du</span></strong>命o(h)可以查看目录Q例如查?span style="color: #0000cd"><strong>/home/kuuyee</strong></span>目录占用盘I间大小可以使用下面的命令:(x)<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.aygfsteel.com/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"> du /home/kuuyee -sh               </span><span style="color: #008000"><br /> </span><span style="color: #008080">2</span><span style="color: #008000"><img alt="" align="top" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">333M    </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 /> 但是有个问题Q我的Jenkins目录下有上百个构建项目,一个一个的差看目录占用情况太麻?ch)?jin)Qgoogle?jin)一下找C个办法:(x)<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.aygfsteel.com/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"> du /home --max-depth=1 -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.aygfsteel.com/images/OutliningIndicators/None.gif" /></span><span style="color: #000000">125M    </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.aygfsteel.com/images/OutliningIndicators/None.gif" />333M    </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.aygfsteel.com/images/OutliningIndicators/None.gif" />457M    </span><span style="color: #000000">/</span><span style="color: #000000">home</span></div> <br /> q样的话吧所有的子目录的盘占用情况都列出来?q里?span style="color: #0000cd"><strong>--max-depth</strong></span>参数代表着要列出目录的深度Q如果要列出两目录p|ؓ(f)<span style="color: #b22222"><strong>2</strong></span>Q以此类推?br /> 如果惛_l果输出到文仉可以q样Q?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.aygfsteel.com/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"> du /home --max-depth=1 -h > disk_status.txt</span></div> <br /> <p>下面l出du命o(h)的用法及(qing)参数说明Q?/p> <p style="font-size: 12pt"><strong>用法Qdu [选项]… [文g]…<br /> 或:(x)du [选项]… –files0-from=F<br /> ȝ每个<文g>的磁盘用量,目录则取ȝ量?/strong></p> <p><strong>参数含义如下Q?/strong><br /> <span style="color: #0000cd"><strong>-s</strong></span> Ҏ(gu)个Names参数只给出占用的数据块L?br /> <span style="color: #0000cd"><strong>-a</strong></span> 递归地显C指定目录中各文件及(qing)子孙目录中各文g占用的数据块数。若既不指定-sQ也不指?aQ则只显CNames中的每一个目录及(qing)其中的各子目录所占的盘块数?br /> <span style="color: #0000cd"><strong>-b</strong></span> 以字节ؓ(f)单位列出盘I间使用情况Q系l缺省以 k 字节为单位)(j)?br /> <span style="color: #0000cd"><strong>-k</strong></span> ?024字节为单位列出磁盘空间用情c(din)?br /> <span style="color: #0000cd"><strong>-c</strong></span> 最后再加上一个总计Q系l缺省设|)(j)?br /> <span style="color: #0000cd"><strong>-l</strong></span> 计算所有的文g大小?/p><img src ="http://www.aygfsteel.com/kuuyee/aggbug/348985.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2011-04-25 17:46 <a href="http://www.aygfsteel.com/kuuyee/archive/2011/04/25/348985.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>批处理中获取当前路径http://www.aygfsteel.com/kuuyee/archive/2011/04/22/348762.htmlkuuyeekuuyeeFri, 22 Apr 2011 01:37:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2011/04/22/348762.htmlhttp://www.aygfsteel.com/kuuyee/comments/348762.htmlhttp://www.aygfsteel.com/kuuyee/archive/2011/04/22/348762.html#Feedback3http://www.aygfsteel.com/kuuyee/comments/commentRss/348762.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/348762.html废话不多?直接看例子:(x)
1 @echo off
2 echo 当前盘符Q?/span>%~d0
3 echo 当前盘符和\径:(x)%~dp0
4 echo 当前批处理全路径Q?/span>%~f0
5 echo 当前盘符和\径的短文件名格式Q?/span>%~sdp0
6 echo 当前CMD默认目录Q?/span>%cd%
7 pause


kuuyee 2011-04-22 09:37 发表评论
]]>两条命o(h)搞定CentOS5.4中PHP的版本升U?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2011/03/04/345739.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/345739.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2011/03/04/345739.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/345739.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/345739.html</trackback:ping><description><![CDATA[     摘要: 著名的内容管理程序Prupal发布?.0?军_试用? <br>安装q程遇到PHP版本q低的问?CentOS5.4自带的PHP?.1.6?而Drupal7要求PHP必须?.2.3以上. <br>  <a href='http://www.aygfsteel.com/kuuyee/archive/2011/03/04/345739.html'>阅读全文</a><img src ="http://www.aygfsteel.com/kuuyee/aggbug/345739.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2011-03-04 17:43 <a href="http://www.aygfsteel.com/kuuyee/archive/2011/03/04/345739.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Git试用http://www.aygfsteel.com/kuuyee/archive/2011/03/03/345587.htmlkuuyeekuuyeeThu, 03 Mar 2011 05:22:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2011/03/03/345587.htmlhttp://www.aygfsteel.com/kuuyee/comments/345587.htmlhttp://www.aygfsteel.com/kuuyee/archive/2011/03/03/345587.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/345587.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/345587.html之​前​一​直​用​Subversion作​ؓ(f)​版​本​管​理?今​天​就​拿​Jenkins​目​试​用​一​下​Gitq​个​分​布​式​的​版​本​管​理​工​具?  阅读全文

kuuyee 2011-03-03 13:22 发表评论
]]>
CentOS下KVM试用http://www.aygfsteel.com/kuuyee/archive/2010/12/07/339987.htmlkuuyeekuuyeeTue, 07 Dec 2010 07:32:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2010/12/07/339987.htmlhttp://www.aygfsteel.com/kuuyee/comments/339987.htmlhttp://www.aygfsteel.com/kuuyee/archive/2010/12/07/339987.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/339987.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/339987.html基​础​系​统​选​用​CentOS5.4Q下​面​列​出​具​体​的​安​装​配​置​过​程?  阅读全文

kuuyee 2010-12-07 15:32 发表评论
]]>
q程调试Tomcat7下的应用http://www.aygfsteel.com/kuuyee/archive/2010/12/03/339730.htmlkuuyeekuuyeeFri, 03 Dec 2010 09:46:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2010/12/03/339730.htmlhttp://www.aygfsteel.com/kuuyee/comments/339730.htmlhttp://www.aygfsteel.com/kuuyee/archive/2010/12/03/339730.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/339730.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/339730.html 

q程调试Tomcat7下的应用

kuuyee  |  2010-12-03  |  Tomcat   debug  

首先在Tomcat的bin目录下修改catalina.sh,加入JAVA_OPTS参数:

JPDA_ADDRESS=20777 JAVA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20777'

其中JPDA_ADDRESS要指定一个没有被占用的端?如果不指?默认值是8000

然后用下面的方式启动tomcatQ?/p>

catalina.sh jpda start

最后启动EclipseQ选择你想要Debug的类q设|断点,然后选择Debug工具栏下的Debug子菜?Debug…)Q在弹出的DebugH口中,在左边的菜单中选择q程调试(Remote Java Application)Q然后输入机器名和端口,比如?92.168.1.1?0777Q然后Applyq且开始Debug

2010-12-03

 



kuuyee 2010-12-03 17:46 发表评论
]]>
转蝲 linux下将q程盘mount到本?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2010/12/01/339525.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/339525.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2010/12/01/339525.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/339525.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/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 微Y雅黑; 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 >http://shenjoshua.spaces.live.com/blog/cns!5CC44EF3358EA7F2!183.entry</a><br /> 问题Q?br style="line-height: 17px" /> 现需要把一台服务器上的几个目录׃nl其他几台机器用,q些机器的操作系l都是Linux?/font></div> <div style="line-height: 17px"><font style="line-height: normal" size="2">实现的办法:(x)<br style="line-height: 17px" /> 使用nfs服务Q在客户端mount服务器的文g夏V?/font></div> <div style="line-height: 17px"><font style="line-height: normal" size="2">操作步骤Q?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" /> q行ntsysvQ把nfs和portmap加入到启动服务中?/font></div> <div style="line-height: 17px"><font style="line-height: normal" size="2">2.在服务器~辑配置文g/etc/exports<br style="line-height: 17px" /> 如果你需要共?data目录l?0.10.10.10q个ipQ可以加上如下的配置语句Q?br style="line-height: 17px" /> /data   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.在客L(fng)启动portmap服务<br style="line-height: 17px" /> service portmap start</font></div> <div style="line-height: 17px"><font style="line-height: normal" size="2">5.在客L(fng)mountq程文g?/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 id="wmqeeuq" class="Apple-converted-space"> </span></font></div> </span></span><img src ="http://www.aygfsteel.com/kuuyee/aggbug/339525.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2010-12-01 16:55 <a href="http://www.aygfsteel.com/kuuyee/archive/2010/12/01/339525.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>LoadRunner 监控CentOSW记http://www.aygfsteel.com/kuuyee/archive/2010/11/26/339143.htmlkuuyeekuuyeeFri, 26 Nov 2010 09:05:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2010/11/26/339143.htmlhttp://www.aygfsteel.com/kuuyee/comments/339143.htmlhttp://www.aygfsteel.com/kuuyee/archive/2010/11/26/339143.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/339143.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/339143.html

先安装所需的Y?/p>


yum install rsh-server rusers-server


 然后启动服务

service xinetd reload

/etc/init.d/./rstatd start


可以用roadrunnerq接监控?/p>

 



kuuyee 2010-11-26 17:05 发表评论
]]>
CentOS mail http://www.aygfsteel.com/kuuyee/archive/2010/04/20/318896.htmlkuuyeekuuyeeTue, 20 Apr 2010 13:20:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2010/04/20/318896.htmlhttp://www.aygfsteel.com/kuuyee/comments/318896.htmlhttp://www.aygfsteel.com/kuuyee/archive/2010/04/20/318896.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/318896.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/318896.html

kuuyee 2010-04-20 21:20 发表评论
]]>
kvmhttp://www.aygfsteel.com/kuuyee/archive/2010/02/26/313995.htmlkuuyeekuuyeeFri, 26 Feb 2010 06:18:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2010/02/26/313995.htmlhttp://www.aygfsteel.com/kuuyee/comments/313995.htmlhttp://www.aygfsteel.com/kuuyee/archive/2010/02/26/313995.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/313995.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/313995.html

kuuyee 2010-02-26 14:18 发表评论
]]>
CentOS5.3讑֮静态IPhttp://www.aygfsteel.com/kuuyee/archive/2009/09/22/296016.htmlkuuyeekuuyeeTue, 22 Sep 2009 05:52:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2009/09/22/296016.htmlhttp://www.aygfsteel.com/kuuyee/comments/296016.htmlhttp://www.aygfsteel.com/kuuyee/archive/2009/09/22/296016.html#Feedback1http://www.aygfsteel.com/kuuyee/comments/commentRss/296016.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/296016.html首先q入/etc/sysconfig/network-scripts/

~辑内容如下Q?/p>
DEVICE=eth0
BOOTPROTO
=static
HWADDR
= MAC地址Q这个一般都识别出来?jin),不用?br /> IPADDR= IP地址
NETMASK
= 子网掩码
GATEWAY
= |关

然后讑֮DNS,~辑文g/etc/resolv.conf如下Q?/p>

nameserver W一DNS
nameserver 备用DNS

然后重启|络服务

service network restart

OK,ifconfig一下就应该看到IP地址已经讑֮?/p>

kuuyee 2009-09-22 13:52 发表评论
]]>
Linux下挂载远EWindows׃n目录http://www.aygfsteel.com/kuuyee/archive/2009/09/04/293925.htmlkuuyeekuuyeeFri, 04 Sep 2009 10:18:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2009/09/04/293925.htmlhttp://www.aygfsteel.com/kuuyee/comments/293925.htmlhttp://www.aygfsteel.com/kuuyee/archive/2009/09/04/293925.html#Feedback3http://www.aygfsteel.com/kuuyee/comments/commentRss/293925.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/293925.html环境QCentOS5.3
q程Windows IPQ?92.168.1.20 (user/passwordQadministrator/123456) ׃n目录为c:\Download
CentOS挂蝲目录Q?mnt/share (必须首先创徏?

挂蝲步骤Q?br /> 1。创?mnt/share

mkdir -/mnt/share


2。挂载远Ewindows目录

mount -t cifs -o username=administrator,password=123456 192.168.1.20:Download /mnt/share


OK,?mnt/share下应该可以看到Download下的内容?jin)?/p>

kuuyee 2009-09-04 18:18 发表评论
]]>
ubuntu指定静态IPhttp://www.aygfsteel.com/kuuyee/archive/2009/09/03/293754.htmlkuuyeekuuyeeThu, 03 Sep 2009 08:38:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2009/09/03/293754.htmlhttp://www.aygfsteel.com/kuuyee/comments/293754.htmlhttp://www.aygfsteel.com/kuuyee/archive/2009/09/03/293754.html#Feedback1http://www.aygfsteel.com/kuuyee/comments/commentRss/293754.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/293754.html
指定静态IP的方法如下:(x)

1.~辑/etc/network/interfaces,内容如下
auto eth0
iface eth0 inet static
address  
192.168.1.100    Q静态ip
gateway  
192.168.1.1      #|关
netmask  255.255.255.0    #子网掩码

2.~辑/etc/resolv.confQ指定DNS
nameserver 192.168.1.1

3.重新启动|络服务
/etc/init.d/networking restart

OK,IP已经指定Q?img src ="http://www.aygfsteel.com/kuuyee/aggbug/293754.html" width = "1" height = "1" />

kuuyee 2009-09-03 16:38 发表评论
]]>
vSphere使用中的vCenter链接L的问?/title><link>http://www.aygfsteel.com/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.aygfsteel.com/kuuyee/archive/2009/09/03/293718.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/293718.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2009/09/03/293718.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/293718.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/293718.html</trackback:ping><description><![CDATA[使用vCenter链接新安装的vSphereL?x)报如下错?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.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">Unable to </span><span style="color: #0000ff">connect</span><span style="color: #000000"> to the MKS</span><span style="color: #000000">:</span><span style="color: #000000"> Cannot </span><span style="color: #0000ff">connect</span><span style="color: #000000"> to </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到vSphereLQ编?etc/vmware/config,d如下内容<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.aygfsteel.com/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 /> 重启vSphereLQ问题解冟?img src ="http://www.aygfsteel.com/kuuyee/aggbug/293718.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2009-09-03 11:42 <a href="http://www.aygfsteel.com/kuuyee/archive/2009/09/03/293718.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vSphere使用中的两个问题http://www.aygfsteel.com/kuuyee/archive/2009/08/26/292620.htmlkuuyeekuuyeeWed, 26 Aug 2009 03:33:00 GMThttp://www.aygfsteel.com/kuuyee/archive/2009/08/26/292620.htmlhttp://www.aygfsteel.com/kuuyee/comments/292620.htmlhttp://www.aygfsteel.com/kuuyee/archive/2009/08/26/292620.html#Feedback0http://www.aygfsteel.com/kuuyee/comments/commentRss/292620.htmlhttp://www.aygfsteel.com/kuuyee/services/trackbacks/292620.html 问题原因
一般是WebAccess没有启动

解决办法
dvSphere,使用下面命o(h)查看webAccess状?br />
service vmware-webAccess status

如果状态是stopQ则用下面命令启?br />
service vmware-webAccess start

2.不能用root用户q程d
问题原因
ssh默认不允许rootq程讉K?br />
解决办法
配置sshdQ开启rootq程讉K。登录vSphereLQ编辑如下文?br />
/etc/ssh/sshd_config

修改
PermitRootLogin no
?br />
PermitRootLogin yes
重启sshd服务
service sshd restart

OKQ问题搞定?br />

kuuyee 2009-08-26 11:33 发表评论
]]>
向Docbook5.0q渡pd(2)-lImage加链?/title><link>http://www.aygfsteel.com/kuuyee/archive/2009/08/02/289464.html</link><dc:creator>kuuyee</dc:creator><author>kuuyee</author><pubDate>Sun, 02 Aug 2009 07:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/kuuyee/archive/2009/08/02/289464.html</guid><wfw:comment>http://www.aygfsteel.com/kuuyee/comments/289464.html</wfw:comment><comments>http://www.aygfsteel.com/kuuyee/archive/2009/08/02/289464.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/kuuyee/comments/commentRss/289464.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/kuuyee/services/trackbacks/289464.html</trackback:ping><description><![CDATA[在docbook内添加一个图片很单,使用<mediaobject>元素卛_Q该元素q包括处理video, audio{对象。好下面看下CZQ?br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">    </span><span style="color: #0000ff;"><</span><span style="color: #800000;">mediaobject</span><span style="color: #0000ff;">></span><span style="color: #000000;">   <br />         </span><span style="color: #0000ff;"><</span><span style="color: #800000;">imageobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"><</span><span style="color: #800000;">imagedata </span><span style="color: #ff0000;">fileref</span><span style="color: #0000ff;">="images/img1.png"</span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"></</span><span style="color: #800000;">imageobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"></</span><span style="color: #800000;">mediaobject</span><span style="color: #0000ff;">></span></div> <br /> 但是如果惌在图片上加链?lt;<span style="color: #800000;">mediaobject</span>>元素无能ؓ(f)力了(jin)?br /> <br /> 查了(jin)查docbook5.0的文档,扑ֈ一个可以加链接的替代元?lt;<span style="color: #800000;">inlinemediaobject</span>>Q但是有一点必L意,元素必须要又<link>配合才可以拥有链接能?br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">    </span><span style="color: #0000ff;"><</span><span style="color: #800000;">para</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"><</span><span style="color: #800000;">link </span><span style="color: #ff0000;">xlink:href</span><span style="color: #0000ff;">="http://java.sun.com/docs/books/tutorialJWS/uiswing/learn/ex6/CelsiusConverter.jnlp"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"><</span><span style="color: #800000;">inlinemediaobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"><</span><span style="color: #800000;">imageobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />                 </span><span style="color: #0000ff;"><</span><span style="color: #800000;">imagedata </span><span style="color: #ff0000;">fileref</span><span style="color: #0000ff;">="images/jws-launch-button.png"</span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"></</span><span style="color: #800000;">imageobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"><</span><span style="color: #800000;">textobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />                 </span><span style="color: #0000ff;"><</span><span style="color: #800000;">phrase</span><span style="color: #0000ff;">></span><span style="color: #000000;">Java™ Web Start</span><span style="color: #0000ff;"></</span><span style="color: #800000;">phrase</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"></</span><span style="color: #800000;">textobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"></</span><span style="color: #800000;">inlinemediaobject</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"></</span><span style="color: #800000;">link</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"></</span><span style="color: #800000;">para</span><span style="color: #0000ff;">></span></div> OkQ这样图片就可以带连接了(jin)。来张图看看<br /> <br /> <img alt="" src="http://www.aygfsteel.com/images/blogjava_net/kuuyee/book_image_link.jpg" height="256" width="676" /><br /><img src ="http://www.aygfsteel.com/kuuyee/aggbug/289464.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/kuuyee/" target="_blank">kuuyee</a> 2009-08-02 15:16 <a href="http://www.aygfsteel.com/kuuyee/archive/2009/08/02/289464.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˿</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank">̶</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ӽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ͽ</a>| <a href="http://" target="_blank">߷</a>| <a href="http://" target="_blank">ʱ</a>| <a href="http://" target="_blank">ϻ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">п</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">±</a>| <a href="http://" target="_blank">ӳ</a>| <a href="http://" target="_blank">ƽ̶</a>| <a href="http://" target="_blank">ӱ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank">ѷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ȫ</a>| <a href="http://" target="_blank">䶨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƴ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>