gitlab环境部署

一:配置主机名

[root@localhost ~]# hostname gitlab
[root@localhost ~]# bash

二:安装依赖包

[root@gitlab ~]# yum -y install curl openssh-server openssh-clients postfix cronie policycoreutils-python

三:安装gitlab

[root@gitlab ~]# ls
anaconda-ks.cfg     gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm
[root@gitlab ~]# rpm -ivh gitlab-ce-11.11.3-ce.0.el7.x86_64.rpm

四:修改配置文件

[root@gitlab ~]# vim /etc/gitlab/gitlab.rb

external_url 'http://192.168.200.11'

五:启动gitlab

[root@gitlab ~]# gitlab-ctl reconfigure

六:测试

 

 

 

 

 

posted @ 2019-11-15 20:10  小侠猪猪  阅读(194)  评论(0编辑  收藏  举报