centos7安装gitlab

centos7安装gitlab

  1. 安装依赖:
    yum  -y  install  curl  policycoreutils-python  openssh-server
    systemctl  enable  sshd
    systemctl  start  sshd
    yum  -y  install  postfix
    systemctl  enable  postfix
    systemctl  start  postfix
    firewall-cmd  --permanent  --add-service=http
    systemctl  reload  firewalld
  2. 安装:
    curl  https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh  |  bash
    yum  -y  install  gitlab-ee
  3. 启动:
    a. 加载配置:
    gitlab-ctl  reconfigure

    b. 启动:

    gitlab-ctl  start
  4. 常用命令:
    a. 加载配置:
    gitlab-ctl  reconfigure

    b. 启动:

    gitlab-ctl  start

    c. 停止:

    gitlab-ctl  stop

    d. 重启:

    gitlab-ctl  restart

    e. 查看状态:

    gitlab-ctl  status
  5. 修改密码并登录:
    访问:172.20.10.11
    用户名:root

文章同步发布: https://www.geek-share.com/detail/2751061916.html

posted @ 2018-10-23 09:45  sohu_home  阅读(194)  评论(0编辑  收藏  举报