基于Gitlab搭建SCM

本文详述了如何在Ubuntu 22.04上安装和配置Gitlab CE,包括从清华源下载安装包,配置依赖,设置语言、邮箱功能,以及用户权限管理。在完成安装后,你可以通过IP地址访问Gitlab页面,进行新用户注册和权限管理。

准备

  • 方法一:极狐gitlab-ce
sudo apt install curl

https://packages.gitlab.com/gitlab/gitlab-ce/
https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/jammy/gitlab-ce_16.3.0-ce.0_amd64.deb

此网站方法是从cn.ubuntu上下载,下载较慢。

  • 方法二:直接用清华源安装,好像是验证不成功,所以没去研究这个安装方法,具体wiki有介绍:
https://mirrors.tuna.tsinghua.edu.cn/help/gitlab-ce/
  • 方法三:直接从清华源下载ubuntu22.04(jammy)对应的gitlab-ce deb文件安装
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/jammy/main/g/gitlab-ce/
gary@jxes:~/jxes$ ls
gitlab-ce_16.3.0-ce.0_amd64.deb

电脑配置要求

本次实验:win7+虚拟机安装ubuntu22.04;内存分配给虚拟机4GB,硬盘80GB非固态
可以正常使用,由于电脑配置是7代的i7处理器,有点老,而且还是非固态硬盘。所以建议在内存8GB以上机器上使用,一般即可使用。

安装依赖包

sudo apt install openssh-server, perl

安装gitlab-ce的deb包

gary@jxes:~/jxes$ sudo dpkg -i gitlab-ce_16.3.0-ce.0_amd64.deb
Selecting previously unselected package gitlab-ce.
(Reading database ... 166625 files and directories currently installed.)
Preparing to unpack gitlab-ce_16.3.0-ce.0_amd64.deb ...
Unpacking gitlab-ce (16.3.0-ce.0) ...
Setting up gitlab-ce (16.3.0-ce.0) ...
It looks like GitLab has not been configured yet; skipping the upgrade script.
  
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
  sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=16-3

如果要卸载,可以用命令:

sudo apt-get remove 软件包名称
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

JXES智能生态系统

如文章对你有用,请作者喝个咖啡

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值