|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
分类:
cdv014-jenkins1
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)