网址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=D
我们得到下载路径:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.4.6-ce.0.el7.x86_64.rpm
发现报错:
warning: gitlab-ce-11.4.6-ce.0.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEYerror: Failed dependencies: policycoreutils-python is needed by gitlab-ce-11.4.6-ce.0.el7.x86_64
发现postfix有安装包,如果没有去安装:
yum install postfix这里有,但是没有启动,那我们就需要去启动
systemctl enable postfix systemctl start postfix这里enable成功,但是start 报错:
vi /etc/postfix/main.cf#取消这句的注释 inet_interfaces = all #这句all改为ipv4 inet_protocols = ipv4
到这里,安装就算完成了。
vim /etc/gitlab/gitlab.rb
修改external_url
执行
gitlab-ctl reconfigure
转载于:https://www.cnblogs.com/yybrhr/p/9988835.html
