1、配置gitlab的步骤
hostnamectl set-hostname gitlib-server
yum install jdk-8u111-linux-x64.rpm
rpm -ivh gitlab-ce-8.13.5-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
external_url ‘http://192.168.43.61‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.qq.com"
gitlab_rails[‘smtp_port‘] = 25
gitlab_rails[‘smtp_user_name‘] = "[email protected]"
gitlab_rails[‘smtp_password‘] = "gnjvecpnnmcvfibc" qq邮箱开通smtp服务时设置的密码
gitlab_rails[‘smtp_domain‘] = "qq.com"
gitlab_rails[‘smtp_authentication‘] = :login
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘gitlab_email_from‘] = "[email protected]"
user[‘git_user_email‘] = "[email protected]"
qq邮箱的设置:
1、在设置-->账户中将smtp邮件服务开启
2、设置-->反垃圾-->设置邮件地址白名单,将[email protected]添加到白名单
gitlab-ctl --help
gitlab-ctl reconfigure 重读配置文件
http://172.18.62.61/ 访问页面,设置密码后以root登录,如下页面
![](http://i2.51cto.com/images/blog/201806/22/7aafca20f007f942004e7eb69cb3e47a.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
原文地址:http://blog.51cto.com/angwoyufengtian/2131716
时间: 2024-10-28 23:19:19