centos 安装 gitlab


  1. 添加gitlab镜像

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

  1. 安装gitlab的一个依赖包

yum install -y policycoreutils-python

  1. 安装gitlab

rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

  1. 修改gitlab配置文件指定服务器ip和自定义端口

vi /etc/gitlab/gitlab.rb

  1. 重置并启动gitlab

gitlab-ctl reconfigure
gitlab-ctl restart

  1. 设置防火墙

sudo firewall-cmd –add-service=http –permanent
sudo systemctl reload firewalld

  1. 安装成功,通过之前设置的IP进行访问gitlab,初次使用需要设置root用户的初始密码

    原文链接:https://blog.csdn.net/wsaku/article/details/100585306

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注