Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CentOS 7无法添加Gitlab软件包存储库并安装_Gitlab_Centos7 - Fatal编程技术网

CentOS 7无法添加Gitlab软件包存储库并安装

CentOS 7无法添加Gitlab软件包存储库并安装,gitlab,centos7,Gitlab,Centos7,目标:在my Centos7安装gitlab。 说明: 错误: [root@enlabsapp067展开器]#卷曲https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh |sudo bash %总接收百分比%x平均速度时间电流 数据加载上载总左速度 0 0 0 0 0--::--0:00:05--::--:--0URL:(7)无法连接到packages.gitlab.com:443;拒绝连接

目标:在my Centos7安装gitlab。
说明:
错误:

[root@enlabsapp067展开器]#卷曲https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh |sudo bash
%总接收百分比%x平均速度时间电流 数据加载上载总左速度 0 0 0 0 0--::--0:00:05--::--:--0URL:(7)无法连接到packages.gitlab.com:443;拒绝连接
非常感谢你的帮助

调试检查

  • CentOS Linux 7.6.1810版(核心版)
  • sshd-活动(正在运行)
  • 防火墙D-活动(正在运行)
  • 后缀-活动(正在运行)

这不应该链接到安装脚本本身,而应该链接到一些网络问题上

例如:“(无法在CentOS中安装Runner)确实提到:

无法复制,您能检查本地防火墙和端口是否打开吗?
例如,检查以下命令是否连接:

nc -v packages.gitlab.com 443
该页面确实列出了支持的CentOS

提议,来自

我通过以下简单步骤解决了问题:

  • 已删除
    /etc/gitlab/ssl
    文件夹中的所有文件
  • 删除了在
    /etc/gitlab/gitlab.rb
    文件中使用自定义SSL证书的所有配置选项,例如
    注册表nginx[“SSL\u证书”]
    注册表nginx[“SSL\u证书密钥”]
  • 通过将这些行添加到
    /etc/gitlab/gitlab.rb
    文件,使用了gitlab的LetsEencrypt功能

    letsencrypt['enable']=true letsencrypt['contact_emails']=['mohsen@mail.com“]

然后使用此命令重新配置gitlab
sudo gitlab ctl reconfigure


谢谢你的帮助,非常感谢
nc -v packages.gitlab.com 443