软件环境
centos7.3、gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
开始安装
安装依赖软件
yum -y install policycoreutils openssh-server openssh-clients postfix
设置postfix开机自启
systemctl enable postfix && systemctl start postfix
安装gitlab
rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
修改配置
编辑配置文件/etc/gitlab/gitlab.rb
修改external_url为
external_url ‘http://ip:port’
保存并退出
启动GitLab
执行命令:gitlab-ctl reconfigure
访问GitLab
初始账户: root 密码: 5iveL!fe
访问地址:http://ip:端口号