Centos7安装gitlab
GitLab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目.
安装参考https://about.gitlab.com
安装相关的依赖和软件包
yum -y install policycoreutils openssh-server openssh-clients postfix curl policycoreutils-python openssh-server systemctl enable postfix && systemctl start postfix systemctl enable sshd systemctl start sshd
添加GitLab仓库,并安装到服务器上:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
yum install gitlab-ce
修改端口号,默认8080
vim /etc/gitlab/gitlab.rb
external_url 'http://ip:端口'
修改完成后:wq保存退出,执行以下命令,让配置生效
gitlab-ctl reconfigure
启动:
gitlab-ctl start
注册