Gitlab搭建常見錯(cuò)誤有哪些

這篇文章將為大家詳細(xì)講解有關(guān)Gitlab搭建常見錯(cuò)誤有哪些,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

創(chuàng)新互聯(lián)公司專注于企業(yè)網(wǎng)絡(luò)營銷推廣、網(wǎng)站重做改版、井研網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、成都h5網(wǎng)站建設(shè)、商城網(wǎng)站開發(fā)、集團(tuán)公司官網(wǎng)建設(shè)、成都外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為井研等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

  1.最好使用CentOS 6.4進(jìn)行安裝,5.x系列,太多依賴問題需要解決。

2.

ruby盡可能的使用rvm來安裝:

curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
source /etc/profile.d/rvm.sh

rvm install ruby-2.0.0-p247

3.

ERROR:  Error installing charlock_holmes:

解決:

yum install libicu-devel

icu 版本4.2以上

4.

CentOS5 無法安裝charlock_holem

https://github.com/brianmario/charlock_holmes/issues/37

5.權(quán)限問題:

Gitlab 

Key的控制是每個(gè)用戶登錄時(shí)加Key 

我用Admin登錄加了Key  那這些Key的使用者就都是Admin的權(quán)限了

我應(yīng)該用 A用戶 B用戶分別登錄 然后上傳自己的Key 

再用web進(jìn)行控制

6.502錯(cuò)誤:

502

http://www.pwhack.me/archives/installation_of_gitlab.html

cp config/unicorn.rb.example config/unicorn.rb  
bundle exec unicorn_rails -c config/unicorn.rb -E production -D

7.

/usr/local/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError

http://blog.csdn.net/csfreebird/article/details/8852305

兩個(gè)條件:

1.self_signed_cert設(shè)置為true

2.url要用https

回到config.yml文件中,這樣配置:

8.

出現(xiàn)read A hello錯(cuò)誤

yum -y install libyaml

9.

Gitlab sidekiq 不啟動(dòng):

bundle exec rake sidekiq:start RAILS_ENV=production

10.

remote權(quán)限:

chmod 777 /home/git/gitlab-shell/gitlab-shell.log

Gitlab搭建常見錯(cuò)誤有哪些

修改項(xiàng)目目錄的權(quán)限 chown git:git 

Gitlab搭建常見錯(cuò)誤有哪些

不能用其它的權(quán)限  必須是所屬git   并且rw------

gitlab-shell reinstall

Gitlab搭建常見錯(cuò)誤有哪些

11.

Mail設(shè)置:

1.http://www.makebetterthings.com/git/gitlab-5-3-email-smtp-setup/

Just a heads up, in the newer versions you have to instead create
a script at: ‘/home/git/gitlab/config/initializers/smpt_settings.rb’
which you can base off of ‘/home/git/gitlab/config/initializers/smpt_settings.rb.sample’ (check the github repository at https://github.com/gitlabhq/gitlabhq/blob/master/config/initializers/smtp_settings.rb.sample if your version does not have it).

2.還需修改gitlab.yam中的Email setting

12.

看代碼500錯(cuò)誤

升級(jí)python -> 2.6 +

ruby的libyaml安裝 然后重新編譯安裝ruby

13.

/home/git/gitlab/public/.html" failed (13: Permission denied)

chmod o+x /tmp/

將Nginx運(yùn)行的用戶加入git組

usermod -a -G git nginx

14.

頁面圖標(biāo)不顯示:

I did a

  • sudo -u git -H bundle exec rake assets:clean RAILS_ENV=production

  • sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production

and the icons started appearing normally.

關(guān)于“Gitlab搭建常見錯(cuò)誤有哪些”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請把它分享出去讓更多的人看到。

標(biāo)題名稱:Gitlab搭建常見錯(cuò)誤有哪些
當(dāng)前路徑:http://muchs.cn/article8/iidsip.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃網(wǎng)頁設(shè)計(jì)公司、網(wǎng)站設(shè)計(jì)公司網(wǎng)站排名、網(wǎng)站制作、營銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都定制網(wǎng)站網(wǎng)頁設(shè)計(jì)