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


基础教程推荐
猜你喜欢
- centos 7 安装及配置zabbix agent 2023-09-24
- linux下安装apache与php;Apache+PHP+MySQL配置攻略 2023-08-07
- IIS 6 的 PHP 最佳配置方法 2022-09-01
- linux之conda环境安装全过程 2023-07-11
- nginx.conf(centos7 1.14)主配置文件修改 2023-09-23
- apache和nginx结合使用 2023-09-10
- Apache Hudi数据布局黑科技降低一半查询时间 2022-10-06
- 实战Nginx_取代Apache的高性能Web服务器 2023-09-29
- Apache服务器配置攻略3 2022-09-01
- 服务器添加git钩子的步骤 2022-12-12