阅读背景:

Git 、Jenkins (二)Gitlub安装部署

来源:互联网 
Git 、Jenkins (二)Gitlub安装部署 一、安装GitHub 方法一: [root@git01 ~]# yum install -y policycoreutils-python #安装依赖 #上传 rpm包 gitlab-ce-12.0.3-ce.0.el7.x86_64.rpm [root@git01 ~]# rz -E rz waiting to receive. [root@git ~]# rpm -ivh gitlab-ce-12.0.3-ce.0.el7.x86_64.rpm warning: gitlab-ce-10.2.2-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY Preparing... ################################# [100%] Updating / installing... 1:gitlab-ce-10.2.2-ce.0.el7 ################################# [100%] It looks like GitLab has not been configured yet; skipping the upgrade script. *. *. *** *** ***** ***** .****** ******* ******** ******** ,,,,,,,,,***********,,,,,,,,, ,,,,,,,,,,,*********,,,,,,,,,,, .,,,,,,,,,,,*******,,,,,,,,,,,, ,,,,,,,,,*****,,,,,,,,,. ,,,,,,,****,,,,,, .,,,***,,,, ,*,. _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ \`/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/ Thank you for installing GitLab! GitLab was unable to detect a valid hostname for your instance. Please configure a URL for your GitLab instance by setting `external_url` configuration in /etc/gitlab/gitlab.rb file. Then, you can start your GitLab instance by running the following command: sudo gitlab-ctl reconfigure For a comprehensive list of configuration options please see the Omnibus GitLab readme https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md #安装完成 方法二: 由于国内网络偏慢,这里使用清华大学的镜像源进行安装gitlab-ce [root@git ~]# cat /etc/yum.repos.d/gitlab-ce.repo [gitlab-ce] name=gitlab-ce baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 repo_gpgcheck=0 gpgcheck=0 enabled=1 gpgkey= [root@git ~]# yum makecache [root@git ~]# yum install -y gitlab-ce #修改配置文件 [root@git ~]# vim /etc/gitlab/gitlab.rb external_url 'https://10.0.0.11' prometheus_monitoring['enable'] = false [root@node1 tools]# vim /etc/gitlab/gitlab.rb 52 gitlab_rails['gitlab_email_enabled'] = true 53 gitlab_rails['gitlab_email_from'] = '[email protected]' 54 gitlab_rails['gitlab_email_display_name'] = 'linux_gitlab' #配置mail邮件服务 517 gitlab_rails['smtp_enable'] = true 518 gitlab_rails['smtp_address'] = "smtp.qq.com" 519 gitlab_rails['smtp_port'] = 25 520 gitlab_rails['smtp_user_name'] = "[email protected]" 521 gitlab_rails['smtp_password'] = "<passwd>" 522 gitlab_rails['smtp_domain'] = "smtp.qq.com" 523 gitlab_rails['smtp_authentication'] = "login" 524 gitlab_rails['smtp_enable_starttls_auto'] = true 525 gitlab_rails['smtp_tls'] = true [root@git01 ~]# gitlab-ctl reconfigure #重新加载配置文件_需要等待两三会 二、gitlab汉化 #下载汉化包 https://gitlab.com/xhang/gitlab gitlab-ctl stop tar xf gitlab-12-0-stable-zh.tar.gz \cp -a gitlab-12-0-stable-zh/* /opt/gitlab/embedded/service/gitlab-rails/ gitlab-ctl restart https:// 10.0.0.11 三、gitlab项目 1.gitlab-用户-用户组-项目之间的关系 Git 、Jenkins (二)Gitlub安装部署 一、安装GitHub 方法一: [root@g


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: