1、安装依赖:
yum -y install policycoreutils-python
2、下载安装包:
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
3、安装:
rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
4、修改配置:
vim /etc/gitlab/gitlab.rb
,设置:external_url 'http://gitlab.xxx.com:8081'
5、执行:
gitlab-ctl reconfigure
6、执行:
gitlab-ctl restart
- Notice:由于是部署在阿里云的,记得放行阿里云的安全组端口
- 异常时候查看日志,路径为:
/var/log/gitlab/unicorn/unicorn_stderr.log