yum -y install policycoreutils openssh-server openssh-clients postfix
设置开机自启
systemctl enable postfix && systemctl start postfix
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
1. 修改配置文件和自定义端口
vim /etc/gitlab/gitlab.rb
external_url ‘http://IP:端口’
2. 重启配置文件
gitlab-ctl reconfigure
如果出现运行不终止可按Ctrl + C停止
3. 重启Gitlab服务
sudo systemctl restart gitlab-runsvdir
sudo gitlab-ctl reconfigure
gitlab-ctl restart
直接输入IP地址 + 端口名访问
原文:https://www.cnblogs.com/pzyin/p/13554927.html