主要参考:
CentOS-7 下 GitLab 安装部署教程_centos7 安装gitlab-CSDN博客
但是由于我本身服务器配置很小(2核2G),所以运行的时候报错:
execute[clear the gitlab-rails cache] (gitlab::gitlab-rails line 561) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ''
所以我重启安装了centos,然后下载了gitlab,此时,我并没有重启配置文件,而是进入配置文件中先将一些参数调小,然后再重启配置文件,最后就成功了。