標籤:
按照官方教程的步驟: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