CentOS:安装gitlab

1、安装依赖

复制代码
yum install -y curl policycoreutils-python openssh-server

#centos8没有policycoreutils-python yum源,不用管

2、启动ssh并设置为开机自启动

复制代码
systemctl enable sshd
systemctl start sshd

3、安装Postfix来发送通知邮件。

复制代码
yum install postfix

4、设置Postfix开机自启动。

复制代码
systemctl enable postfix

5、启动Postfix服务。

复制代码
vim /etc/postfix/main.cf 

# 添加
inet_interfaces = all

保存退出运行:

复制代码
sudo systemctl start postfix 

6、下载gitlab

复制代码
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-12.10.1-ce.0.el8.x86_64.rpm

7、安装

复制代码
rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

8、编辑ip和端口

复制代码
vim /etc/gitlab/gitlab.rb

#找到 external_url 

# 重新配置并启动
gitlab-ctl reconfigure
gitlab-ctl restart

# 开启
gitlab-ctl start

# 关闭
gitlab-ctl stop

注意警惕!双平台挖矿僵尸网络 Sysrv-hello 盯上用户 GitLab 服务器

相关推荐
艾莉丝努力练剑6 小时前
【Linux基础开发工具 (三)】Vim从入门到精通(下):效率翻倍的编辑技巧与个性化配置攻略
linux·运维·服务器·c++·ubuntu·centos·vim
心灵宝贝14 小时前
CentOS 7 安装 unzip-6.0-21.el7.x86_64.rpm 步骤详解(附安装包)
linux·服务器·centos
q***133414 小时前
在linux(Centos)中Mysql的端口修改保姆级教程
linux·mysql·centos
谢尔登14 小时前
通用会话控制方案
前端·网络协议·tcp/ip·react.js·gitlab
adnyting1 天前
【Linux日新月异(十)】CentOS 7 文件系统结构深度解剖:从根到叶的完整指南
linux·运维·centos
adnyting1 天前
【Linux日新月异(九)】CentOS 7其他常用命令大全:系统操作与管理必备技巧
linux·运维·centos
是Judy咋!1 天前
RabbitMQ---集群搭建(HAProxy负载均衡高可用)
centos·rabbitmq·负载均衡
毛甘木2 天前
阿里云CentOS环境下Docker使用教程
阿里云·docker·centos
地球没有花2 天前
gitlab cicd首次操作
运维·git·ci/cd·gitlab
adnyting2 天前
【Linux日新月异(五)】CentOS 7防火墙深度解析:firewalld全面指南
linux·运维·centos