下载rpm包
安装包下载地址:https://packages.gitlab.com/gitlab/gitlab-ce
rpm 包国内下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/
安装依赖
yum -y install policycoreutils-python
安装
rpm -hiv gitlab-ce-11.3.11-ce.0.el7.x86_64.rpm
修改配置文件
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.8.3'
#可选邮件通知设置
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.qq.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "发送者邮箱"
gitlab_rails['smtp_password'] = "授权码"
gitlab_rails['smtp_domain'] = "qq.com"
gitlab_rails['smtp_authentication'] = :login
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
gitlab_rails['gitlab_email_from'] = "发送者邮箱"
user["git_user_email"] = "发送者邮箱"
初始化并启动服务
gitlab-ctl reconfigure
初次访问会提示重置密码,设置后跳转到登录,默认管理用户名root,密码为刚设置的密码
在web界面新建项目magedu,创建mage用户设置为管理员权限