|NO.Z.00008|——————————|^^ 部署 ^^|——|Jenkins&GitLab部署.V02|——|Gitlab版本库部署.V01|

一、Gitlab构建分布式版本控制系统
### --- 基础环境配置
~~~     gitlab构建说明

~~~     # Git构建分布式版本控制器——后台部署
~~~     官网地址:https://about.gitlab.com/downloads/#centos7
### --- 配置环境规划

~~~     centos7.x:10.10.10.11:    GitLab server
~~~     centos7.x:10.10.10.11:    GitLab client
### --- 关闭防火墙

[root@server11 ~]#  systemctl stop firewalld
[root@server11 ~]#  systemctl disable firewalld
二、gitlab部署
### --- install and configure the necessary dependencies
~~~     # 安装和配置必要的依赖关系

[root@server11 ~]# yum install curl policycoreutils openssh-server openssh-clients
~~~     # 开机自启动ssh程序
[root@server11 ~]# systemctl enable sshd
[root@server11 ~]# systemctl start sshd

~~~     # 安装右键程序
[root@server11 ~]# yum install postfix
[root@server11 ~]# systemctl enable postfix
[root@server11 ~]# systemctl start postfix
### --- Add the GitLab package server and install the package 
~~~     # 将gitlab的rpm包上传至服务器
~~~     注:提示:如果是zip压缩包,请使用解压才可以使用。
~~~     注:unzip 6.Git_构建分布式版本控制系统.zip 
~~~     注:cd   6.Git_构建分布式版本控制系统

[root@server11 ~]# wget  ftp://10.18.40.100/rpm-soft/gitlab-ce-9.1.0-ce.0.el7.x86_64.rpm
[root@server11 ~]# ls
gitlab-ce-9.1.0-ce.0.el7.x86_64.rpm
~~~     # 安装gitlab

[root@server11 ~]# yum -y install gitlab-ce-9.1.0-ce.0.el7.x86_64.rpm
### --- Configure and start GitLab
~~~     gitlab初始化

[root@server11 ~]# gitlab-ctl reconfigure
Running handlers:
Running handlers complete
Chef Client finished, 324/433 resources updated in 01 minutes 48 seconds
gitlab Reconfigured!
~~~     注:自动配置文件权限,安装数据库….
~~~     注:提示!安装的时间会很长!!!
### --- Browse to the hostname and login

Chrome登录:http://10.10.10.11 

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on 2022-03-27 15:31  yanqi_vip  阅读(7)  评论(0)    收藏  举报

导航