File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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
+ ## 资料
You can’t perform that action at this time.
0 commit comments