CentOS 6安装GitLab服务端
一、配置基础环境
1 | yum install openssh-server |
二、下载安装gitlab
gitlab安装包下载地址:
centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
安装:
1 | rpm -i gitlab-ce-9.5.9-ce.0.el6.x86_64.rpm |
三、配置gitlab
修改gitlab配置文件指定服务器ip和自定义端口,将external_url后面的值修改为http://ip:port(例如http://192.168.7.89:8010,如果不指定端口则是默认的端口80)
1 | vim /etc/gitlab/gitlab.rb |
如果服务端开启了防火墙,则需要开放相应的端口
1 | iptables -I INPUT -p tcp --dport 8010 -j ACCEPT |
按照新的配置文件重新配置gitlab,并重新启动
1 | gitlab-ctl reconfigure |
查看gitlab运行状态
1 | gitlab-ctl status |
bug0:`GLIBC_2.14’ not found
如果出现报错/lib64/libc.so.6: version `GLIBC_2.14’ not found,则需要升级glibc
1 | # 下载安装包 |
原文链接: https://www.delta1037.cn/2019/Deploy/CentOS6安装GitLab服务端/
版权声明: 转载请注明出处.