锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 棣栧厛鍑嗗闃垮ソ濡備笅鐨勫畨瑁呮枃浠訛細 涓嬭澆涓婅堪鏂囦歡騫舵斁鍦?tt>/var/tmp/oracle鐩綍涓嬨傛渶濂借鎶婁綘鐨刌UM婧愭寚鍚戜綘鐨勭郴緇熷畨瑁呭厜鐩樻垨鑰匢SO鏂囦歡銆?/p> 鐢╮oot鐧婚檰錛屾墽琛屽涓嬪懡浠わ細 otk宸茬粡甯垜浠緩绔嬩簡oracle鐢ㄦ埛錛屼笅闈㈤渶瑕佽緗甇racle鐢ㄦ埛瀵嗙爜 榪欎竴姝ユ渶鐖斤紝鏈涓哄ご鐤肩殑鐜渚濊禆闂杞繪澗灝辮В鍐充簡錛侀鍏堣楠岃瘉涓嬩綘鐨勭郴緇熻繕宸粈涔堟病鏈夋弧瓚寵姹傦紝OTK鑴氭湰鎻愪緵浜嗘櫤鑳界殑鐜鏄惁婊¤凍媯鏌? 鏈鍚庣殑緇撹鍛婅瘔浣犵殑緋葷粺鍏辨湁鍑犱釜璀﹀憡錛堟垜鐨勭郴緇熸槸7涓級錛屼綘鍙互鍦ㄨ緭鍑烘棩蹇椾腑鏌ョ湅鍒板簳緙轟簡浠涔堛備笅闈㈢殑涓緇勫懡浠ゅ緢閰鳳紝璁╀綘涓涓嬪瓙瑙e喅鎵鏈夌殑闂: OTK鎻愪緵浜嗕竴涓紭鍖栧寮虹殑sqlplus鐜錛?/p> 鍒囨崲鍒?tt>/opt/oracle/otk/current/conf/installManager鐩綍錛岀紪杈?tt>osSetup11gR2.cfg鏉ラ厤緗畨瑁呭弬鏁幫紝鍖呮嫭鍐呮牳鍙傛暟銆佺洰褰曞垱寤哄強鎵鏈夋巿鏉冪瓑璁劇疆錛屽鏋滀綘鎯抽粯璁ゅ畨瑁呭氨鏃犻渶鏇存敼榪欎釜鏂囦歡銆?/p> otk榛樿璇誨彇oracle瀹夎鏂囦歡鐨勭洰褰曟槸/var/opt/oracle/repository錛宱tk鐨?strong>swInst瀹炰緥瀹夎鍛戒護浼氳鍙栬繖涓洰褰曪細 榪欎竴姝ユ病浠涔堝疄闄呮剰涔夛紝灝辨槸瀹氬埗Oracle鐢ㄦ埛鐧誨綍鐨勬彁紺虹銆?/p> OTK娌℃湁閲囩敤Oracle Universal Installer(OUI)錛岃屾槸鐢?strong>swInst鏉ユ帶鍒舵暣涓畨瑁呰繃紼嬬殑錛?/p> OTK閲囩敤dbSetup鏉ュ垱寤哄疄渚嬶紝棣栧厛瑕佽繘鍏?tt>$INSTALL_CONF鐩綍閰嶇疆瀹炰緥鍙傛暟 鏈枃閲囩敤dbSetup-prod.cfg鐢熶駭鐜妯″紡閰嶇疆錛屾垜浠湅鍒拌繕鏈塪ev(寮鍙戠幆澧?鍜宼est(嫻嬭瘯鐜)錛屼笉榪囨垜娌¤瘯榪囷紝鏈夊叴瓚g殑绔ラ瀷鍙互璇曡瘯銆傛垜鍦ㄤ笂闈㈠垪鍑轟簡鎴戞墍浣滃嚭鐨勯厤緗紝鍘熸枃騫舵病鏈変慨鏀瑰唴瀛樺弬鏁幫紝鎴戜箣鎵浠ヤ慨鏀規槸鍥犱負瀹為檯鐜鍥犱負鍐呭瓨璁劇疆澶皬瀵艱嚧榪愯涓孌墊椂闂存暟鎹簱緇忓父鎸傛帀錛岀粡榪囧嬈$殑璋冭瘯鑰屽緱鍒扮殑緇忛獙鍊鹼紝榪欓噷闇瑕佽鏄庝笅鎴戠殑鏁版嵁搴撻厤緗細 installManager dbSetup dbSetup-prod.cfg鍛戒護寮濮嬪畨瑁呮暟鎹簱瀹炰緥錛屼笉榪囨垜寤鴻浣犳渶濂藉厛閰嶇疆涓嬩綘鐨?tt>/etc/hosts鏂囦歡錛屽姞鍏ヤ笅闈㈢殑鍐呭錛?/p> 鎺ヤ笅鏉ュ氨鏄極闀跨殑絳夊緟錛屽ぇ姒傞渶瑕佸嚑鍗佸垎閽燂紝鍏蜂綋鏍規嵁浣犵殑鏈哄櫒閰嶇疆鎯呭喌銆傚鏋滀綘鏈鍚庣湅鍒板涓嬬殑杈撳嚭錛?/p> Congratulations錛?/strong>浣犲畨瑁呮垚鍔熶簡銆?/p> 涓嬮潰鐧婚檰璇曡瘯錛?/p> OTK鎻愪緵浜嗕竴涓猚tl宸ュ叿鏉ュ府鎴戜滑綆$悊Oracle瀹炰緥錛?/p> 瀹氭椂澶囦喚Job otk騫舵病鏈夊府鎴戜滑鍒涘緩EM鎺у埗鍙幫紝瀵逛簬涔犳儻鐢╓eb綆$悊鐨勭敤鎴峰緢涓嶆柟渚匡紝鎴戜滑闇瑕佹墜宸ュ垱寤猴細 OK錛?澶у姛鍛婃垚錛岀浉淇″悇浣嶇闉嬮兘瀹夎鎴愬姛浜嗭紝OTK鐨勫畨瑁呰繕鏄緢紼沖仴鐨勶紝鑷沖皯鎴戝畨瑁呬簡鍑犲崄嬈¢兘鎴愬姛浜嗭紒 鏈鍚庣鍚勪綅绔ラ瀷濂借繍錛?/p> 涓嬮潰鍒楀嚭root鐩綍涓嬬殑鏂囦歡緇撴瀯 鐩殑鏄櫎浜嗙洰褰晄ubdir2鍜屾枃浠秄ileA.txt鍏跺畠鐨勯兘瑕佸垹闄わ紝濡傛灉涓涓竴涓垹灝辨晥鐜囧お浣庝簡錛孲hell鍛戒護鍙互杞繪澗鐨勮В鍐?/p> 鎵ц鐨勬晥鏋滃涓?/p> 涓昏鍙傝冩枃妗? https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md 瀹夎python,瀹樻柟瑕佹眰鐗堟湰蹇呴』鍦?.5浠ヤ笂錛岃屼笖涓嶆敮鎸?.0,Fedora涓鑸殑鐗堟湰閮藉湪2.7浠ヤ笂錛屽洜姝ょ洿鎺ュ畨瑁呮簮鑷甫鐨勫嵆鍙?/p>
瀹夎瀹屾煡鐪嬩笅鐗堟湰 榪樿紜繚python2鍛戒護鏈夋晥 濡傛灉鎻愮ず 榛樼劧瀹夎ruby2.0, GitLab鎺ㄨ崘鐢?.9.3 榪樿瀹夎Bundler 鍒涘緩涓涓?nbsp; 璁ゞit鐢ㄦ埛鏃犲瘑鐮佺櫥闄?/p>
鍘繪帀鐢ㄦ埛鐨勫徆鍙?/p>
鍔犲叆sudo緇?/p>
鍒囨崲鍒癵it鐢ㄦ埛 鍏嬮殕GitLab Shell 鍒囨崲鍒版渶鏂扮殑鍒嗘敮 鐢熶駭閰嶇疆鏂囦歡 鏇存敼閰嶇疆淇℃伅錛屼竴鑸氨鏀逛笅浣犻儴緗茬殑鍩熷悕鍦板潃gitlab_url 瀹夎 gitlab鏀寔mysql鍜宲ostgresql錛岃繖閲屼互mysql涓轟緥錛宲ostgresql浼氭瘮杈冮夯鐑︼紒 鍒囨崲鍥瀝oot鐢ㄦ埛 瀹夎mysql鍙婂紑鍙戝寘 鍚姩鏁版嵁搴?/p>
鍒濆鍖朑itLab鏁版嵁搴?/p>
嫻嬭瘯gitlab鐢ㄦ埛榪炴帴mysql 緇堜簬鍒癎itLab鐨勫畨瑁呬簡錛岃繘鍏it鐢ㄦ埛 鍏嬮殕GitLab 鍒囨崲鍒?.0紼沖畾鍒嗘敮 棣栧厛緙栬緫/home/git/gitlab/config/database.yml 鎵цrake 閲嶆柊鎵цrake 濡傛灉浣犵湅鍒板涓嬩俊鎭? 鎭枩浣狅紒浣犲凡緇忔垚鍔熷畨瑁匞itLab浜嗭紒鍒繕浜嗚褰曡緭鍑虹殑綆$悊鐢ㄦ埛鍚嶅拰瀵嗙爜錛?/strong> Ok,浣犵幇鍦ㄥ彲浠ヨ闂瓽itLab浜嗭紝榛樿绔彛鏄?@3000@錛?璁塊棶 http://浣犵殑鍩熷悕鎴朓P:3000 鍝堝搱錛佺湅鍒扮櫥闄嗛〉闈簡鍚э紒 杈撳叆綆$悊鐢ㄦ埛鍚嶅拰瀵嗙爜錛佸紑濮嬩韓鍙桮itLab鍚э紒鐩鎬俊寰堝绔ラ瀷閮芥湁榪囧湪Linux涓婂畨瑁匫racle鏁版嵁搴撶殑鐥涜嫤緇忓巻錛屽叾涓粷澶у鏁伴兘鏄幆澧冭緗殑闂銆傛垜緇欏ぇ瀹舵帹鑽愪竴涓浗澶栧ぇ鐗涘啓鐨凮racle鐨勫畨瑁呰剼鏈?nbsp;OTK錛屾槸鐢˙ash鍐欑殑錛岃繖涓滀笢澶уぇ綆鍖栦簡Oracle瀹夎榪囩▼錛岃屼笖鎴愬姛鐜囪揪鍒?9.9999%浠ヤ笂錛屽彧瑕佺‘淇濅綘鐨凩inux緋葷粺鏄共鍑鐨勶紝閭d箞鎸夌収榪欎釜鏁欑▼錛屼繚璇佷綘浼氬畨瑁呮垚鍔熴?/span>
鍑嗗宸ヤ綔
瀹夎OTK
# 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%]# 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.瑙e喅鐜渚濊禆
# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg
...//鐪佺暐澶ч儴鍒嗚緭鍑?
20130521_165122: Info: Action swReqCheck of installManager ended with 7 WARNINGS//鍏堟嫾瑁呭懡浠?
# 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" }')
//鐢╡cho鐪嬬湅鏈緇堟嫾瑁呯殑鍛戒護鏄粈涔堟牱
# echo $YUM_COMMAND
//鎵ц鍛戒護
# $YUM_COMMAND
//鍐嶆鎵ц鐜媯鏌?
# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg
...
20130521_170131: Info: Action swReqCheck of installManager ended successfully //榪欐楠岃瘉鎴愬姛浜嗭紝鐜宸茬粡婊¤凍Oracle瀹夎瑕佹眰澧炲己sqlplus
# cd /opt/oracle/otk/current/tools/rlwrap/
# ./configure
# make
# make install
# /usr/local/bin/rlwrap -v
rlwrap 0.30浣跨敤installManager鎻愬彇瀹夎
# cd /opt/oracle/otk/current/conf/installManager/
# vi osSetup11gR2.cfg
# sdiff -s osSetup11gR2.cfg sample/osSetup11gR2.cfg //瀵規瘮鍝簺鍙傛暟淇敼榪?
# /opt/oracle/otk/current/bin/installManager osSetup osSetup11gR2.cfg鎶奜racle瀹夎鏂囦歡縐誨叆璧勬簮鐩綍
# 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鐢ㄦ埛鐧誨綍鐨凱S1鍙橀噺
# 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://淇敼榪欎竴琛岋紝鍙互鏄劇ず浣犲枩嬈㈢殑鍐呭
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ exit
# su - oracle
KuuYee:oracle@stquist1p:sidNotSet$瀹夎Oracle鏁版嵁搴?/h4>
$ 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>
$ 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 //鎵ц榪欓儴涔嬪墠鏈濂藉厛閰嶇疆涓?etc/hosts鏂囦歡錛岀湅涓嬮潰璇存槑
OS錛歏Mware铏氭嫙鏈?RHEL5.5)
CPU錛?鏍?br />鍐呭瓨錛?2G
紜洏錛?00GB
涓婇潰鐢?tt>sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg鍛戒護鍙互瀵規瘮涓嬫垜鐨勫弬鏁頒慨鏀癸紝宸﹂潰鏄垜鐨勪慨鏀瑰弬鏁幫紝鍙抽潰鏄師鍙傛暟,闇瑕佺壒鍒鏄庣殑鏄浜屼釜鍙傛暟ORACLE_HOME錛屼竴瀹氳鑷慨淇敼錛屽師鏉ョ殑鍙傛暟鏄?tt>$ORACLE_BASE/sesrv/11.1.0/db1錛岃淇敼涓?ORACLE_BASE/eesrv/11.2.0/db1錛屽埆鏀歸敊浜嗭紒127.0.0.1 浣犵殑hostname
----------------------------------------------------------------------------------------------------
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
----------------------------------------------------------------------------------------------------OTK榛樿鍒涘緩浜嗕竴涓?strong>otk鐢ㄦ埛錛屽瘑鐮佷篃鏄?strong>otk錛?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
$ 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$ 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>
$ 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 ]: //榛樿鍥炶濺
Password for SYS user: //杈撳叆瀵嗙爜manager
Password for DBSNMP user: //杈撳叆瀵嗙爜manager
Password for SYSMAN user: //杈撳叆瀵嗙爜manager
Email address for notifications (optional): //榛樿鍥炶濺
Outgoing Mail (SMTP) server for notifications (optional): //榛樿鍥炶濺
-----------------------------------------------------------------
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) ... //鍙兘浼氱瓑涓浼?
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 <<<<<<<<<<< //榪欎釜鏄疎M鐨勮闂摼鎺?
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
]]>Shell鐜涓嬪垹闄ゅ懡浠ゅ浣曟帓闄ゆ寚瀹氭枃浠?/h2>
+- root
+- fileA.txt
+- subdir1
+- a.txt
+- b.txt
+- c.txt
+- subdir2
+- d.txt
+- e.txt
+- f.txt
+- subdir3
+- subdir4
+- subdir5
+- subdir6
+- subdir7
+- subdir8
+- subdir9
...ls|grep -v 'subdir2\|fileA.txt'|xargs rm -r
+- root
+- fileA.txt
+- subdir2
+- d.txt
+- e.txt
+- f.txt
]]>GitLab5鍙戝竷蹇竴涓湀浜嗭紝鍐沖畾璇曠敤涓嬶紝5.0鏈澶х殑鐗規у氨鏄敤GitLab-Shell鍙栦唬浜咷itolite錛岃繖澶уぇ闄嶄綆浜嗗畨瑁呴毦搴︼紝涓嶅鏈漢鍦ㄥ畨瑁呰繃紼嬩腑榪樻槸瓚婂埌浜嗕竴浜涢棶棰橈紝鎵浠ヨ褰曚笅鏉ヤ緵瑕佸畨瑁匞itLab5鐨勬湅鍙嬪弬鑰冿紒
瀹夎姝ラ鎬昏
瀹夎渚濊禆搴?/h4>
yum install libicu-devel mysql-devel pcre-devel
yum install python
python --version
python2 --version
bash: python2: 鏈壘鍒板懡浠?/code> ,閭d綘闇瑕乴ink涓涓?/p>
sudo ln -s /usr/bin/python /usr/bin/python2
瀹夎Ruby
mkdir /tmp/ruby && cd /tmp/ruby
curl --progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | tar xz
cd ruby-1.9.3-p392
./configure
make
sudo make install
curl -#L https://get.rvm.io | bash -s stable --ruby
rvm install ruby-1.9.3-p392
sudo gem install bundler
娣誨姞緋葷粺Git鐢ㄦ埛
git
鐢ㄦ埛渚汫itLab浣跨敤adduser --comment 'GitLab' git
sudo chmod 644 /etc/shadow vim /etc/shadow
git:!!:15814:0:99999:7::: 淇敼涓?git::15814:0:99999:7:::
chmod u+w /etc/sudoers
vim /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
git ALL=(ALL) ALL #鍔犲叆榪欒瀹夎GitLab Shell
su - git cd ~/
git clone https://github.com/gitlabhq/gitlab-shell.git
cd gitlab-shell
cp config.yml.example config.yml
vim config.yml
# Url to gitlab instance. Used for api calls. Should be ends with slash.
gitlab_url: "http://localhost/" #鏀規垚浣犵殑鍩熷悕鎴栬匢P./bin/install
瀹夎鏁版嵁搴?/h4>
su - root
yum install -y mysql-server mysql mysql-devel
service mysqld start
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)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY 'gitlab';
Query OK, 0 rows affected (0.01 sec)
mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
Query OK, 1 row affected (0.00 sec)
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)
mysql> \q
Bye
sudo -u git -H mysql -u gitlab -p -D gitlabhq_production
瀹夎GitLab
su - git
cd ~/
sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab
cd gitlabsudo -u git -H git checkout 5-0-stable
閰嶇疆
cd /home/git/gitlab
# 鐢ㄦ牱渚嬮厤緗敓鎴恎itlab閰嶇疆
sudo -u git -H cp config/gitlab.yml.example config/gitlab.yml
# 鏇存敼鍩熷悕
sudo -u git -H vim config/gitlab.yml
# 紜繚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/
# 鍒涘緩闄勫睘鐩綍
sudo -u git -H mkdir /home/git/gitlab-satellites
# 鍒涘緩pids鐩綍騫剁‘淇濆gitlab鍙啓
sudo -u git -H mkdir tmp/pids/
sudo chmod -R u+rwX tmp/pids/
# 鐢熸垚Unicorn閰嶇疆
sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb
閰嶇疆GitLab DB璁劇疆
# Mysql sudo -u git cp config/database.yml.mysql config/database.yml
瀹夎Gems
cd /home/git/gitlab
sudo gem install charlock_holmes --version '0.6.9'
# For MySQL (note, the option says "without")
bundle install --deployment --without development test postgres
鍒濆鍖栨暟鎹茍嬋媧婚珮綰х壒鎬?/h4>
#
# PRODUCTION
#
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: gitlabhq_production
pool: 5
username: root
password: "secure password" #鏇存敼涓轟綘mysql鐨剅oot鐢ㄦ埛瀵嗙爜
# host: localhost
# socket: /tmp/mysql.sock
#
bundle exec rake gitlab:setup RAILS_ENV=production
瑙e喅鍔炴硶錛?br />
鍒囧埌root,瀹夎Redis
bc(command). yum install redis*
service redis start #鍚姩redisbundle exec rake gitlab:setup RAILS_ENV=production
/home/git/repositories/root
鐩綍鎵句笉鍒幫紝鎵嬪伐寤轟笂鍗沖彲錛?/div>
...
Administrator account created:
login.........admin@local.host
password......5iveL!fe
鍚姩GitLab
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
絎竴璁塊棶浼氭瘮杈冩參錛屽洜涓鴻緙栬瘧寰堝js鍜宑ss.
]]>
鐒跺悗瀹夎婧?/p>
rpm -ivh pgdg-redhat92-9.2-7.noarch.rpm
鏈鍚庡畨瑁卲ostgresql92
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
縐涓嬫垜鐨勬闈紒
http://download.fedoraproject.org/pub/fedora/linux/releases/18/Live/x86_64/Fedora-18-x86_64-Live-KDE.iso
https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.11.7-setup.exe
liveusb-creator鐢ㄦ潵鍒涘緩USB瀹夎浠嬭川錛孠DE瀹夎鐩樹笉綆楀ぇ錛屽氨800澶歁B銆?/p>
鎻掑叆鐑у綍濂界殑USB錛岄噸鍚數鑴戦夋嫨USB鍚姩,鐪嬪埌濡備笅鍚姩欏甸潰錛?br />
榪涘叆LiveCD妗岄潰錛岀偣鍑繪闈笂鐨処nstall to Hard Drive瀹夎鍥炬爣,濡備笅鍥撅細
閫夋嫨涓枃璇█
榪涘叆瀹夎鎽樿欏甸潰錛屼富瑕佹槸璁劇疆瀛樺偍
鐐瑰嚮瀹夎鐩爣浣嶇疆錛岃繘鍏ョ鐩橀夋嫨欏?/strong>
閫変腑瀹夎紓佺洏鐐圭戶緇?/strong>
鍦ㄥ畨瑁呴夐」閲屾妸鑷畾涔夌鐩樺垎鍖哄嬀涓婏紝鐒跺悗鐐瑰嚮鍥炴敹絀洪棿
榪涘叆鎵嬪姩鍒嗗尯欏碉紝鐐瑰嚮鑷姩鍒涘緩榪炴帴錛屽涓嬪浘錛?/strong>
鐩存帴浣跨敤Fedora榛樿鐨勫垎鍖烘柟妗堬紝涓嶇敤鍋氫換浣曟洿鏀癸紙闄ら潪浣犳兂鑷畾涔夊垎鍖烘柟妗堬級鐐瑰嚮緇撴潫鍒嗗尯
瀹屾垚瀛樺偍璁劇疆錛岀偣鍑誨紑濮嬪畨瑁?/strong>
榪涘叆瀹夎榪涘害錛屽悓鏃惰緗畆oot瀵嗙爜
瀹屾垚瀹夎錛岄噸鍚郴緇燂紒
Congratulations! 瀹夎瀹屾垚錛佸厛鍐欏埌榪欙紝瀹夎鎴愬姛鐨勭闉嬪彲浠ュ厛闅忎究鐜╃帺錛屽悗緇殑鍐呭鎴戜細閫愭笎鍛婅瘔澶у濡備綍鎶奒DE鎵撻犳垚瀹炵敤鑰屼笖婕備寒鐨勬闈€?br />
寰呯畫…
棣栧厛瀹夎涓浜涗緷璧栧簱錛屽惁鍒欏畨瑁匒westruct浼氭姤濡備笅鐨勯敊璇細
Building native extensions. This could take a while...
.........
ERROR: Error installing 寮濮嬪畨瑁呬緷璧栧簱錛岀敤 root 鐢ㄦ埛鎴栬?nbsp;su 鎵ц濡備笅鍛戒護錛?/p>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
鎴戞槸Fedora鐨勭矇涓濓紝瀵逛笉浣忕敤鍏跺畠鍙戣鐗堢殑绔ラ瀷浜嗭紝璇瘋嚜琛屾牴鎹垜鍒楀嚭鐨勫畨瑁呭寘鎵懼埌瀵瑰簲鐨勭郴緇熷畨瑁呮柟娉曘?/div>瀹夎Ruby鍜孯ubyGems,鐢?nbsp;root 鐢ㄦ埛鎴栬?nbsp;su 鎵ц濡備笅鍛戒護錛?/p>
yum install ruby ruby-devel ruby-irb rubygems
Fedora18 Yum婧愮殑Ruby闈炲父鏂幫紝閮芥槸鐩墠(2012-12-14)鐨勬渶鏂扮増鏈紝鐪嬬湅瀹夎鐨凴uby鐗堟湰錛?/p>
姝e湪瀹夎 : libyaml-0.1.4-3.fc18.x86_64 1/10
姝e湪瀹夎 : ruby-libs-1.9.3.327-22.fc18.x86_64 2/10
姝e湪瀹夎 : ruby-irb-1.9.3.327-22.fc18.noarch 3/10
姝e湪瀹夎 : rubygem-json-1.6.5-2.fc18.x86_64 4/10
姝e湪瀹夎 : rubygem-io-console-0.3-22.fc18.x86_64 5/10
姝e湪瀹夎 : rubygem-bigdecimal-1.1.0-22.fc18.x86_64 6/10
姝e湪瀹夎 : rubygem-rdoc-3.12-5.fc18.noarch 7/10
姝e湪瀹夎 : rubygems-1.8.24-3.fc18.noarch 8/10
姝e湪瀹夎 : ruby-1.9.3.327-22.fc18.x86_64 9/10
姝e湪瀹夎 : ruby-devel-1.9.3.327-22.fc18.x86_64
瀹夎Awestruct
Awestruct浣跨敤RubyGems綆$悊瀹夎錛岀敤 root 鐢ㄦ埛鎴栬?nbsp;su 鎵ц濡備笅鍛戒護錛?/p>
gem install 緇撴灉鎶ュ涓嬮敊璇?Fetching: nokogiri-1.5.5.gem (100%)
ERROR: Error installing 榪欎釜闂璁╂垜閮侀椃浜哊涔呮椂闂達紝Google浜嗗ぇ鍗婂ぉ錛岃繕鐗規剰鎼炰簡FANQIANG錛岀粨鏋滄媧昏涓嶄笂nokogiri銆傛渶鍚庨氳繃Yum鏉ヨВ鍐?鎴戝彧鑳借RubyGems瀹夎寰堟棤鑰伙紒榪樻槸YUM濂斤紒錛屽懡浠ゅ涓嬶細yum install -y rubygem-nokogiri
鍐嶆瀹夎Awestruct錛?/p>
yum install -y rubygem-nokogiri
鐩兼湜宸蹭箙鐨勬椂鍒繪潵涓達紝濡傛灉鍝綅绔ラ瀷鐪嬪埌濡備笅鐨勮緭鍑猴紝Congratulations錛?/p>
Successfully installed 涓嶈繃鍒珮鍏村お鏃╋紝鍏堥傜敤涓嬫槸鍚K錛佺敤BootStrap妯℃澘鐢熶駭涓涓柊鐨勯潤鎬佺綉绔欙紝鍛戒護濡備笅錛?/p>鍌葷溂浜嗭紝榪樻槸鎶ラ敊錛?/p>[root@localhost kuuyee]# 欏懼悕鎬濅箟錛屾彁紺烘病鏈塉avaScript Runtime銆傜戶緇璆oogle錛屾渶鍚庝竴浣嶉珮浜烘寚鐐硅瑁呬釜JavaScript寮曟搸灝監K錛屾垜閫夋嫨NodeJS銆傚彧鍙儨NodeJSF娌℃湁YUM婧愶紝鍙兘婧愮爜緙栬瘧瀹夎錛屾棤鎵璋擄紝緇х畫:wget -c 'http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz'
tar zxvf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure
make && make install
鍙堟槸涓闃墊極闀跨殑絳夊緟錛屾悶涓嶆槑鐧戒竴涓狫S妗嗘灦鎬庝箞瑕佺紪璇戣繖涔堜箙錛屾棤璇紒鏈鍚庣紪璇戝畬鎴愭祴璇曚竴涓嬶細
[root@localhost node-v0.8.16]# node -v v0.8.16
OK,緇х畫Awestruct嫻嬭瘯錛?/p>
[root@localhost kuuyee]# 绔熺劧榪楾MD鎶ラ敊錛屼笉榪囪繖鍥炰笉鐢ㄦワ紝鍙槸鎻愮ず娌¤Git錛屽ソ鍔烇紒閭e氨瑁呭憲錛?/p>yum install git
鍐嶇戶緇瑼westruct錛?/p>
[root@localhost kuuyee.org]# 涓嬩竴浠i潤鎬佺綉绔欑敓鎴愬伐鍏?/a>!
To generate your site continuous during development, simply run:
Congratulations! 榪欏洖鐪熺殑鎭枩浣犱簡錛佽刀绱ч儴緗蹭竴涓嬶細
[root@localhost kuuyee]#
鎵撳紑 http://localhost:4242/ 鐪嬬湅鍚э紒

