目录
目录
进入bin执行 gitlab-ctl restart使其生效
安装gitlib
下载gitlib安装包
Index of /gitlab-ce/yum/el7/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
wget --no-check-certificate \
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm
安装需要的依赖
yum install -y curl policycoreutils openssh-server openssh-clients
设置开机启动
systemctl enable sshd
systemctl start sshd
安装邮件服务器并设置开机启动
安装Postfix
Postfix是一个邮件服务器,GitLab发送邮件需要用到
#安装postfix
yum install -y postfix
#启动postfix并设置为开机启动
systemctl enable postfix
systemctl start postfix
rpm执行安装gitlib
rpm -ivh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm
#若弹出需要一些依赖,后面跟上--nodeps --force后安装
rpm -ivh gitlab-ce-16.2.1-ce.0.el7.x86_64.rpm --nodeps --force

本文详细介绍了在Linux系统中安装GitLab的步骤,包括下载rpm包,安装依赖如curl和Postfix邮件服务器,设置SSH和Postfix的开机启动,执行gitlab-ce的安装,修改gitlab.rb配置文件,重置root密码,以及调整外部URL和限制用户注册等操作。
最低0.47元/天 解锁文章
994

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



