美文网首页Linux 学习
只要5分钟,Centos7.X上安装git服务器

只要5分钟,Centos7.X上安装git服务器

作者: 鲶鲶有鱼 | 来源:发表于2020-09-21 19:38 被阅读0次

不废话,跟着做
Centos7.X上安装git服务器,以下为操作步骤:

  1. yum install -y postfix cronie policycoreutils-python

  2. 下载RPM包:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

  3. 安装:rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

    image-20200921143502845.png
  1. 修改配置文件:

    vim /etc/gitlab/gitlab.rb 设置 external_rul 的值

    external_rul ‘http://ip地址' 绑定监听IP

  2. 使用gitlab-ctl reconfigure 自动配置,并安装数据库,初始化信息。

    gitlab-ctl reconfigure (装好后谨慎使用)

  3. 启动: gitlab-ctl start

    并检查开放端口,默认80

    设置防火墙开放80端口,或关闭防火墙

    centos7是systemctl stop firewalld

  4. 重置管理员账户密码
    访问 http://ip地址,并修改root默认密码

    image-20200921192757609.png
  5. 登录管理员账户,管理员账号为:root

相关文章

网友评论

    本文标题:只要5分钟,Centos7.X上安装git服务器

    本文链接:https://www.haomeiwen.com/subject/pzkbyktx.html