gitlab安装

一:硬性要求:

内存:4GB

存储:100GB

系统:centos7.4

二:环境配置

1.selinux值为disabled

sed -i 's#SELINUX=enforcing#SELINUX=disabled#' /etc/sysconfig/selinux

2.防火墙iptables -F清空策略

三:安装需要的组件

yum  install   -y  curl  openssh-server  openssh-clients  git   cronie policycoreutils-python  patch

四:防火墙开放http

firewall-cmd --add-service=http --permanent

firewall-cmd --reload

五:下载gitlab及安装

下载地址为:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

建议不要安装最新版

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

出现下面这图,说明安装成功

六:启动gitlab服务

gitlab-ctl reconfigure   载入配置文件

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

external_url='http://192.168.43.135'(ip地址)

gitlab-ctl reconfigure     重启载入配置文件

gitlab-ctl restart        启动服务

七:效果

打开浏览器输入ip即可看到gitlab界面

posted @ 2019-01-10 23:49  青纹刀狼  阅读(143)  评论(0编辑  收藏  举报