|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   yanqi_vip  阅读(3)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示