请知悉:本文最近一次更新为 11年 前,文中内容可能已经过时。

那,服务器最近挂了,是公用服务器,上面跑好几个域名,其中有一个是git服务的,对linux实在是不熟悉啊,所以重启完服务器后一点点的琢磨怎么把对应的服务跑起来,由于根本不知道安装在哪儿了,搜起来也比较麻烦,曲折啊,从vhost看了下git的路径,然后通过路径搜启动方式,结果启动时报错如下:

/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/binder.rb:235:in `initialize': Address already in use - "/home/git/gitlab/tmp/sockets/gitlab.socket" (Errno::EADDRINUSE)
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/binder.rb:235:in `new'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/binder.rb:235:in `add_unix_listener'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/binder.rb:96:in `block in parse'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/binder.rb:64:in `each'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/binder.rb:64:in `parse'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/cli.rb:420:in `run_single'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/lib/puma/cli.rb:408:in `run'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/puma-2.0.1/bin/puma:10:in `<top (required)>'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/puma:23:in `load'
from /home/git/gitlab/vendor/bundle/ruby/2.0.0/bin/puma:23:in `<main>'
GitLab service started

这尼玛,什么情况,百度找结果啊,找到https://blog.csdn.net/csfreebird/article/details/8852305

发现和里面说的一样,所以按照文内说的,用指令:

sudo rm /home/git/gitlab/tmp/sockets/gitlab.socket

删除了gitlab.socket 文件后,再用指令

/etc/init.d/gitlab start

成功启动了git的对应服务……如此,问题得以解决。


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《/home/git/gitlab/tmp/sockets/gitlab.socket (Errno::EADDRINUSE) 的解决办法》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