GitLab 分为两个版本,GitLab CE(社区版)及GitLab EE(企业版)
其中GitLab CE 为MIT 许可证可以免费进行使用
GitLab EE 则为在GitLab CE 的版本上增强了许多功能,但需要进行付费使用
1. 部署完成后文件路径
- 配置文件 /etc/gitlab/gitlab.rb
- nginx路径 /var/opt/gitlab/nginx/
- nginx配置文件 /var/opt/gitlab/nginx/gitlab-http.conf
- 备份目录 /var/opt/gitlab/backups
2. 数据库配置文件
- /var/opt/gitlab/gitlab-rails/etc/database.yml
- /var/opt/gitlab/postgresql/data/postgresql.conf
- /var/opt/gitlab/postgresql/data/pg_hba.conf
3.部署命令
yum update
yum -y install curl policycoreutils-python openssh-server perl
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | bash
yum makecache fast
EXTERNAL_URL="https://www.example.com" yum install -y gitlab-ce //自定义地址www.example.com
4. 简单命令
- 开始命令:gitlab-ctl start
- 重新配置命令 gitlab-ctl reconfigure
- 重启命令 gitlab-ctl restart
- 停止命令 gitlab-ctl stop
- 备份命令:gitlab-rake gitlab:backup:create
- 重启gitlab的nginx gitlab-ctl restart nginx