赞
踩
1.1 gitlab介绍: 代码托管仓库,和gitee github 等等
1.2 gitlab与github区别
github针对私有仓库收费,在国外,访问比较卡且缓慢 ( 开源项目 )
gitlab自建自行维护, 创建公开仓库和私有仓库 (公司使用)
小型团队: 国内 码云 创建私有仓库
安装包下载地址:https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=D
汉化包下载:https://gitlab.com/xhang/gitlab/tree/12-3-stable-zh,选择最新汉化版本
yum install -y curl openssh-server postfix wget
#将下载的rpm包上传到服务器
yum localinstall gitlab-ce-14.2.2-ce.0.el7.x86_64.rpm -y
[root@git ~]# cd /etc/gitlab/
[root@git gitlab]# ls
gitlab.rb
[root@git gitlab]# cp gitlab.rb gitlab.rb.bak
vim gitlab.rb
external_url 'http://gitlab.cwq.com'
[root@gitlab ~]# grep '^[a-Z]' /etc/gitlab/gitlab.rb external_url 'http://gitlab.test.com' gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.qq.com" gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "286992751@qq.com" gitlab_rails['smtp_password'] = "pvdnprjrweaydegd" #发件人邮箱客户端授权码 gitlab_rails['smtp_domain'] = "qq.com" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_tls'] = true gitlab_rails['smtp_pool'] = true gitlab_rails['gitlab_email_enabled'] = true gitlab_rails['gitlab_email_from'] = '286919751@qq.com' #发件人邮箱 gitlab_rails['gitlab_email_display_name'] = 'Gitlab-test' #发件人显示名称
#关闭或不关闭不重要,取决于你的内存
prometheus['enable'] = false
alertmanager['enable'] = false
node_exporter['enable'] = false
redis_exporter['enable'] = false
postgres_exporter['enable'] = false
grafana['enable']
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。