环境Ubuntu 12.04
1. Install and configure the necessary dependencies
If you install Postfix to send email please select 'Internet Site' during setup. Instead of using Postfix you can also use Sendmail orconfigure a custom SMTP server. If you wish to use Exim, please configure it as an SMTP server.
On Centos 6 and 7, the commands below will also open HTTP and SSH access in the system firewall.
sudo apt-get install curl openssh-server ca-certificates postfix 2. Add the GitLab package server and install the package
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
If you are not comfortable installing the repository through a piped script, you can find the entire script here.
3. Configure and start GitLab
sudo gitlab-ctl reconfigure 4. Browse to the hostname and login
Username: root
Password: 5iveL!fe
到此可以使用root账户登录,新建项目。
下面配置一下邮件:
vim /etc/gitlab/gitlab.rb