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

相关推荐
XMYX-016 分钟前
CentOS 7 搭建 PostgreSQL 14 实战指南
linux·postgresql·centos
丁丁丁梦涛27 分钟前
TencentOS Server 4.4(兼容centos 9 stream)部署KKFileView
linux·运维·centos·kkfileview
白驹过隙不负青春1 小时前
Docker-compose部署java服务及前端服务
java·运维·前端·docker·容器·centos
源图客3 小时前
CentOS系统安装Python3.12.10
linux·运维·centos
MyCollege19993 小时前
以UEFI模式从U盘安装centos遇到空间不足
linux·运维·centos
BIBI20496 小时前
通过 HeidiSQL 连接 CentOS 7 中的 MySQL 5.7
linux·windows·mysql·centos·数据库管理·环境搭建·服务器运维
企鹅郁金香7 小时前
使用Docker部署Gitlab和Gerrit (一)
docker·容器·gitlab·gerrit部署
两千连弹7 小时前
VMware安装CentOS Stream 9及Redis安装
linux·运维·centos
yueguangni16 小时前
sysstat 版本 10.1.5 是 CentOS 7 的默认版本,默认情况下确实不显示 %wait 字段。需要升级到新版sysstat
linux·运维·centos
豆是浪个18 小时前
Linux(Centos 7.6)命令详解:ps
linux·windows·centos