zoukankan      html  css  js  c++  java
  • 安装gitlab

    1. 安装依赖软件
    yum -y install policycoreutils openssh-server openssh-clients postfix

    vi  /etc/postfix/main.cf

    inet_interfaces = localhost

    inet_protocols = all

    改成:

    inet_interfaces = all

    inet_protocols = all

    重新启动

    service postfix start

    2.设置postfix开机自启,并启动,postfix支持gitlab发信功能
    systemctl enable postfix && systemctl start postfix
    3.下载gitlab安装包,然后安装
    centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
    centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
    我的是centos7,所以我在https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7中找了个gitlab8.0.0版本,建议下载一个比较新的版本,我这里选了一个比较旧的版本仅仅是实验记录。
    下载rpm包并安装:
    wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.0.1-ce.0.el7.x86_64.rpm
    【需要 yum install policycoreutils-python

    rpm -ivh gitlab-ce-12.0.1-ce.0.el7.x86_64.rpm --force

    4.修改gitlab配置文件指定服务器ip和自定义端口
    vim  /etc/gitlab/gitlab.rb
    退出并保存
    ps:注意这里设置的端口不能被占用,默认是8080端口,如果8080已经使用,请自定义其它端口,并在防火墙设置开放相对应得端口。
    5.重置并启动GitLab
    执行以下命令
    gitlab-ctl reconfigure
    gitlab-ctl restart
     
     
  • 相关阅读:
    python 如何把在字符串里面的名字变成变量,进行复制
    2017-05-30 英语
    RYU 中如钩构建TCP数据包,设置ACK等标志
    Arch linux LXR 安装过程
    ubuntu如何配置lxr
    2017-05-27 英语
    Emacs学习笔记:移动
    9.特殊矩阵的压缩存储
    13.链路层设备
    9.CSMA_CD协议
  • 原文地址:https://www.cnblogs.com/happyday56/p/11125712.html
Copyright © 2011-2022 走看看