GitLab 安装配置和维护

Posted nehcdahc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GitLab 安装配置和维护相关的知识,希望对你有一定的参考价值。

邮箱配置

vi /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure

示例 1

gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.server"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "smtp user"
gitlab_rails[‘smtp_password‘] = "smtp password"
gitlab_rails[‘smtp_domain‘] = "example.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_openssl_verify_mode‘] = ‘peer‘
# If your SMTP server does not like the default ‘From: gitlab@localhost‘ you
# can change the ‘From‘ with this setting.
gitlab_rails[‘gitlab_email_from‘] = ‘gitlab@example.com‘
gitlab_rails[‘gitlab_email_reply_to‘] = ‘noreply@example.com‘

示例 2

gitlab_rails[‘gitlab_email_enabled‘] = true
gitlab_rails[‘gitlab_email_from‘] = ‘gitlab@recloud.cc‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.ym.163.com"
gitlab_rails[‘smtp_port‘] = 25
gitlab_rails[‘smtp_user_name‘] = "gitlab@recloud.cc"
gitlab_rails[‘smtp_password‘] = "7XNcwLeQJE"
gitlab_rails[‘smtp_domain‘] = "recloud.cc"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = false

维护

gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl status

以上是关于GitLab 安装配置和维护的主要内容,如果未能解决你的问题,请参考以下文章

gitlab基本维护和使用

gitlab基本维护和使用

gitlab基本维护和使用

GitLab安装部署

Gitlab代码管理仓库安装部署

安装gitlab并汉化