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

相关推荐

  1. CentOS安装gitlab

    2024-01-06 17:24:01       42 阅读
  2. centos arm 架构安装gitlab仓库

    2024-01-06 17:24:01       39 阅读
  3. centos7.5 安装gitlab-ce (Omnibus)

    2024-01-06 17:24:01       17 阅读
  4. CentOS 7.x 使用 RPM 包安装 Gitlab

    2024-01-06 17:24:01       26 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-06 17:24:01       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-06 17:24:01       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-06 17:24:01       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-06 17:24:01       20 阅读

热门阅读

  1. 2023.12.31力扣每日一题——一年中的第几天

    2024-01-06 17:24:01       43 阅读
  2. pytest常用的第三方插件介绍

    2024-01-06 17:24:01       35 阅读
  3. 根据具体时间转换为一周前、几小时前格式

    2024-01-06 17:24:01       38 阅读
  4. Redis过期清理策略和内存淘汰机制

    2024-01-06 17:24:01       43 阅读
  5. 华为云服务介绍(二)

    2024-01-06 17:24:01       45 阅读
  6. 如何解决大型语言模型的「幻觉」问题

    2024-01-06 17:24:01       38 阅读
  7. linux 文件系统

    2024-01-06 17:24:01       32 阅读