debian12 安装gitlab-ce

1. 基本安装配置

# 安装
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce

# 修改登陆ip,默认是8080,这里填一个其它端口,不然会和默认服务冲突
$ sudo vim /etc/gitlab/gitlab.rb
# external_url 'http://0.0.0.0:8081'
external_url 'http://172.16.237.188:8081'


# 载入配置
sudo gitlab-ctl reconfigure

# 关闭服务
sudo gitlab-ctl stop

# 启动服务
sudo gitlab-ctl start

2. 首次登陆

# 默认管理账号密码(安装24小时内有效)
$ sudo cat /etc/gitlab/initial_root_password

image

http://172.16.237.188:8081

image

2.1 修改root密码

image
image

参考

https://www.deviantdev.com/journal/debian-linux-remove-uninstall-gitlab
https://cloud.tencent.com/document/product/213/47332
https://cloud.tencent.com/developer/article/2138264
https://gitlab.com/rluna-gitlab/gitlab-ce
https://docs.gitlab.com/ee/topics/offline/quick_start_guide.html

posted @ 2023-07-19 20:39  BuzzWeek  阅读(760)  评论(0编辑  收藏  举报