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

六:测试

 

猜你喜欢

转载自www.cnblogs.com/ZCQ123456/p/11869322.html
今日推荐