Appearance
GitLab 安装
gitlab-ee 是企业版,收费。gitlab-ce 是社区版,免费。这里我们选择安装社区版:
添加 GitLab 软件包存储库
PowerShellcurl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash安装 GitLab
PowerShellsudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-ce初始化(重新配置)GitLab
PowerShellgitlab-ctl reconfigure启动
PowerShellgitlab-ctl start
Note
- 记得开放防火墙的
80端口;- 默认管理员用户是
root,密码在/etc/gitlab/initial_root_password;- 配置文件在
/etc/gitlab/gitlab.rb;