教你手把手Gitlab部署

Gitlab-LOGO

  • system

  • 支持的类UNIX系统
    • Ubuntu

    • Debian

    • CentOS

    • Red Hat Enterprise Linux (please use the CentOS packages and instructions)

    • Scientific Linux (please use the CentOS packages and instructions)

    • Oracle Linux (please use the CentOS packages and instructions)

  • 不支持的类UNIX系统
    • OS X

    • Arch Linux

    • Fedora

    • Gentoo

    • FreeBSD

  • 官网链接

https://about.gitlab.com/downloads/#centos7

  • 1、 Install and configure the necessary dependencies 
    • 4G以上内存

yum install -y curl policycoreutils openssh-server openssh-clients

  • 安装和配置必要的依赖关系

  • curl 浏览器程序

  • policycoreutils 加密程序

  • openssh 远程登录程序

systemctl enable sshd

  • 开机自启动ssh程序

systemctl start sshd

yum install postfix -y

  • 安装邮件程序

  • gitlab在注册的时候一定要用邮箱名才能识别

systemctl enable postfix

systemctl start postfix

systemctl stop firewalld

  • 防火墙关上!

systemctl disable firewalld

2、Add the GitLab package server and install the package 

  • 上传gitlab安装rpm包

提示

  • 如果是zip压缩包,请使用解压才可以使用。

yum -y install gitlab-ce-9.1.0-ce.0.el7.x86_64.rpm

3、 Configure and start GitLab 

gitlab-ctl reconfigure

  • 自动配置文件权限,安装数据库….

  • 提示!安装的时间会很长!!!

4、Browse to the hostname and login

  • gitlab服务器的地址:http://192.168.58.100/

    • GITLAB占用80端口,访问时直接访问IP就可以 (第一次会让你确认root账户登录的密码)

  • 登录图示

  • 创建8位新密码

  • 然后使用root登录即可

欢迎界面

创建项目

推送SSH秘钥

  • 1秘钥提示

2查看秘钥

  • 生成秘钥

     ssh-keygen

    cat ~/.ssh/id_rsa.pub 

3上传秘钥

4.链接地址

用于命令行,或客户端程序进行下载使用。

git@localhost:root/0913.git

5.使用gitlab

图形操作

  • 上传文件到gitlab

    • 1.newfile:先新建一个文件。 2.uploadfile:再上传即可。

下载文件到gitlab客户端

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值