This article describes how to install the latest GitLab version control tools on Ubuntu [Ubuntu 18.04.3].
First, install the update dependencies required GitLab
sudo apt-get update
The download process, the network should be safeguarded, or download a long time.
sudo apt-get install -y curl openssh-server ca-certificates
Next, install Postfix e-mail to send 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
Second, the installation GitLab
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash
The above command, is to download the latest version of GitLab, if you do not install the latest version, so you need to download the relevant version of the rpm installation package, and then the command-line installation.
Installation GitLab
sudo apt-get install gitlab-ee
Network or should be protected, otherwise the download package are enough to choke
Installation will be completed GitLab display interface.
Third, the configuration and startup
1, modify the configuration file url address gitlab.rb
vim /etc/gitlab/gitlab.rb
Modify external_url, change the url address you want to visit.
2. Reconfigure
gitlab-ctl reconfigure
3, check the running status
gitlab-ctl status
如果run正常,则成功,否则通过命令行启动gitlab
gitlab-ctl start
四、访问Gitlab网站
如果没有修改默认端口,可以通过ip的方式访问GitLab,如果有修改则要加上端口。或者也可以修改电脑的host,把ip和刚才配置的external_url进行映射。
C:\Windows\System32\drivers\etc
在以上目录。用管理员身份打开。
添加映射:
192.168.109.128 shaw-gitlab.com
默认会创建一个root用户,会提示你修改密码,修改完之后,就可以通过用户名密码使用GitLab了。