Ubuntu:1) 新人gitlab的gpg公钥curl https://packages.gitlab.com/gpg.key 2> /dev/null | sudo apt-key add – &>/dev/null2)添加source.listvi /etc/apt/sources.list.d/gitlab-ce.list加入以下内容到gitlab-ce.list文件中:deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu bionic main3) 安装gitlab-cesudo apt-get updatesudo apt-get install gitlab-ceCentOS:1) 新建gitlab-ce.repovi /etc/yum.repos.d/gitlab-ce.repo添加以下内容:[gitlab-ce]name=Gitlab CE Repositorybaseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab- ce/yum/el$releasever/gpgcheck=0enabled=12) 再次执行缓存清理sudo yum makecachesudo yum install gitlab-ce2. gitlab-ce的简单配置1) 修改gitlab.rbvi /etc/gitlab/gitlab.rb修改1:# 例如:pages_external_url “http://127.0.0.1/
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)