centos7与gitlab安装
- 个人喜欢先下载RPM包这是我喜欢的版本10.8.2社区版
- 创建目录/opt/gitlab 使用ftp上传rpm 包
- 一条一条命令安装太慢了,写了一个install.sh脚本(本人放在了/opt 下)脚本内容如下
sudo rpm -ivh /opt/gitlab/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm sudo yum install -y curl policycoreutils-python openssh-server cronie sudo lokkit -s http -s ssh sudo yum install postfix sudo service postfix start sudo chkconfig postfix on curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo EXTERNAR_URL="http://gitlab.example.com"yum -y install gitlab-ce
4.给install.sh脚本可执行的权限 chmod 755 install.sh
5.执行脚本 ./install.sh
6.漫长的等待,等安装完以后执行reboot 重启一下系统
7.gitlab-ctl reconfigure 重新配置
8.漫长的等待,完成后 gitlab-ctl start
9.浏览器中输入你的ip查看是否安装成功
10. 关停此服务 gitlab-ctl stop
记得防火墙关闭或开放此端口
本文档详细介绍了如何在CentOS7上快速安装GitLab 10.8.2社区版。首先下载RPM包,然后创建安装目录并上传文件。接着,编写并执行install.sh脚本来自动化安装过程,包括安装依赖、配置外部URL、启动服务以及重新配置GitLab。最后,检查安装结果并在浏览器中验证GitLab是否成功运行。
2202

被折叠的 条评论
为什么被折叠?



