1、yum 安装相关依赖包:
yum install -y postfix cronie policycoreutils-python
2、下载RPM包:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
3、安装:
rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
4、修改配置文件:
vim /etc/gitlab/gitlab.rb
external_rul 'http://192.168.2.100' 绑定监听IP
5、使用gitlab-ctl reconfigure 自动配置,并安装数据库,初始化信息。
gitlab-ctl reconfigure
6、启动:
gitlab-ctl start
并检查开放端口,默认80
设置防火墙开放80端口,或关闭防火墙
centos7是systemctl stop firewalld
打开浏览器:http://192.168.2.100/
开启gitlab之旅吧!