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

相关推荐
亚那迦基4 天前
24小时高危漏洞速报,互联网惊天危机来临!PHP、Java、Node.js、NGINX、GitLab无一幸免,看看你家是否中招
nginx·gitlab·php
飞奔的瓜牛4 天前
CentOS 7 系统优化实战指南:从内核参数到服务精简
linux·运维·centos
考虑考虑5 天前
git刷新远程分支列表
git·后端·gitlab
wno7045 天前
CentOS下FTP服务搭建
linux·运维·centos
无足鸟ICT9 天前
【RHCA+】安装Tuned
linux·服务器·centos
IT大白鼠12 天前
GitLab 未认证 RCE 应急实战CVE-2026-97229(CVSS 10.0)
网络·安全·gitlab
David猪大卫18 天前
【Linux修炼】环境变量、进程地址空间
linux·c语言·经验分享·笔记·学习·ubuntu·centos
71777718 天前
Git自建用什么工具比较好:Gitea、Forgejo、GitLab CE与Gitee的选型对比
git·gitlab·gitea
Dragon~Snow19 天前
Centos Stream10 安装 MySQL-9.7.2-linux-glibc2.28-x86_64.tar
linux·mysql·centos
温暖小土20 天前
在 CentOS 上安装 Redis Stack
linux·redis·centos