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 服务器

相关推荐
程序员-珍2 小时前
虚拟机ip突然看不了了
linux·网络·网络协议·tcp/ip·centos
Ljubim.te6 小时前
Linux基于CentOS学习【进程状态】【进程优先级】【调度与切换】【进程挂起】【进程饥饿】
linux·学习·centos
苦逼IT运维7 小时前
YUM 源与 APT 源的详解及使用指南
linux·运维·ubuntu·centos·devops
Good_Starry20 小时前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github
wusam20 小时前
螺蛳壳里做道场:老破机搭建的私人数据中心---Centos下Docker学习04(环境准备)
学习·docker·centos
掘根1 天前
【MySQL】Ubuntu环境下MySQL的安装与卸载
数据库·mysql·centos
安全不再安全1 天前
Linux 安装 yum
linux·运维·centos
陌殇殇殇1 天前
使用GitLab CI构建持续集成案例
运维·ci/cd·云原生·容器·kubernetes·gitlab
吕玉生1 天前
基于GitLab 的持续集成环境
ci/cd·gitlab
黎陌MLing2 天前
centos环境安装JDK详细教程
java·python·centos