Skip to content

Commit c2e1679

Browse files
committed
2016-06-11添加GitLab
1 parent 8d2500c commit c2e1679

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

GitLab-Install-And-Settings.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# GitLab 安装和配置
2+
3+
## GitLab 介绍
4+
5+
6+
- 官网:<>
7+
- 官网下载:<https://www.gitlab.cc/downloads>
8+
- 官网安装说明:<https://doc.gitlab.cc/ce/install/requirements.html>
9+
- 开源版本和企业版本对比:<https://www.gitlab.cc/features/#enterprise>
10+
11+
## GitLab 安装(CentOS 6)
12+
13+
- 安装并开放 HTTP 和 SSH、邮件相关服务和端口
14+
- 命令:`sudo yum install -y curl openssh-server openssh-clients postfix cronie`
15+
- 命令:`sudo service postfix start`
16+
- 命令:`sudo chkconfig postfix on`
17+
- 命令:`sudo lokkit -s http -s ssh`
18+
- 添加 GitLab 仓库,并安装到服务器上(8.8.4 安装包有:261M):
19+
- `curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash`
20+
- `sudo yum install -y gitlab-ce`
21+
- 启动 GitLab:`sudo gitlab-ctl reconfigure`,使用这个命令会输出一堆的日志出来,整个启动过程需要耗时 20 秒左右
22+
23+
## GitLab 配置
24+
25+
- 用浏览器访问服务器 IP,比如我的是:http://192.168.1.113,就可以直接看到 GitLab 配置初始化界面,让你先重置管理员密码,因为密码不能太简单,所以我改为:http://192.168.1.113,这样比较好记又复杂
26+
- 重新访问:http://192.168.1.113,输入账号密码:root、http://192.168.1.113
27+
- 访问管理员控制台,添加用户:http://192.168.1.113/admin/users
28+
29+
30+
## 资料

0 commit comments

Comments
 (0)