一、按照官网介绍流程进行安装
https://about.gitlab.com/installation/#centos-6
第一步基本上没有什么问题。
第二步,踩坑了。 1) 执行curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh时,报:curl: (2) Failed Initialization。
解决方案:
wget https://curl.haxx.se/download/curl-7.56.1.tar.gz
tar xvf curl-7.56.1.tar.gz
cd curl-7.56.1
./configure --disable-shared 此处一定注意,disable前是双--。
make
make install
2) 执行 sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ee
这里把gitlab-ee 换成gitlab-ce。ee是企业版。
第三步:配置端口号和访问地址:
参考:http://blog.csdn.net/fengchao2016/article/details/77851234
第四步:阿里云的安全配置,把访问端口打开。
然后在本地浏览器输入IP+端口就可以了访问了。