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
记得防火墙关闭或开放此端口