Git&GitLab安装gitlab(rocky系统)

Git是一个版本控制工具:https://git-scm.cn/downloads/win

GitLab、Gitee、GitHub远程仓库:http://gitee.com http://github.com

1、关防火墙

复制代码
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart sshd
systemctl disable --now firewalld.service 
setenforce 0

2、安装解压

复制代码
[root@localhost ~]# yum install -y lrzsz

将压缩包拖进

3、解压文件:

复制代码
rpm -ivh gitlab-ce-18.6.2-ce.0.el9.x86_64.rpm 

4、进入修改ip

复制代码
[root@localhost ~]# cd /etc/gitlab/
[root@localhost gitlab]# ls
gitlab.rb
[root@localhost gitlab]# vim gitlab.rb 

gitlab_rails'time_zone' = 'Asia/Shanghai'

5、初始化:

gitlab-ctl reconfigure

6、启动:

gitlab-ctl start

7、浏览器访问:

8、获取root密码

9、复制密码

10、更改主页中文

11、更改时间和密码

更改时间:

更改密码:

12、创建项目

找到任意客户端当用户工作空间

13、gitlab端:修改密码

14、新建群组

15、SSH KEY密钥设置

16、创建分支、

相关推荐
kyriewen4 小时前
Git Commit 前自动修复代码风格?配置 Husky + lint-staged,从此 CR 只聊逻辑
前端·git·面试
吹牛不交税13 小时前
visualstudio把项目绑定git仓库
git
c2385613 小时前
git常见错误和ssh验证推送
运维·git·ssh
火山上的企鹅13 小时前
Codex实战:APP远程升级服务搭建(四)Node 服务端自动识别 APK 信息
android·服务器·git·github·qgc
lisanmengmeng17 小时前
gitlab 免密配置
linux·服务器·gitlab
徐子元竟然被占了!!17 小时前
Git学习
git·学习·elasticsearch
l1o3v1e4ding18 小时前
windows安装Claude Code,并接入Deepseek-v4模型 ,提供离线安装包
git·npm·node.js·claude code·cc-switchcc
求知若渴,虚心若愚。18 小时前
Jenkins 自动化流水线(CICD)
运维·自动化·gitlab
Dontla1 天前
git bash打开Claude code报错:Claude Code on Windows requires git-bash.(别把git装其他位置,严格按照默认安装)找不到claude code
windows·git·bash
一个梦醒了1 天前
安装git bash选项推荐
开发语言·git·bash