1、安装依赖:
yum -y install policycoreutils openssh-server openssh-clients postfix
yum install -y policycoreutils-python
2、下载GitLab安装包并安装
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.3.3-ce.0.el7.x86_64.rpm
rpm -ivh gitlab-ce-11.3.3-ce.0.el7.x86_64.rpm
3、修改GitLab配置
vi /etc/gitlab/gitlab.rb
重置配置文件并且启动GitLab:
gitlab-ctl reconfigure
##配置文件的时候,需要时间可能会有些长,耐心等待即可
gitlab-ctl restart
5、
用步骤3配置地址访问,第一次访问时,会自动跳转到修改密码的界面,修改好密码后,就可以愉快地开始管理你的项目了!
问题
如果本机可以访问,但其他电脑访问不了,应该是防火墙拦截了端口,可以开放该端口
如果访问的时候出现如下报502错误,加上这句:chmod -R 755 /var/log/gitlab