Ubuntu 私有化部署GitLab

从清华源下载gitlab 安装包

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/ubuntu/pool/bionic/main/g/gitlab-ee/

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/ubuntu/pool/bionic/main/g/gitlab-ee/gitlab-ee_15.2.2-ee.0_amd64.deb

安装gitlab

sudo dpkg -i gitlab-ee_15.2.2-ee.0_amd64.deb

根据提示配置


sudo vim /etc/gitlab/gitlab.rb
# 修改内容
# 1.启动访问地址 external_url 'http://192.168.1.200:82'
# 2.nginx 监听的端口:  nginx['listen_port'] = 82

sudo gitlab-ctl reconfigure

密码记录地址 ,密码只保留24小时,需要及时修改

使用http://192.168.1.200:82 进入即可

使用 root 和默认生成的密码进入系统再修改密码即可

查看git 运行状态

gitlab-ctl status

开机自启配置

#禁止 Gitlab 开机自启动
systemctl disable gitlab-runsvdir.service

#启用 Gitlab 开机自启动
enable gitlab-runsvdir.service

另:参考地址:https://cloud.tencent.com/developer/article/1935402

posted on   卍兲卐  阅读(226)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示