GitLab英文官网
https://about.gitlab.com/
GitLab中文官网
https://www.gitlab.com.cn
GitLab使用手册
https://docs.gitlab.com.cn/ce/README.html
查看GitLab硬件需求
https://docs.gitlab.com.cn/ce/install/requirements.html
GitLab安装和使用
安装并配置GitLab必要的依赖关系
yum -y install curl openssh-server openssh-clients postfix cronie policycoreutils-python
启动邮件服务器postfix
service postfix start
避免用户通过ssh方式和http来访问
lokkit -s http -s ssh
下载GitLab软件包
https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-11.1.4-ce.0.el6.x86_64.rpm
或
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/
安装GitLab软件包
rpm -vih gitlab-ce-11.1.4-ce.0.el6.x86_64.rpm --force --nodeps
启动GitLab
gitlab-ctl reconfigure
永久性关闭防火墙
chkconfig iptables off
临时性关闭防火墙
service iptables stop
永久性关闭selinux
修改 /etc/selinux/config 文件中的 SELINUX="disabled"
即时生效
setenforce 0
GitLab默认账号和密码
Username: root
Password: 5iveL!Fe
GitLab配置文件
vim /etc/gitlab/gitlab.rb