1. 官方网址:
    https://about.gitlab.com/install/#centos-7
  2. 安装依赖:
    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 firewall-cmd --permanent --add-service=https
    sudo systemctl reload firewalld
    sudo yum install postfix
    sudo systemctl enable postfix
    sudo systemctl start postfix
  3. 安装:
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
    sudo EXTERNAL_URL="192.168.0.11" yum install -y gitlab-ee
  4. 配置文件路径:
    /etc/gitlab/gitlab.rb
  5. 常用命令:
    1. 加载配置:
      gitlab-ctl reconfigure
    2. 启动:
      gitlab-ctl start
    3. 停止:
      gitlab-ctl stop
    4. 重启:
      gitlab-ctl restart
    5. 查看状态:
      gitlab-ctl status
    6. 查看日志:
      gitlab-ctl tail
  6. 访问:
    localhost
    账户名:root
文档更新时间: 2020-08-08 20:40   作者:lee