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、创建分支、

相关推荐
解道Jdon5 小时前
[Budi插件:VsCode状态栏显示Copilot使用情况
ide·windows·git·svn·eclipse·github·visual studio
kisshyshy5 小时前
掌握 Git 基础
git
全糖可乐气泡水5 小时前
Codex适配国产信创环境安装部署与技术适配全解析
开发语言·git·python·算法·百度
一只大袋鼠8 小时前
Git 四种仓库连接方式操作指南
git
活宝小娜11 小时前
git windows安装教程
git
青春喂了后端13 小时前
Go Sidecar Repository 并发锁改造:让并发请求安全地进入 Git 仓库层
git·安全·golang
小雨青年13 小时前
GitHub Actions 工作流性能优化实战,先看瓶颈,再改缓存和并发
git
0x000714 小时前
Git Bash 中无法启动 Claude Code ?
开发语言·git·bash
xuhaoyu_cpp_java15 小时前
Git学习(六)
git·学习
happyness441 天前
Git:AI编程时代的“安全带“与“时光机“
git·ai编程