标签:环境 res 成功 关闭 端口 防火 代码 hub etc
前面几节我们了解了git以及github的用法,但公司一般不会把自己的代码保存到码云甚至github,所有就出现了这样一个需求,像github但是代码是存在于自己的服务器上的,而gitlab就是做这件事情的。
# 安装wget、policycoreutils-python以及openssh-server
sudo yum install -y wget policycoreutils-python openssh-server
# 添加gitlab-ce源,作者这边下载的是gitlab-ce-10.5.7-ce.0.el7.x86_64,比较耗时
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.5.7-ce.0.el7.x86_64.rpm
# 安装gitlab-ee
rpm -i gitlab-ce-10.5.7-ce.0.el7.x86_64.rpm
出现以下界面,则安装成功:
# 修改external_url为当前服务器的ip以及端口
external_url ‘http://192.168.100.192:9090‘
# 关闭防火墙
systemctl stop firewalld
# 重置gitlab
gitlab-ctl reconfigure
# gitlab-ctl restart
标签:环境 res 成功 关闭 端口 防火 代码 hub etc
原文地址:https://www.cnblogs.com/alichengxuyuan/p/12576959.html