gitlab安装
1、yum -y install policycoreutils openssh-server openssh-clients postfix
2、systemctl enable postfix && systemctl start postfix
3、镜像地址可以自己选择
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
yum install policycoreutils-python
rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
4、vim /etc/gitlab/gitlab.rb
external_url http://IP:端口 //修改访问地址
5、执行配置
gitlab-ctl reconfigure
6、启动
gitlab-ctl start #启动
gitlab-ctl restart #重启
7、设置开机自启
//开机自启
systemctl enable gitlab-runsvdir.service

本文档详细介绍了如何在CentOS 7.5上安装GitLab,包括启用postfix服务,安装所需软件包,配置GitLab,设置外部访问URL,执行配置和启动服务。此外,还阐述了GitLab的备份、迁移和恢复步骤,包括创建备份,拷贝备份文件到新服务器,恢复备份,以及启动新GitLab服务。
最低0.47元/天 解锁文章
436

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



