在 Debian squeeze 上,我收到系统日志错误:
unable to allocate any listen sockets on host (null) port 9418
而且我也不能远程克隆。
文件/etc/service/git-daemon/run
:
"$(git --exec-path)"/git-daemon --verbose --base-path=/var/cache/git --detach --syslog --reuseaddr --export-all
netstat -l | grep git
输出:
tcp 0 0 *:git *:* LISTEN
tcp6 0 0 [::]:git [::]:* LISTEN
我目前正在使用 sv start/stop
命令行重新启动服务,并终止服务进程以确保它重新加载。
也许我漏掉了一些非常愚蠢的东西。 非常感谢任何帮助。
最佳答案
我认为,当你使用 git-daemon
的 --listen
参数时,它不会提示缺少 host
...
关于linux - git 守护进程 : "unable to allocate any listen sockets on host (null) port 9418",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6400151/