xiaoming728

xiaoming728

GitLab 安装与破解

2025-02-10
GitLab 安装与破解

1.Yum安装GitLab

添加 GitLab 社区版 Package

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

安装 GitLab 社区版

sudo yum install -y gitlab-ce

添加 GitLab 企业版 Package

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

安装 GitLab 企业版

sudo yum install -y gitlab-ce

2.配置GitLab站点Url(可选)

GitLab默认的配置文件路径是 /etc/gitlab/gitlab.rb

默认的站点Url配置项是:external_url 'http://gitlab.example.com'

将GitLab站点Url修改为 http(s)://xxx.com 也可以用IP代替域名,这里根据自己需求来即可

修改配置文件

sudo vi /etc/gitlab/gitlab.rb

配置首页地址(大约在第 15 行)

external_url 'http(s)://xxx.com'

3.启动并访问GitLab

启动GitLab

重新配置并启动

sudo gitlab-ctl reconfigure

完成后将会看到如下输出

Running handlers complete
Chef Client finished, 432/613 resources updated in 03 minutes 43 seconds
gitlab Reconfigured!

访问GitLab

将设置的域名DNS解析到服务器IP,或者修改本地host将域名指向服务器IP。

4.破解 GitLab-ee(可选)

可参考链接

https://linux.do/t/topic/30583

https://blog.17lai.site/posts/29a820b3/

https://github.com/nannanStrawberry314/license

https://github.com/qy527145/gitlabee_crack