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中

 

转载于:https://www.cnblogs.com/alex-note/p/7008658.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值