緇嗗績鐨勭闉嬩竴瀹氫細娉ㄦ剰鍒伴儴緗茶緭鍑烘湁璀﹀憡錛屾垜鏄睘浜庝笉鎯崇湅鍒頒換浣曡鍛婄殑浜猴紝鎵浠ヨ繕寰楃戶緇紝娓呮璀﹀憡錛?/p>
gem install --version '~> 0.8.8' rb-inotify
鍐嶆閮ㄧ講璁塊棶灝變笉浼氭湁璀﹀憡浜嗭紒
澶у姛鍛婃垚錛佺鎰垮悇浣嶇闉嬪畨瑁呮垚鍔燂紒

]]>ORACLE 11g鍦↙inux涓嬫墜宸ラ厤緗瓻M http://www.tkk7.com/kuuyee/archive/2012/04/05/373355.htmlkuuyee kuuyee Thu, 05 Apr 2012 03:08:00 GMT http://www.tkk7.com/kuuyee/archive/2012/04/05/373355.html http://www.tkk7.com/kuuyee/comments/373355.html http://www.tkk7.com/kuuyee/archive/2012/04/05/373355.html#Feedback 1 http://www.tkk7.com/kuuyee/comments/commentRss/373355.html http://www.tkk7.com/kuuyee/services/trackbacks/373355.html 浣跨敤OTK宸ュ叿瀹夎鐨凮racle榛樿娌℃湁閰嶇疆EM錛屼笅闈㈣褰曚笅閰嶇疆鍜屽惎鍔ㄨ繃紼?
棣栧厛鍒涘緩EM錛屾墽琛屼笅闈㈢殑鍛戒護
$ emca -config dbcontrol db -repos recreate
鎴戠涓嬈¤繍琛屾姤濡備笅閿欒錛?br />
Mar 31, 2012 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 31, 2012 4:16:06 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
瑙e喅鍔炴硶
浣跨敤SYS鐢ㄦ埛鐧誨綍sqlplus錛岀劧鍚庢墽琛屼笅闈㈢殑璇彞錛?/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
鐒跺悗鏂板畾涔変釜絀洪棿鏂囦歡wcdb_system_02.dbf錛屾敞鎰忎笉瑕侀噸鍚?/p>
鐒跺悗鏂板畾涔変釜絀洪棿鏂囦歡*wcdb_system_02.dbf*錛屾敞鎰忎笉瑕侀噸鍚?/p>
SQL> ALTER TABLESPACE SYSTEM ADD DATAFILE '/data01/rdbms/wcdb/datafile/wcdb_system_02.dbf' SIZE 500M; Tablespace altered.
鐒跺悗鍐嶆鎵цEM鍒涘緩鎴愬姛錛?/p>
EM鐨勮闂湴鍧錛?a href="https://host:1158/em" style="color: fuchsia; ">https://localhost:1158/em
鍒犻櫎涓涓狤M璧勬枡搴?/strong>
$ emca -repos drop
閰嶇疆鏁版嵁搴撶殑 Database Control
$ emca -config dbcontrol db
鍒犻櫎鏁版嵁搴撶殑 Database Control閰嶇疆
$ emca -deconfig dbcontrol db
閲嶆柊閰嶇疆db control鐨勭鍙o紝榛樿绔彛鍦?158
$ emca -reconfig ports $ emca -reconfig ports -dbcontrol_http_port 1160 $ emca -reconfig ports -agent_port 3940
鍏堣 緗甇RACLE_SID鐜鍙橀噺鍚?鍚姩EM console鏈嶅姟
$ emctl start dbconsole
鍏堣緗?ORACLE_SID鐜鍙橀噺鍚?鍋滄EM console鏈嶅姟
$ emctl stop dbconsole
鍏堣緗甇RACLE_SID鐜?澧冨彉閲忓悗,鏌ョ湅EM console鏈嶅姟鐨勭姸鎬?/strong>
$ emctl status dbconsole

]]>涓涓熷害姣旇緝蹇殑Cygwin闀滃儚 http://www.tkk7.com/kuuyee/archive/2011/10/17/361490.htmlkuuyee kuuyee Mon, 17 Oct 2011 15:43:00 GMT http://www.tkk7.com/kuuyee/archive/2011/10/17/361490.html http://www.tkk7.com/kuuyee/comments/361490.html http://www.tkk7.com/kuuyee/archive/2011/10/17/361490.html#Feedback 0 http://www.tkk7.com/kuuyee/comments/commentRss/361490.html http://www.tkk7.com/kuuyee/services/trackbacks/361490.html 灝辨璁板綍榪炴帴

]]> CentOS5.4瀹夎Trac璁板綍 http://www.tkk7.com/kuuyee/archive/2011/10/08/360212.htmlkuuyee kuuyee Sat, 08 Oct 2011 09:52:00 GMT http://www.tkk7.com/kuuyee/archive/2011/10/08/360212.html http://www.tkk7.com/kuuyee/comments/360212.html http://www.tkk7.com/kuuyee/archive/2011/10/08/360212.html#Feedback 0 http://www.tkk7.com/kuuyee/comments/commentRss/360212.html http://www.tkk7.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

]]>
鍐欎簡涓嶅皯VPS璇勬祴錛屼粖澶╁彂涓畝鍗曠殑鎶鏈笘銆?/p>
CentOS 鍦ㄥ綋鍓嶆渶鏂扮殑 5.6 鐗堜腑錛屽叾 python 鐨勭増鏈緷鐒舵瘮杈冭惤鍚庯紝榪樻槸鍙よ佺殑 2.4銆?/p>
浣嗘槸鏈変簺紼嬪簭闇瑕?2.6 鎵嶈窇寰楄搗鏉ワ紝緙栬瘧瀹夎鐨勮瘽錛屽張澶夯鐑︼紝鑰屼笖涓嶉傚悎鑿滈笩浣跨敤銆?/p>
涓嬮潰灝辯粰鍑轟嬌鐢?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 浣嶇殑 CentOS錛屽垯灝嗕笂榪扮涓鍙ヤ唬鐮佷腑鐨?i386 鏀逛負 x86_64 鍗沖彲銆?/p>
榪愯瀹屾瘯鍚庯紝姝ゆ椂緋葷粺榛樿鐨?python 宸茬粡鏄?2.6 鐗堜簡銆?/p>
鐒惰岋紝yum 鏄熀浜?python2.4 鐨勶紝鍥犳浼氬嚭鐜版晠闅溿傝В鍐蟲柟娉曚篃寰堢畝鍗曪細
1: nano /usr/bin/yum
灝嗙涓琛屾湯鐨?python 鍚庡姞涓?2.4錛屽嵆灝嗙涓琛屾敼涓猴細
#!/usr/bin/python2.4
榪欐牱錛寉um 渚濈劧浣跨敤 python 2.4 鐜榪愯錛屼竴鍒囨仮澶嶆甯搞?/p>
姝ゆ椂鎴戜滑杈撳叆 python -V 鍗沖彲鐪嬪埌褰撳墠鐨?python 鐗堟湰錛?/p>
1: # python -V
2: Python 2.6.5
涓嬮潰緇欏嚭du鍛戒護鐨勭敤娉曞強鍙傛暟璇存槑錛?/p>
鐢ㄦ硶錛歞u [閫夐」]… [鏂囦歡]…
鎴栵細du [閫夐」]… –files0-from=F
鎬葷粨姣忎釜<鏂囦歡>鐨勭鐩樼敤閲忥紝鐩綍鍒欏彇鎬葷敤閲忋?/strong>
鍙傛暟鍚箟濡備笅錛?/strong>
-s 瀵規瘡涓狽ames鍙傛暟鍙粰鍑哄崰鐢ㄧ殑鏁版嵁鍧楁繪暟銆?br />
-a 閫掑綊鍦版樉紺烘寚瀹氱洰褰曚腑鍚勬枃浠跺強瀛愬瓩鐩綍涓悇鏂囦歡鍗犵敤鐨勬暟鎹潡鏁般傝嫢鏃笉鎸囧畾-s錛屼篃涓嶆寚瀹?a錛屽垯鍙樉紺篘ames涓殑姣忎竴涓洰褰曞強鍏朵腑鐨勫悇瀛愮洰褰曟墍鍗犵殑紓佺洏鍧楁暟銆?br />
-b 浠ュ瓧鑺備負鍗曚綅鍒楀嚭紓佺洏絀洪棿浣跨敤鎯呭喌錛堢郴緇熺己鐪佷互 k 瀛楄妭涓哄崟浣嶏級銆?br />
-k 浠?024瀛楄妭涓哄崟浣嶅垪鍑虹鐩樼┖闂翠嬌鐢ㄦ儏鍐點?br />
-c 鏈鍚庡啀鍔犱笂涓涓昏錛堢郴緇熺己鐪佽緗級銆?br />
-l 璁$畻鎵鏈夌殑鏂囦歡澶у皬銆?/p>
]]>
棣栧厛鍦═omcat鐨刡in鐩綍涓嬩慨鏀筩atalina.sh,鍔犲叆JAVA_OPTS鍙傛暟:
JPDA_ADDRESS=20777 JAVA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20777'
鍏朵腑JPDA_ADDRESS瑕佹寚瀹氫竴涓病鏈夎鍗犵敤鐨勭鍙?濡傛灉涓嶆寚瀹?榛樿鍊兼槸8000
鐒跺悗鐢ㄤ笅闈㈢殑鏂瑰紡鍚姩tomcat錛?/p>
catalina.sh jpda start
鏈鍚庡惎鍔‥clipse錛岄夋嫨浣犳兂瑕丏ebug鐨勭被騫惰緗柇鐐癸紝鐒跺悗閫夋嫨Debug宸ュ叿鏍忎笅鐨凞ebug瀛愯彍鍗?Debug…)錛屽湪寮瑰嚭鐨凞ebug紿楀彛涓紝鍦ㄥ乏杈圭殑鑿滃崟欏逛腑閫夋嫨榪滅▼璋冭瘯(Remote Java Application)錛岀劧鍚庤緭鍏ユ満鍣ㄥ悕鍜岀鍙o紝姣斿璇?92.168.1.1鍜?0777錛岀劧鍚嶢pply騫朵笖寮濮婦ebug
鍏堝畨瑁呮墍闇鐨勮蔣浠?/p>
yum install rsh-server rusers-server
鐒跺悗鍚姩鏈嶅姟
service xinetd reload
/etc/init.d/./rstatd start
鍙互鐢╮oadrunner榪炴帴鐩戞帶浜?/p>
鐒跺悗璁懼畾DNS,緙栬緫鏂囦歡/etc/resolv.conf濡備笅錛?/p>
鐒跺悗閲嶅惎緗戠粶鏈嶅姟
OK,ifconfig涓涓嬪氨搴旇鐪嬪埌IP鍦板潃宸茬粡璁懼畾銆?/p>
2銆傛寕杞借繙紼媤indows鐩綍
OK,鍦?mnt/share涓嬪簲璇ュ彲浠ョ湅鍒癉ownload涓嬬殑鍐呭浜嗐?/p>