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 天前
MySQL 5.7 在 CentOS 7 环境安装:从清理 MariaDB 到初始化与完善配置
数据库·mysql·centos·mariadb
我一定会有钱5 天前
打造完美工作流:Git 配置”一次推送,三端同步”(Gitee/GitCode/GitHub)
开发语言·windows·vscode·搜索引擎·gitlab·github·visual studio code
a未来永远是个未知数5 天前
centos离线安装ntpcent
linux·运维·centos
LXY_BUAA5 天前
Git_在飞牛中部署 GitLab_20260817
git·gitlab
☆凡尘清心☆6 天前
CentOS Stream 9 源码编译搭建 Zabbix7.0.29 完整部署方案(部署成功)
linux·运维·centos
wsad05326 天前
CentOS 10 上使用 Docker Compose 部署 Discuz X5.0 论坛完整教程
linux·docker·centos·discuz
Jeanyia8 天前
GitLab 配套 Git 常用命令
git·gitlab
极小狐8 天前
极狐GitLab 补丁版本:19.2.1、19.1.3、19.0.5
网络·安全·gitlab·极狐gitlab·安全更新·补丁版本
rustfs9 天前
GitLab 如何与 RustFS 集成?
分布式·rust·gitlab
檀越剑指大厂9 天前
CentOS部署Landlord斗地主项目:源码编译并实现远程访问
linux·运维·centos