Install Git Daemon on Fedora
  HUvfEQhAQVS2 2023年11月02日 46 0


Git-daemon is A really simple server for git repositories.You can take a detailed understanding by reading ​​https://www.kernel.org/pub/software/scm/git/docs/git-daemon.html​​​ .
I once often used git-daemon when I was using Ubuntu.But when I turn to Fedora and found it was not installed.And the output is like the following.



git: 'daemon' is not a git command. See 'git --help'.

So I write this post to record How to install and enable git-daemon First Let’s intall the git Daemon:



sudo yum install git-daemon

However git daemon is off by default.We should enable it.We should do as the following.



vim  /etc/xinetd.d/git

And modify the file as the following configuration.

# default: off
# description: The git dæmon allows git repositories to be exported using \
# the git:// protocol.

service git
{
disable = no
socket_type = stream
wait = no
user = nobody
server = /usr/libexec/git-core/git-daemon
server_args = --base-path=/var/lib/git --export-all --user-path=public_git --syslog --inetd --verbose
log_on_failure += USERID
# xinetd does not enable IPv6 by default
flags = IPv6

}

And then,We use this command to start the git Daemon



git  daemon--export-all--base-path=your_local_git_path

Mostly we could clone the repositories from the git daemon.
But if you have enabled Firewall and other people want to clone the repository from your git daemon,please let the port 9418 available to the outsite.

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  4koL3J55wyKx   2023年11月13日   37   0   0 icogitCentOS
  9E2BTpjt8nym   2023年12月06日   35   0   0 WindowsgitCentOS
HUvfEQhAQVS2