1 Switching Source:
# Curl Https://packages.gitlab.com/gpg.key 2>/dev/null | sudo apt-key add-&>/dev/null
# echo ' Deb Https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu trusty main ' >>/etc/apt/sources.list.d/ Gitlab-ce.list
# Apt-get Update
# Apt-get Install Gitlab-ce
2 Configuring domain Names and mailboxes
Vi/etc/gitlab/gitlab.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Gitlab_rails[' smtp_enable '] = true Gitlab_rails[' smtp_address '] = "smtp.qq.com" Gitlab_rails[' Smtp_port '] = 465 Gitlab_rails[' Smtp_user_name '] = "[email protected]" Gitlab_rails[' Smtp_password '] = "Your_smtp_user_password" Gitlab_rails[' smtp_authentication '] = "Login" Gitlab_rails[' Smtp_ssl '] = true Gitlab_rails[' Smtp_enable_starttls_auto '] = true Gitlab_rails[' Smtp_tls '] = true # If Your SMTP server does not like the default ' from: [email protected] ' you # can change the "from" with this setting. Gitlab_rails[' Gitlab_email_from '] = ' [email protected] ' Gitlab_rails[' gitlab_email_reply_to '] = ' [email protected] ' |
3 Modify server Address:
|
External_url ' http://your_domain_or_ip.com ' |
4 after execution Gitlab-ctl reconfigure effective configuration
5 Open External_url address, change the password can be accessed, the default root
ubuntu14.10 installation Gitlab