Linux installation gitlab

1, open access http and ssh access

	sudo yum install -y curl policycoreutils-python openssh-server cronie
	sudo lokkit -s http -s ssh

2, install Postfix to send notification e-mail

sudo yum install postfix
sudo service postfix start
sudo chkconfig postfix on

3, third start I did not follow the command to install the official website, because there will be installed later version of the problem, so I find git in line with their own version of a system was installed.

a, if the first component does not need to perform wget yum -y install wget

b, rpm obtain the installation package
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-10.1.4-ce.0.el6.x86_64.rpm
C, the installation
rpm -ivh gitlab-ce-10.1.4- ce.0.el6.x86_64.rpm

d, gitlab configure the boot
respectively execute the following command:
gitlab-ctl reconfigure // performed here a long time, please be patient

Proceed with the following command:

vim /etc/gitlab/gitlab.rb
will be revised to address external_url variable ip address gitlab where the centos.
external_url 'http://git.home.com'
gitlab-ctl reconfigure // make the configuration take effect, re-execute this command a fairly long time
gitlab-ctl restart


e: successful start effect
access linux server after a successful start you can see the default password reset pages it (the default user root)

 

4, modify the default port
because the default gitlab use port 80, so we need to change the default port of gitlab

/Etc/gitlab/gitlab.rb modify the file as follows, then perform the reconfiguration is complete restart command.
gitlab-ctl reconfigure // make the configuration take effect, re-execute this command a fairly long time
gitlab-ctl restart

Modify the default address gitlab clone, or to modify each had their own

vim /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

Restart gitlab

 

Reference: https: //blog.csdn.net/wangyy130/article/details/85633303

Guess you like

Origin www.cnblogs.com/1659666966/p/11306463.html