登陆gitlab官网并选取合适的系统版本:https://about.gitlab.com/downloads/#centos6html
而后安装官方教程来安装gitLablinux
注意:git
sudo EXTERNAL_URL="https://gitlab.example.com" yum -y install gitlab-ee centos
这一步的地址能够为linux的ip地址,最好指定端口,防止占用8080端口或者80端口浏览器
例如 sudo EXTERNAL_URL="192.168.8.112:7080" yum -y install gitlab-ee 服务器
gitlab配置文件在/etc/gitlab/gitlab.rbgitlab
主要配置:external_url,改为如今服务器的地址或写一个本身的域名,写域名须要更改服务器的hosts文件及访问该电脑的hosts文件。url
使更改生效:gitlab-ctl reconfigure spa
打开浏览器输入 gitLab 访问地址,第一次访问须要设置 root 密码。设置成功后,登陆系统。3d
这里有个前提是新成员已经在 linux 服务器上的 gitlab 注册成功
拉取项目,上传代码,这里就不叙述了,能够参考 https://www.cnblogs.com/linuxprobe/p/5747921.html