1、基础插件的安装:
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
#查看状态
gitlab-ctl status
以上的配置是gitlab的安装,以及https、email的配置。
原文链接:https://blog.csdn.net/hr335110160/article/details/84776910