系统 阿里ECS centos7.2 root用户登陆,没有开启防火墙
1、安装配置依赖项
$ yum install -y curl policycoreutils-python openssh-server openssh-clients postfix cronie
$ systemctl enable sshd
$ systemctl start sshd
$ systemctl enable postfix
$ systemctl start postfix
2、安装gitlab
$ curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
$ yum install -y gitlab-ce
3、修改域名和端口
$ vim /etc/gitlab/gitlab.rb
将external_url 'http://localhost'修改为你想要的域名和端口
比如:external_url 'http://test.example.com:81'
4、启动
$ gitlab-ctl reconfigure
5、打开浏览器修改密码就可以了