首页 > 其他分享 >Install Git Daemon on Fedora

Install Git Daemon on Fedora

时间:2022-11-09 23:37:44浏览次数:72  
标签:Daemon git Fedora -- repositories daemon server Git path


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.

标签:Daemon,git,Fedora,--,repositories,daemon,server,Git,path
From: https://blog.51cto.com/u_3987305/5838968

相关文章

  • Install Flash Plugin on Fedora 17
    Addings#For32-bitSystem:sudorpm-ivhhttp://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm#For64-bitSystemsudorpm-ivhhttp:......
  • 【luffy】协同开发,冲突解决,线上分支合并,pycharm操作git,前端首页组件编写,首页轮播图功
    目录1.协同开发2.冲突解决2.1多人同一分支开发出现冲突2.2分支合并出现冲突3.线上分支合并(pr,mr)4.pycharm操作git4.1clone4.2gitadd4.3gitcommit4.4gitpull......
  • Git - 错误集
    $gitpull20221109testmasterFromhttps://gitee.com/chaung_sun/20221109test*branchmaster->FETCH_HEADfatal:refusingtomergeunrelated......
  • 使用phpstudy搭建gitee开源项目[勾股dev]
    前段时间公司一直要求进行只是梳理,整合,想着做一套知识管理系统,在gitee上找到了一个开源的项目管理系统,带的有知识库管理子系统,索性就拿来使用了;gitee地址  https://git......
  • 另类在线编程Classroom for Github
    说到Github,我们一般认为它是一个软件工程师共享、塑造以及合作代码的平台,但你可能想不到它也是教人学软件编程的好地方,现在GitHub已经有了在线教育服务了!近年来,大量......
  • git合并master到本地分支
    首先将自己本地分支dev上的代码正常提交到git上,拉取代码到自己本地。然后:1.切换到master主分支上gitcheckoutmaster 2.将master更新的代码拉取到本地gitpul......
  • git面试题
    1你们公司分支方案是什么样的?我们公司的方案是master+dev+bug三条分支master是总分支,用来大版本的发布dev是我们一般开发用的bug分支是在master发布版本遇到问题是在b......
  • day29 git
    git概述:git是一个版本管理工具,用于管理项目的版本,它是一个分布式的项目管理工具,每个本地的代码都是本地的一个仓库,然后提交到远程仓库,git是一个多分支的版本管理工具,svn......
  • 今日内容 gitee合并代码,项目前台首页组件编写
    协同开发在公司中,都是多人共同开发同一个项目-1组长本地创建出空项目,底层代码写完---》提交到远程仓库-2张三,李四,王五都要共同开发这个项目-3我们......
  • github 访问慢--解决
    修改配置;mac/linux系统的hosts文件的位置如下:/etc/hosts获取Github相关网站的ip访问https://www.ipaddress.com分别搜索github.global.ssl.fastly.net和github.com,查询ip......