2022年11月1日08:26:03
centos7国内地址 :注意对应的系统版本,下一个最新版本
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
因为数据导入导出使用的是gitlab导出 gitlab导入,不需要在乎版本是否匹配,只要能到出,导入成功即可
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.5.1-ce.0.el7.x86_64.rpm
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python curl
yum install gitlab-ce-15.5.1-ce.0.el7.x86_64.rpm
系统默认密码:cat /etc/gitlab/initial_root_password
修改防火墙和selinux
vi /etc/selinux/config,将SELINUX=enforcing改为SELINUX=disabled
systemctl status firewalld.service
systemctl stop firewalld.service
systemctl disable firewalld.service
修改配置后的初始化
gitlab-ctl reconfigure
启动
sudo gitlab-ctl start
停止
sudo gitlab-ctl stop
重启
sudo gitlab-ctl restart
开机启动
systemctl enable gitlab-runsvdir.service
禁止开

本文提供了一套详细的步骤来帮助您在CentOS 7上安装和配置GitLab,包括设置服务器环境、安装GitLab软件包、配置基本参数、数据备份与恢复流程等关键环节。
最低0.47元/天 解锁文章
4465

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



