1簇宽、基礎(chǔ)插件的安裝:
? ? yum install make cmake gcc gcc-c++
? ? yum install -y wget
? ? cd /usr/local/src
? ? wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.gz
? ? tar -zxvf ruby-2.5.3.tar.gz
? ? cd ruby-2.5.3
? ? ./configure
? ? make
? ? make install
? ? ruby -v
? ? cd ../
? ? sudo yum install -y curl policycoreutils-python openssh-server cronie
? ? sudo lokkit -s http -s ssh
? ? sudo yum install postfix
? ? sudo service postfix start
? ? sudo chkconfig postfix on
? ? curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
? ? sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ee
? ? gitlab-ctl reconfigure
可以直接配置域名或者是IP烛亦;
2吞彤、https的安全認證
nginx['ssl_certificate'] = "*.crt"
nginx['ssl_certificate_key'] = "*.key"
配置https的公私鑰
nginx['redirect_http_to_https'] = true
3狗超、email配置
? ? gitlab_rails['gitlab_email_from'] = '*@126.com'
? ? gitlab_rails['gitlab_email_reply_to'] = 'noreply@126.com'
? ? gitlab_rails['smtp_enable'] = true
? ? gitlab_rails['smtp_address'] = "smtp.126.com"
? ? gitlab_rails['smtp_port'] = 465
? ? gitlab_rails['smtp_user_name'] = "*****"
? ? gitlab_rails['smtp_password'] = "******"
? ? gitlab_rails['smtp_domain'] = "126.com"
? ? gitlab_rails['smtp_authentication'] = "login"
? ? gitlab_rails['smtp_enable_starttls_auto'] = true
? ? gitlab_rails['smtp_tls'] = true
? ? gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
? ? user['git_user_email'] = "noreply@126.com"
4、gitlab的常用命令:
? ? #gitlab 啟動甸祭、停止恕曲、重啟
? ? gitlab-ctl start/stop/restart
? ? #查看所有日志
? ? gitlab-ctl tail
? ? #查看nginx 訪問日志
? ? gitlab-ctl tail nginx/gitlab_acces.log
? ? #查看 postgresql 日志
? ? gitlab-ctl tail? postgresql
? ? #查看狀態(tài)
? ? gitlab-ctl status
以上的配置是gitlab的安裝,以及https飒筑、email的配置片吊。
原文鏈接:https://blog.csdn.net/hr335110160/article/details/84776910