Quick Setup of git-daemon

Source: Internet
Author: User
Quick Setup of git-daemon 1. install git-daemon on the premise that gitsudoapt-getinstallgitgit-core is installed and then the git-daemonsudoapt-getinstallgit-daemon-run2 is installed. after the configuration is installed, modify the configuration file/etc/service/git-daemo .. quick Setup of git-daemon 1. to install git-daemon, install gitsudo apt-get install git-core and install git-daemonsudo apt-get install git-daemon-run 2. after the configuration is installed, modify the configuration file/etc/service/git-daemon/run #! /Bin/shexec 2> & 1 echo 'Git-daemon starting. 'exec chpst-ugitdaemon \ "$ (git -- exec-path)"/git-daemon -- verbose \ -- export-all -- base-path =/home/ /Git modify the -- base-path field to put the Directory of the git project on your own. 3. service restart Method 1: ps-eaf | grep-v grep | grep git kill git-daemon process runsv will restart git-daemon Method 2: sudo sv down git-daemonsudo sv up git-daemon 4. use in/home/ Initialize a testing repository in the/git directory. After the git clone git: // 127.0.0.1/testing service is restarted successfully, use git: // to access it. it is automatically maintained using git-daemon. After git-daemon is set up, the git warehouse read-only service is provided.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.