【Linux】Gitlib部署过程
Gitlib部署
前置软件的安装
1 | yum install curl policycoreutils openssh-server opensh-clients |
Gitlib安装
1 | rpm -ivh 后面接你的rpm包名 |
修改默认的配置文件
安装完成之后
1 | vim /etc/gitlab/gitlab.rb |
配置完成要重载配置
1 | gitlab-ctl reconfigure # 重载配置文件 |
查找某个关键字在Linux文本文件中的位置
1 | 查找并显示行号 |
配置邮件(可选)
记得配置完之后要刷新一下(重载配置文件)。
1 | gitlab_rails['smtp_enable'] = true |
使用
1 | gitlab-ctl start # 启动所有 gitlab 组件 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.



