centos 7 deployment gitlab

 

Installation depends

yum -y install policycoreutils openssh-server openssh-clients postfix

Set to open from the start and postfix start, postfix support signaling function

systemctl enable postfix && systemctl start postfix

Gitlab download the installation package, and then install

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.2.0-ce.0.el7.x86_64.rpm

rpm -i gitlab-ce-11.2.0-ce.0.el7.x86_64.rpm

Reported the following error:

warning: gitlab-ce-11.2.0-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY
error: Failed dependencies:
        policycoreutils-python is needed by gitlab-ce-11.2.0-ce.0.el7.x86_64

Solution:

yum install -y policycoreutils-python

Install

rpm -i gitlab-ce-11.2.0-ce.0.el7.x86_64.rpm

Configuration gitlab configuration file, specify the server ip and port

sudo vi /etc/gitlab/gitlab.rb

 

# Set Home Address (around line 10)
external_url ' HTTP: // ip: port '

 

 

Reload the configuration and reboot

gitlab- ctl reconfigure # wait for a while
gitlab-ctl restart

 

View port occupancy

netstat -tunlp | grep "8081"

Browser and enter http: // ip: port, for the first time, please login with root, password

 

Reference Links:  https://my.oschina.net/u/3962987/blog/3063213

     https://www.cnblogs.com/yybrhr/p/9988835.html

     https://blog.51cto.com/andyxu/2427190

Guess you like

Origin www.cnblogs.com/2186009311CFF/p/12276020.html