本文共 550 字,大约阅读时间需要 1 分钟。
1.配置docker swarm环境
参考:
2.修改linux host centos 7.4的默认ssh端口为1234
sed -i 's$#Port 22$Port 1234$g' /etc/ssh/sshd_configsystemctl restart sshd
3.安装Gitlab
yum update -y nss curl libcurlmkdir -p /soft/cd /soft/git clone https://github.com/yjb007/gitlab.gitcd gitlabsh build.shmkdir -p /srv/volume/git/{data,logs,config}sh service.sh
4.访问Gitlab:
cat /etc/hosts10.1.1.238 git.local.com#需要在hosts文件中绑定域名IP地址
5.修改访问Gitlab使用的域名,必须要在下面的位置进行设置
vim service.sh--hostname git.local.com \
Gitlab CE版本目前的tag列表:
转载于:https://blog.51cto.com/yjb007/2176921