How to install the configuration of the version management tool gitlab
This article mainly introduces the version management tool gitlab how to install the configuration, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
First, install configuration dependencies
Sudo yum install curl openssh-server openssh-clients postfix cronie-y
Sudo service postfix start
Sudo chkconfig postfix on
Sudo lokkit-s http-s ssh
Second, add the GitLab repository and install it on the server
Wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-10.1.4-ce.0.el6.x86_64.rpm
Rpm-ivh gitlab-ce-XXX.rpm
Start gitlab:sudo gitlab-ctl reconfigure
If the access http:127.0.0.1:80 is not accessible, then use the command to view the log (gitlab-ctl tail # view all logs):
Gitlab-ctl tail payback port 80 is occupied.
Modify the gitlab startup port:
Gitlab itself uses port 80. If 80 is enabled on the server before installation, an error will be reported after installation. The default port of gitlab needs to be changed. Modify vim / etc/gitlab/gitlab.rb:external_url 'http://10.211.55.8:90'
Execute sudo gitlab-ctl reconfigure to make it effective, visit as follows:
The administrator account is root, and the password will be changed by you for the first time.
Gitlab-ctl start | stop | status | restart
Thank you for reading this article carefully. I hope the article "how to install and configure the version management tool gitlab" shared by the editor will be helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!