zoukankan      html  css  js  c++  java
  • Gitlab installtation

    环境:Centos7

    安装配置(安装开启http和sshd):

    1   yum -y install curl openssh-server postfix
    2   systemctl enable sshd postfix
    3    systemctl start sshd postfix
    4    systemctl start firewalld
    5    firewall-cmd --permanent --add-service=http

    下载安装git包:

    1  curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

    2  yum -y install gitlab-ce

    配置启动关闭:

    1  gitlab-ctl reconfigure

    2  gitlab-ctl status

    3  gitlab-ctl stop

    4  gitlab-ctl start

    Git安装;配置git全局用户以及邮箱;

    1  yum install git -y

    2  git config --global user.name "alex"

    3  git config --global user.email "alex@gmail.com"

    4  git config --list  --查看配置

    登录;密匙;

    1  ssh-keygen(linux)  

    2  浏览器直接输入主机ip(window)

    3  cat ~/.ssh/id_rsa.pub(linux)

    4  添加公钥到git中

  • 相关阅读:
    Mac国内源安装brew
    linux基础命令(二)
    运维查看命令
    初识数据库
    镜像/容器相关操作
    docker基本命令
    Docker简介及部署
    CF1599A Weights 构造
    CSP-S 2021 游记
    GeOP 1.0开发成!
  • 原文地址:https://www.cnblogs.com/alex-note/p/7008658.html
Copyright © 2011-2022 走看看