gitlab鐨勪粙缁嶅拰瀹夎

gitlab浠嬬粛

浠涔堟槸gitlab

gitlab涓巊ithub鐨勪笉鍚

gitlab鐨勪紭鍔垮拰搴旂敤鍦烘櫙

gitlab涓昏鏈嶅姟鏋勬垚

gitlab鐨勫伐浣滄祦绋

gitlab瀹夎閰嶇疆绠$悊

  1. 鍏抽棴闃茬伀澧 #systemctl stop firewalld #systemctl disable firewalld
  2. 瀹夎gitlab鍓嶇郴缁熼閰嶇疆鍑嗗宸ヤ綔
# vi /etc/sysconfig/selinux
SELINUX=disabled
# reboot
  1. 瀹夎Gitlab缁勪欢
    #sudo yum -y install curl policycoreutils openssh-server openssh-clients postfix
  2. 閰嶇疆YUM浠撳簱

sudo curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

  1. 鍚姩postfix閭欢鏈嶅姟
    #systemctl start postfix && systemctl enable postfix
  2. 瀹夎Gitlab-ce绀惧尯鐗堟湰

sudo yum install -y gitlab-ce

  1. 璇佷功鍒涘缓涓庨厤缃姞杞
  2. Nginx SSL 鍒涘缓鏈嶅姟閰嶇疆
    sudo mkdir -p /etc/gitlab/ssl
    sudo openssl genrsa -out "/etc/gitlab/ssl/gitlab.example.com.key" 2048
    sudo openssl req -new -key "/etc/gitlab/ssl/gitlab.example.com.key" -out "/etc/gitlab/ssl/gitlab.example.com.csr"
    sudo openssl x509 -req -days 365 -in "/etc/gitlab/ssl/gitlab.example.com.csr" -signkey "/etc/gitlab/ssl/gitlab.example.com.key" -out "/etc/gitlab/ssl/gitlab.example.com.crt"
    sudo openssl dhparam -out /etc/gitlab/ssl/dhparams 2048

  3. 鍒濆鍖杇itlab鐩稿叧鏈嶅姟骞跺畬鎴愬畨瑁
    vi /etc/gitlab/gitlab.rb
    external_url 'https://gitlab.example.com'
    nginx['redirect_http_to_https_port'] = true
    nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.com.crt"
    nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key"
    nginx['ssl_dhparam] = "/etc/gitlab/ssl/dhparams.pem"

# gitlab-ctl reconfigure

All posts

Other pages

鍙戣〃璇勮

閭鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢*鏍囨敞