准备
- 方法一:极狐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 软件包名称

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

被折叠的 条评论
为什么被折叠?



