工欲善其事, its prerequisite. This article describes the installation process of Gitlab. Need to have a certain degree of English reading ability.
Installation Environment:
Ubuntu:ubuntu 17.04
Official recommendations required hardware conditions: storage:a Fast Drive (7200 RPM and up) or a solid state (SSD)
Cpu:2 cores is the recommended number of cores and supports
MEMORY:4GB RAM is the recommended memory size for all installations and supports up to the users
The official recommended Ubuntu installation is also extremely concise and concise:
1. Install and configure the necessary dependencies
sudo apt-get install-y Curl openssh-server ca-certificates
Open http and SSH to the end of their access.
2. ADD the GITLAB package server and install the
Curl-ss https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install Gitlab-ce
Install the Gitlab source package in a apt-get manner.
3. Configure and start GitLab
sudo gitlab-ctl reconfigure
Configure the configuration of the Gitlab, and start Gitlab.
At the end of the installation, this article ends, but the installation is so smooth. The answer is certainly not, if there is no such article. Here are two questions:
1.apt-get mode installation is not successful, what to do.
2. The third step says configure, how to configure. For example I want to modify the access port, how to do it.
one. Apt-get mode installation is unsuccessful, what to do.
OK, concise, apt-get installation is not successful, Ubuntu machine can be used to manually install the source package, the official documents in English are described as follows:
If you aren't comfortable installing the repository through a piped script, you can find the entire script here and S Elect and download the package manually and install using:
Dpkg-i Gitlab-ce-xxx.deb
Click the Select and download the package manually find the installation files that are appropriate for your system, download the system disk, and proceed with:
Dpkg-i Gitlab-ce-xxx.deb
Installation can be done.
two. The third step says configure, how to configure. For example I want to modify the access port, how to do it.
Here is the configuration of the two aspects of the problem (Gitlab comparison Pang Heavy, involved in many aspects): 2.1 Configure access Path
Click Setting up a domain Name/url, here is the official documentation detailed configuration instructions, the younger brother here also this document as a description, after the installation, in this configuration file/etc/gitlab/gitlab.rb modified as follows:
External_url "Http://gitlab.example.com"
For example, I set the following:
External_url ' http://10.200.80.255 '
after Setup is complete:
Resetting the configuration
sudo gitlab-ctl reconfigure
Restart Gitlab Service
sudo gitlab-ctl restart
At this point, in the browser summary input http://10.800.80.255 default port is 80, you can access to Gitlab home, initialization will let you set the administrator password. Use at this time:
root+ can be accessed by the password you set.
2.2 Configuring Access ports
Sometimes the default 80 port is occupied, you need to change the port, the official website said:
Setting The NGINX Listen port:
By default NGINX would listen on the port specified in External_url or implicitly with the right port (with HTTP, 443 for HTTPS). If you were running GitLab behind a reverse proxy, you could want to override the listen port to something else. For example with use port 8081:
nginx[' listen_port '] = 8081
In the same vein, the/ETC/GITLAB/GITLAB.RB changes in the configuration file are as follows:
nginx[' listen_port '] = 8081
Reset the configuration file here, restart the Gitlab server, at this time through External_url:listen_port can access to the first page of Gitlab that.