zoukankan      html  css  js  c++  java
  • CentOS安装GitLab

    安装GitLab社区版

    sudo yum install -y curl policycoreutils-python openssh-server
    sudo systemctl enable sshd
    sudo systemctl start sshd
    sudo firewall-cmd --permanent --add-service=http
    sudo systemctl reload firewalld
    在系统防火墙中打开HTTP和SSH访问

    sudo yum install postfix
    sudo systemctl enable postfix
    sudo systemctl start postfix
    安装Postfix发送通知邮件

    curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
    添加GitLab软件包存储库

    sudo yum install gitlab-ce
    安装GitLab软件包
    按Y确认

    等待一会儿

    vim /etc/gitlab/gitlab.rb
    修改GitLab配置文件

    修改第13行
    external_url 'http://localhost:8787'

    修改第612行
    取消注释#

    修改第613行
    unicorn['port'] = 9797

    firewall-cmd --zone=public --permanent --add-port=8787/tcp
    firewall-cmd --zone=public --permanent --add-port=9797/tcp
    firewall-cmd --reload
    开放防火墙8787、9797端口

    sudo gitlab-ctl reconfigure
    启动GitLab

    等待一会儿

    sudo gitlab-ctl restart
    重启GitLab

    访问
    http://192.168.1.6:8787/

    首次访问会要求你重置密码并确认
    改为Abcdef@123456

    重新登录
    用户名:root
    密码:Abcdef@123456

  • 相关阅读:
    搭建 springboot selenium 网页文件转图片环境
    洛谷P1352没有上司的舞会-题解
    错误集合
    洛谷P1434滑雪-题解
    洛谷P1278单词游戏-题解
    洛谷P1219八皇后-题解
    洛谷P1443马的遍历-题解
    洛谷P1135奇怪的电梯-题解
    经验集合
    洛谷P1019单词接龙-题解
  • 原文地址:https://www.cnblogs.com/yjlch1016/p/8996124.html
Copyright © 2011-2022 走看看