gitlab/gitlab-ce - Packages · packages.gitlab.com
下载 gitlab
curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm
#curl -LjO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-8.6.9-ce.3.el6.x86_64.rpm/download
安装依赖
centos6
sudo yum install curl openssh-server openssh-clients postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh
centos7
sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
安装gitlab
rpm -ivh gitlab-ce-8.9.5-ce.0.el7.x86_64.rpm
gitlab-ctl reconfigure
gitlab-ctl status
http://{{ip}}
默认用户
root
5iveL!fe
该博客详细介绍了如何在CentOS操作系统上下载并安装GitLab。首先,通过curl命令从官方源下载GitLab的rpm包,然后根据系统版本(CentOS 6或7)安装必要的依赖,包括curl、openssh、postfix等,并配置postfix服务。接着,使用rpm命令安装GitLab,最后运行'gitlab-ctl reconfigure'进行配置,并通过'gitlab-ctl status'检查安装状态。完成后,可以通过HTTP访问GitLab,使用默认用户名'root'和密码'5iveL!fe'登录。
1008

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



