Build a Git server in Ubuntu

Source: Internet
Author: User
This document describes how to build a Git server in Ubuntu and how to build a common exception solution for Git server. First, install git-daemon in ubuntu. the installation command is as follows: [plain] & lt; spanstyle & quot; font-size: 18px; & quot; & gt; # sudoapt-ge... this document describes how to build a Git server in Ubuntu and how to build a common exception solution for Git server. First, install git-daemon in ubuntu. the installation command is as follows: [plain] # After sudo apt-get install git-daemon-run has installed git-daemon, you need to modify the configuration file/etc/sv/git-daemon/run [plain] # sodu vim/etc/sv/git-daemon/run to change the last line of the configuration file: /usr/lib/git-core/git-daemon -- verbose -- export-all -- base-path =/home/jony/Downloads/git_repository (note: the green string is the path of the code repository, and the first and second paths remain unchanged. for example, a Tes is initialized under the/home/jony/Downloads/git_repository directory. T code repository; you can use the following command to clone the code: # git clone git: // ip_address/Test) if -- export-all is not added, so you have to share the git library with others. in the git folder, create a git-daemon-export-OK file, for example, touch git-daemon-export-OK. common exception solution: exception information: cloning into test... fatal: Unable to look up 192.168.0.108 (port home) (Servname not supported for ai_socktype) cause 1: The git clone path is incorrect. when I set up a Git server, the complete path: Git clone git: // 192.168.0.108: home/jony/Dow is used during git clone. Nloads/git_repository/Test causes the above exceptions. The correct path is: git clone git: // 192.168.0.108/Test cause 2: The/etc/services configuration file is not configured with NTP. you need to add the following configuration in this configuration file: ntp 123/tcpntp 123/udp
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.