搭建Gitlab
這個周末好奇想搭建一個私有的Gitlab,以前折騰過一次。現在記錄如下。
一、安裝Ubuntu 16.04?LTS?server amd64 到Virtual Box
二、安裝gitlab服務器
按照官網的說明(Download GitLab Community Edition (CE))一步步操作即可。注意:使用中國鏡像來下載,頁面底部有說明。
圖1 安裝gitlab community版本的示意圖
?
Gitlab管理命令
??? sudo gitlab-ctl restart
??? sudo gitlab-ctl reconfigure
??? sudo gitlab-ctl-rails console production 控制臺,可以改密碼設置admin用戶等操作
設置一個用戶為admin用戶
??? user = User.find_by(email: 'admin@local.host')
??? user.admin = true
??? user.save
參考:
a. http://stackoverflow.com/questions/11761396/how-to-setup-admin-user-with-gitlab-with-ldap-authentication
b. http://docs.gitlab.com/ce/security/reset_root_password.html
?
三、設置gitlab?page服務(failed)
1. Gitlab Runner:https://gitlab.com/gitlab-org/gitlab-ci-multi-runner
2. Install:Install using official GitLab repositories
?
參考:
a. Gitlab:?https://about.gitlab.com/downloads/#ubuntu1604
b. 國內gitlab:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
?
轉載于:https://www.cnblogs.com/xianzhon/p/5618370.html
總結
- 上一篇: crash
- 下一篇: 《闺怨词三首》第八句是什么