centos 安裝 gitlab

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

可是執行這一步git

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

會報錯找不到鏡像文件。redis

因此我本身下載了rpm 文件在安裝。sql

步驟以下:shell

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

OK,能夠了用戶名和密碼默認是root/5iveL!fecentos

遇到的問題:瀏覽器

1. 報錯:External URL must include a FQDNbash

/etc/gitlab/gitlab.rb默認沒有「=」,要本身加上ssh

external_url = 'gitlab.thefallenphoenix.net'
curl


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



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

相關文章
相關標籤/搜索