centos 安裝 gitlab

來源:互聯網
上載者:User

標籤:

按照官方教程的步驟:https://about.gitlab.com/downloads/#centos6

但是執行這一步

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bashsudo yum install gitlab-ce

會報錯找不到鏡像檔案。

所以我自己下載了rpm 檔案在安裝。

步驟如下:

sudo yum install openssh-serversudo yum install postfix # sendmail or exim is also OKsudo rpm -i gitlab-6.9.2_omnibus.1-1.el6.x86_64.rpm # this is the .rpm you downloadedsudo gitlab-ctl reconfigure   //可能會報錯:External URL must include a FQDN(解決辦法在下面)sudo lokkit -s http -s ssh # open up the firewall for HTTP and SSH requestsok!sudo gitlab-ctl status;   #查看安裝後的程式運行情況!輸出如下:run: nginx: (pid 3012) 53s; run: log: (pid 3011) 53srun: postgresql: (pid 2857) 87s; run: log: (pid 2856) 87srun: redis: (pid 2759) 98s; run: log: (pid 2758) 98srun: sidekiq: (pid 2967) 60s; run: log: (pid 2966) 60srun: unicorn: (pid 2938) 66s; run: log: (pid 2937) 66s說明安裝成功。通過瀏覽器訪問:http://localhost   或者  http://ip

OK,可以了使用者名稱和密碼預設是root/5iveL!fe

遇到的問題:

1. 報錯:External URL must include a FQDN

/etc/gitlab/gitlab.rb預設沒有“=”,要自己加上

external_url = ‘gitlab.thefallenphoenix.net‘


附上gitlab網盤地址:http://pan.baidu.com/s/1nt7xeEP



官方安裝方法:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md





centos 安裝 gitlab

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.