Ubuntu printed books 18.04
1. install dependencies
sudo apt update
sudo apt install ca-certificates curl openssh-server
You can choose to install postfix, provide mail service
sudo apt install postfix
2. Install Gitlab
Download the installation script
cd /tmp
curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
Execute scripts, you do not worry if you can see yourself, this script mainly to add GitLab package repository
sudo bash /tmp/script.deb.sh
Or use the Tsinghua source
# First Trust GitLab the GPG public key: curl HTTPS: //packages.gitlab.com/gpg.key 2> / dev / null | sudo APT-Key the Add - &> / dev / null # then modify the vim / etc / apt /sources.list.d/gitlab- ce.list # will be added to it below deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu xenial main
Community Edition installation Gitlab
sudo apt install gitlab-ce
Wait a moment installation is complete
3. Configure start Gitlab
Configuration Gitlab, the specific internal configuration file described with reference to
sudo came /etc/gitlab/gitlab.rb
Configure and enable the services
sudo gitlab-ctl reconfigure
View Status
sudo gitlab-ctl status
Appears similar to the following is normal
run: alertmanager: (pid 11974) 95s; run: log: (pid 11644) 139s run: gitaly: (pid 11863) 97s; run: log: (pid 11040) 237s run: gitlab-exporter: (pid 11855) 97s; run: log: (pid 11556) 153s run: gitlab-workhorse: (pid 11829) 98s; run: log: (pid 11397) 171s run: grafana: (pid 11995) 95s; run: log: (pid 11759) 111s run: logrotate: (pid 11434) 166s; run: log: (pid 11454) 165s run: nginx: (pid 11380) 172s; run: log: (pid 11399) 171s run: node-exporter: (pid 11839) 98s; run: log: (pid 11487) 159s run: postgres-exporter: (pid 11987) 95s; run: log: (pid 11661) 136s run: postgresql: (pid 11134) 232s; run: log: (pid 11223) 229s run: prometheus: (pid 11881) 96s; run: log: (pid 11606) 145s run: redis: (pid 10962) 244s; run: log: (pid 10974) 242s run: redis-exporter: (pid 11858) 97s; run: log: (pid 11581) 149s run: sidekiq: (pid 11347) 179s; run: log: (pid 11359) 178s run: unicorn: (pid 11317) 186s; run: log: (pid 11337) 183s
4. Log web
Access domain name you set above, or the corresponding ip address, you can enter interface
For the first time into the interface will be asked to change your password, complete change log on again, the default root account