前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Install Git Daemon on Fedora

Install Git Daemon on Fedora

作者头像
技术小黑屋
发布2018-09-03 17:36:23
5560
发布2018-09-03 17:36:23
举报
文章被收录于专栏:技术小黑屋

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.

1

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:

1

sudo yum install git-daemon

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

1

vim /etc/xinetd.d/git

And modify the file as the following configuration.

代码语言:javascript
复制
# 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

1

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.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档