[Linux]Gitlab搭建(官网版!)
2021/9/21 7:26:52
本文主要是介绍[Linux]Gitlab搭建(官网版!),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
安装所需要的环境
#sudo yum install -y curl policycoreutils-python openssh-server perl #systemctl enable sshd //设置sshd服务自启 #systemctl start sshd //启动sshd服务 #yum install postfix //搭建邮件系统 #systemctl enable postfix #systemctl start postfix
添加GitLab包存储库并安装
#curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
下载getlab
#vim /etc/yum.repos.d/gitlab.repo //创建并编辑该文件,将以下字符填入 [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1 #yum install -y gitlab-ce //开始安装gitlab #gitlab-ctl reconfigure //重载gitlab,可能会非常长哦! #gitlab-ctl start //开启gitlab服务
此时即可以虚拟机ip进入搭建的gitlab了。
查看初始默认密码
#cat /etc/gitlab/initial_root_password password后,就是密码
注意:
gitlab启动后,会使用非常多个端口。所以尽量在一个干净的服务器/虚拟机中搭建!
这篇关于[Linux]Gitlab搭建(官网版!)的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-09-11Linux部署Scrapy学习:入门级指南
- 2024-09-11Linux部署Scrapy:入门级指南
- 2024-08-21【Linux】分区向左扩容的方法
- 2024-08-21【Linux】gnome桌面环境切换KDE Plasma
- 2024-08-19如何安装 VMware Tools (macOS, Linux, Windows)
- 2024-08-15Linux部署Scrapy教程:入门级指南
- 2024-07-29linux命令行下好用的性能监控工具atop
- 2024-07-04Linux系统上离线升级SSH服务的具体操作步骤-icode9专业技术文章分享
- 2024-06-0600-macOS和Linux安装和管理多个Python版本
- 2024-03-30[译]漫画SELinux概念