zoukankan      html  css  js  c++  java
  • gitlab搭建

    服务器准备

    准备一个centos7以上版本的服务器。关闭防火墙,并且配置好主机名和ip。
    >>> systemctl stop firewalld.service
    >>> systemctl disable firewalld.service
    

    安装包准备

    >>> wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ol/7/gitlab-ce-13.10.2-ce.0.el7.x86_64.rpm/download.rpm
    >>> mv gitlab-ce-13.10.2-ce.0.el7.x86_64.rpm /opt/module/
    

    编写脚本

    >>> vim gitlab-install.sh
    sudo rpm -ivh /opt/module/gitlab-ce-13.10.2-ce.0.el7.x86_64.rpm 
    sudo yum install -y curl policycoreutils-python openssh-server cronie 
    sudo lokkit -s http -s ssh 
    sudo yum install -y postfix 
    sudo service postfix start 
    sudo chkconfig postfix on 
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 
    sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce 
    

    给脚本增加权限

    >>> chmod +x gitlab-install.sh
    

    执行脚本开始安装

    >>> ./gitlab-install.sh
    

    初始化gitlab服务

    >>> gitlab-ctl reconfigure
    

    启动服务

    >>> gitlab-ctl start
    >>> gitlab-ctl stop  # 停止服务
    

    网页访问

    首先需要在本地win或者mac电脑上的hosts文件中添加映射关系
    192.168.1.12  gitlab-server    # (linux主机名)
    

    -------------------------------------------

    个性签名:代码过万,键盘敲烂!!!

    如果觉得这篇文章对你有小小的帮助的话,记得在右下角点个“推荐”哦,博主在此感谢!

  • 相关阅读:
    java synchronized
    Java多线程的常见例子
    List,ArrayList
    BufferedInputStream与BufferedOutputStream
    super,this
    ServletConfig与ServletContext
    [转] 编写高效的 CSS 选择器
    浏览器是怎样工作的:渲染引擎,HTML解析
    sublime插件insertDate显示ISO时间
    《十日谈》摘要1
  • 原文地址:https://www.cnblogs.com/weiweivip666/p/14791572.html
Copyright © 2011-2022 走看看