璁劇疆Git浠g悊
$git config --global http.proxy http://192.128.1.3:80
$ git config -l
http.proxy=http://192.128.1.3:80
璁劇疆Gem浠g悊
$ export http_proxy=http://192.128.1.3:80
gem install rails --http-proxy $http_proxy
璁〣undler浣跨敤HTTP浠g悊鐜璁劇疆
sudo -E bundle ...
濡傛灉浣犳槸闈瀝oot鐢ㄦ埛錛屾瘮濡傜敤Git鐢ㄦ埛璁劇疆http浠g悊鍚庯紝浣跨敤gem-fast浼氭姤濡備笅閿欒錛?/p>
curl: (7) couldn't connect to host
ERROR: While executing gem ... (GemFast::Util::ExecutionError) Failure while executing: curl -f#LA rubygem-gemfast http://ruby.taobao.org/quick/Marshal.4.8/bundler-1.3.5.gemspec.rz --insecure -o /home/git/local/lib/ruby/gems/1.9.1/cache/bundler-1.3.5.gemspec.rz
鐩墠鐨勮繕娌℃壘鍒版牴鏈殑瑙e喅鍔炴硶錛屽師鍥犳槸鎺堟潈鐨勯棶棰橈紝鍥犱負root鐢ㄦ埛鎵ц灝變笉鎶ラ敊錛屾墍浠ュ彧鑳藉嵏杞?strong>gem-fast錛岃繖鏍峰氨涓嶆姤閿欎簡錛屼絾鏄氨涓嶈兘浣跨敤gem-fast鐨勫揩閫熶笅杞藉姛鑳戒簡銆傞偅浣嶇墰浜鴻兘瑙e喅榪欎釜闂璇峰憡涔嬪皬寮燂紝璋㈣阿錛?/p>
涓昏鍙傝冩枃妗? https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md
yum install libicu-devel mysql-devel pcre-devel
瀹夎python,瀹樻柟瑕佹眰鐗堟湰蹇呴』鍦?.5浠ヤ笂錛岃屼笖涓嶆敮鎸?.0,Fedora涓鑸殑鐗堟湰閮藉湪2.7浠ヤ笂錛屽洜姝ょ洿鎺ュ畨瑁呮簮鑷甫鐨勫嵆鍙?/p>
yum install python
瀹夎瀹屾煡鐪嬩笅鐗堟湰
python --version
榪樿紜繚python2鍛戒護鏈夋晥
python2 --version
濡傛灉鎻愮ず 榛樼劧瀹夎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鍚э紒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.
棣栧厛瀹夎涓浜涗緷璧栧簱錛屽惁鍒欏畨瑁匒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
鍐嶆閮ㄧ講璁塊棶灝變笉浼氭湁璀﹀憡浜嗭紒
澶у姛鍛婃垚錛佺鎰垮悇浣嶇闉嬪畨瑁呮垚鍔燂紒

]]>鐢╓eblogic WLST鑴氭湰 榪滅▼閮ㄧ講Web搴旂敤 http://www.tkk7.com/kuuyee/archive/2011/10/13/361213.htmlkuuyee kuuyee Thu, 13 Oct 2011 15:46:00 GMT http://www.tkk7.com/kuuyee/archive/2011/10/13/361213.html http://www.tkk7.com/kuuyee/comments/361213.html http://www.tkk7.com/kuuyee/archive/2011/10/13/361213.html#Feedback 1 http://www.tkk7.com/kuuyee/comments/commentRss/361213.html http://www.tkk7.com/kuuyee/services/trackbacks/361213.html 1 import re
2
3 warPath = 'helloWebApp'
4 serverUrl = 't3://192.168.1.100:7001'
5 username = 'weblogic'
6 password = 'weblogic'
7 targetServer="examplesServer"
8 deployAppName='DeployExample2'
9
10
11 connect(username, password, serverUrl)
12
13 appList = re.findall(deployAppName, ls('/AppDeployments'))
14 print "========================="
15 print len(appList)
16 if len(appList) > 0:
17 #oldestArchiveVersion = min(map(int, appList))
18 print 'come in!!!'
19 undeploy(deployAppName)
20
21 #deploy(appName='DeployExample', path = 'helloWebApp', targets = 'examplesServer',timeout=600000, block = 'true')
22
23 deploy(deployAppName, warPath, targets=targetServer, securityModel = "Advanced",timeout=600000, block = "true")
24 exit()Ok
]]> 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

]]>(杞澆)CentOS涓畝鍗曠敤yum鍗囩駭 Python 鑷?.6 http://www.tkk7.com/kuuyee/archive/2011/10/08/360206.htmlkuuyee kuuyee Sat, 08 Oct 2011 09:26:00 GMT http://www.tkk7.com/kuuyee/archive/2011/10/08/360206.html http://www.tkk7.com/kuuyee/comments/360206.html http://www.tkk7.com/kuuyee/archive/2011/10/08/360206.html#Feedback 1 http://www.tkk7.com/kuuyee/comments/commentRss/360206.html http://www.tkk7.com/kuuyee/services/trackbacks/360206.html http://vpshello.com/upgrade-python-to-26-with-yum/
鍐欎簡涓嶅皯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

]]>