Linux-----------gitlab部署

下载源码rpm包
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.7.8-ce.0.el7.x86_64.rpm/download.rpm

下载依赖
yum install vim gcc gcc-c++ wget net-tools lrzsz iotop bash-completion -y
yum install curl policycoreutils openssh-server openssh-client postfix -y

安装
yum -y install gitlab-ce-12.7.8-ce.0.el7.x86_64.rpm

修改配置文件
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.1.1' (域名或ip)
//新增
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.163.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "rootroot@163.com"
gitlab_rails['smtp_password'] = "zhang@123"
gitlab_rails['smtp_domain'] = "163.com"
gitlab_rails['smtp_authenticatiom'] = :login
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['gitlab_email_from'] = 'rootroot@163.com'
user["git_user_-email"] = "rootroot@163.com"

初始化服务
gitlab-ctl reconfigure #修改完配置文件要执行此操作
gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart

登录
http://192.168.1.1 #配置文件配置的
修改密码(8位)
默认账户root

posted @ 2020-03-27 15:13  A学无止境A  阅读(264)  评论(0编辑  收藏  举报