文檔本身並沒有什麼特殊,安裝也很簡單,只是修改端口這裡如果有需要的可以看一下
安裝Gitlab
[root@deploy ~]# sudo yum -y install gitlab-ce
默認端口是8080,避免衝突還是修改一下
[root@localhost ~]# cat /etc/gitlab/gitlab.rb |grep 192.168.135.246
external_url ''
gitlab_workhorse['auth_backend'] = ""
unicorn['listen'] = '192.168.135.246'
puma['listen'] = '192.168.135.246'
gitlab_pages['http_proxy'] = ""
[root@localhost ~]# cat /etc/gitlab/gitlab.rb |grep 7070
external_url ''
puma['port'] = 7070
gitlab_pages['http_proxy'] = ""
[root@localhost ~]# cat /etc/gitlab/gitlab.rb |grep 7071
gitlab_workhorse['auth_backend'] = ""
unicorn['port'] = 7071
啟動服務
[root@localhost ~]# gitlab-ctl reconfigure
gitlab-ctl start # 啟動所有 gitlab 組件;
gitlab-ctl stop # 停止所有 gitlab 組件;
gitlab-ctl restart # 重啟所有 gitlab 組件;
gitlab-ctl status # 查看服務狀態;
gitlab-ctl reconfigure # 啟動服務;
vim /etc/gitlab/gitlab.rb # 修改默認的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace # 檢查gitlab;
gitlab-ctl tail # 查看日誌;
http://192.168.135.20:7070
設置root密碼
2 登錄
閱讀更多 代號香蕉 的文章