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

相关推荐
wacpguo16 小时前
install GCC on CentOS 7
linux·运维·centos
Python-AI Xenon21 小时前
RHEL / CentOs 7.9 离线升级OpenSSH完整指南
linux·centos·numpy
运维有小邓@21 小时前
如何在 CentOS 主机上配置集中式 Syslog 服务器
linux·服务器·centos
述清-架构师之路2 天前
vmWare的CentOS系统网路连不上处理记录
linux·运维·centos
木易 士心2 天前
GitLab 安装指南
git·gitlab
HABuo2 天前
【linux基础I/O(一)】文件系统调用接口&文件描述符详谈
linux·运维·服务器·c语言·c++·ubuntu·centos
Linux运维技术栈2 天前
GitLab社区版备份优化:3M包为何是独立完整备份?
运维·git·gitlab
weixin_462446233 天前
一键安装 MySQL 5.7(CentOS 7)自动化脚本详解
mysql·centos·自动化
爱编码的傅同学3 天前
【线程同步】信号量与环形队列的生产消费模型
linux·windows·ubuntu·centos
Nick.Q3 天前
CentOS 8 离线安装beyond compare
linux·centos