先安装依赖:
> yum install curl openssh-server openssh-clients postfix cronie
> lokkit -s http -s ssh
原本想用源码搭建,但由于网络原因有些ruby的依赖始终无法下载。
然后就想用官网的直接安装包(https://about.gitlab.com/installation/#centos-6),
不行的话就再试试清华镜像的直接安装包(https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/)
如果还是不行的话那就试试先在外部下载下来再传到linux里,用 yum localinstall ****(文件名) 的方式本地安装
安装成功后执行
> gitlab-ctl reconfigure
成功后默认的端口是80,可以通过
> gitlab-ctl status
命令查看各种状态。
第一次登陆会要求更改默认用户的密码(要求最短密码8位),默认用户是“root”