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

相关推荐
德彪稳坐倒骑驴13 小时前
Git常用命令
git
无限进步_13 小时前
【C语言&数据结构】对称二叉树:镜像世界的递归探索
c语言·开发语言·数据结构·c++·git·算法·visual studio
qq_54702617916 小时前
Git 使用指南
git
XiaoHu020717 小时前
Linux多线程(详细全解)
linux·运维·服务器·开发语言·c++·git
*才华有限公司*18 小时前
RTSP视频流播放系统
java·git·websocket·网络协议·信息与通信
juelianhuayao19 小时前
Git错误提交后如何快速删除本次commit
git
chen<>19 小时前
Git原理与应用
大数据·git·elasticsearch·svn
小兔崽子去哪了20 小时前
Git 专题
git
金米kk20 小时前
git pull时报错Your local changes to the following files would…的解决办法
git
超级罗伯特20 小时前
git一次性完成仓库下载及所有分支获取
git·git仓库拉取