Centos7 安装GitLab服务

安装Gitlab第三方依赖

yum install -y curl policycoreutils-python openssh-server
yum install postfix

添加Gitlab官方软件源

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

安装Gitlab-ce

yum install -y gitlab-ce

出现以下信息,表示安装成功

在这里插入图片描述

配置Gitlab

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

修改external_url 'http://你的服务器地址或者域名'

重启Gitlab应用配置gitlab-ctl restart

访问http://你的服务器地址或者域名 会让你设置root登录密码

Gitlab启动|停止|状态|重启

启动:gitlab-ctl start

停止:gitlab-ctl stop

状态:gitlab-ctl status

重启:gitlab-ctl restart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章