科技 > 操作系统 > Unix

【gitlab】failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/g

165人参与 2024-08-06 Unix

问题描述

gitlab版本:14.0.5

虚拟机版本:centos7

安装gitlab并启动后,访问,这个时候可以正常访问。但是当虚拟机关机后,再次访问(这个时候gitlab是启动的),访问就报502了。

原因分析

解决方法

目的:支持gitlab邮件发送

systemctl enable postfix && systemctl start postfix

查看是否安装openssh

rpm -qa|grep openssh

查看是否安装postfix

rpm -qa|grep postfix

将ssh服务设置开机启动

systemctl enable sshd

启动ssh服务

systemctl start sshd

查看ssh服务状态

systemctl status sshd

注:笔者的其他的服务都是启动着的,看到ssh这的时候,竟然可以正常访问了。但奇怪的是笔者的ssh也是启动着的,但重新执行一遍命令就可以。

添加http服务器到firewalld

[root@centos110 ~]# firewall-cmd --permanent --add-service=http
success
[root@centos130 ~]# firewall-cmd --permanent --add-service=ssh

[root@centos110 ~]# systemctl reload firewalld
[root@centos110 ~]#

如果关闭防火墙就不需要做以上配置

参考文章

(0)
打赏 微信扫一扫 微信扫一扫

您想发表意见!!点此发布评论

推荐阅读

银河麒麟V10+达梦数据库DM8环境,安装UnixODBC驱动

08-06

无法使用docker|ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker

08-06

Andorid进程间通信之 UNIX SOCKET

08-06

板凳---------unix网络编程卷1:第二章传输层:TCP、UDP 和 SCTP

08-06

整理FreeBSD系统安装时关于硬盘参数提示的处理方法

09-08

Windows 安装 GCC

08-03

猜你喜欢

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论