1. Install and configure the necessary dependencies
sudo apt-get update sudo apt-get install -y curl openssh-server ca-certificates
Next, install Postfix email notifications. If you want to send e-mail using other solutions, please skip this step and configure an external SMTP server after installation GitLab.
sudo apt-get install -y postfix
During Postfix installation, a configuration screen may appear. Select "Internet site" and press Enter. Use your external DNS server as a 'mail name' and press Enter. If another screen appears, continue to press the Enter key to accept the default value.
2. Add GitLab package repository and install packages
add GitLab package repository.
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
Next, install GitLab package. The `http: // gitlab.steven.com` change the URL you want to access your GitLab instance. Will automatically install the URL of the configuration and start GitLab. After you install the HTTPS requires additional configuration.
sudo EXTERNAL_URL="http://gitlab.steven.com" apt-get install gitlab-ee
Installation will be completed states the following:
Running handlers complete Chef Client finished, 425/633 resources updated in 09 minutes 19 seconds gitlab Reconfigured! *. *. *** *** ***** ***** .****** ******* ******** ******** ,,,,,,,,,***********,,,,,,,,, ,,,,,,,,,,,*********,,,,,,,,,,, .,,,,,,,,,,,*******,,,,,,,,,,,, ,,,,,,,,,*****,,,,,,,,,. ,,,,,,,****,,,,,, .,,,***,,,, ,*,. _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ `/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/ Thank you for installing GitLab! GitLab should be available at http://gitlab.steven.com For a comprehensive list of configuration options please see the Omnibus GitLab readme https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
3. Browse to the host name and sign in
the first visit, you will be redirected to the password reset screen. Provide initial administrator account password, you will be redirected back to the login screen. Log in using the default root account user name.
For detailed instructions on installation and configuration, please refer to our documents.
4. Modify the IP, PORT
south you /etc/gitlab/gitlab.rb
external_url 'https://192.168.3.9'
unicorn['port'] = 8081
sudo gitlab-ctl reconfigure