1、安装并配置必要的依赖项yum install -y curl policycoreutils-python openssh-server #安装py,ssh依赖项systemctl enable sshd #设置sshd开机启动systemc...
1、安装并配置必要的依赖项
yum install -y curl policycoreutils-python openssh-server #安装py,ssh依赖项
systemctl enable sshd #设置sshd开机启动
systemctl start sshd #启动sshd服务
firewall-cmd --permanent --add-service=http #对外暴露http服务
#(如果提示firewallD is not running,则通过命令查看防火墙是否已经关闭:systemctl status firewalld)
#(如果状态是dead,则重启防火墙:systemctl start firewalld)
systemctl reload firewalld #重新载入firewalld
2、添加GitLab软件包并安装软件包
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash #下载软件包
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee #安装软件包,将http://gitlab.example.com改成你的访问地址
3、访问
首次访问时,将被重定向到密码重置界面。默认帐户的用户名root。
备注:
- 系统内存如果太小,访问gitlab会502,所以要么升级系统硬件,要么修改一下./etc/gitlab/gitlab.rb中的配置。
- postfix邮箱系统看个人需求安装。
- 官方文档:https://about.gitlab.com/installation/
沃梦达教程
本文标题为:CentOs下搭建GitLab
猜你喜欢
- KVM虚拟化Linux Bridge环境部署的方法步骤 2023-07-11
- 利用Docker 运行 python 简单程序 2022-10-16
- IIS搭建ftp服务器的详细教程 2022-11-15
- 教你在docker 中搭建 PHP8 + Apache 环境的过程 2022-10-06
- 阿里云ECS排查CPU数据分析 2022-10-06
- nginx中封禁ip和允许内网ip访问的实现示例 2022-09-23
- 解决:apache24 安装后闪退和配置端口映射和连接超时设置 2023-09-11
- 【转载】CentOS安装Tomcat 2023-09-24
- CentOS7安装GlusterFS集群的全过程 2022-10-10
- CentOS_mini下安装docker 之 安装docker CE 2023-09-23
