在Debian squeeze上,我得到了syslog错误:
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-allnetstat -l | grep git输出:
tcp 0 0 *:git *:* LISTEN
tcp6 0 0 [::]:git [::]:* LISTEN我目前正在使用sv start/stop命令行重新启动服务,并终止服务进程以确保它被重新加载。
也许我漏掉了一些非常愚蠢的东西。任何帮助都是非常感谢的。
发布于 2012-03-14 16:48:52
我认为,当您使用git-daemon的--listen参数时,它不会抱怨缺少host……
发布于 2012-03-14 16:01:51
与设置git守护进程相比,这可能更容易:
这个问题在我的服务器上也发生过一次。
当从git://克隆时,我使用了两种方法...不能工作。
1、git over ssh,将用户的公钥附加到~/.ssh/authorized_keys,则不需要用户名/密码即可访问存储库:
git clone user@host:/path/to/git/repository/myproject.git2 .推送webserver可访问目录下的仓库,如
/var/www/git确保/var/www/是可访问的,例如,它设置为apache httpd的文档根目录。这至少让用户得到了它。
https://stackoverflow.com/questions/6400151
复制相似问题