Build a Gogs server in CentOS

Source: Internet
Author: User
Tags ssh server git hooks

Build a Gogs server in CentOS
Overview

Gogs (Go Git Service) is an easy-to-build self-help Git Service. Developed using the Go Language, The Gogs can be distributed independently in binary format and supports all platforms supported by the Go language, including Linux, Mac OS X, Windows, and ARM platforms.

Features
  • Supports activity time series
  • Support for SSH and HTTP/HTTPS protocols
  • Supports SMTP, LDAP, and reverse proxy user authentication.
  • Supports reverse proxy sub-Path
  • Support for user, organization, and warehouse management systems
  • Supports repository and organization-level Web hooks (including Slack integration)
  • Supports repository Git hooks and deployment keys
  • Support warehouse ticket, merge Request, and Wiki
  • Allows you to add and delete warehouse collaborators.
  • Support Gravatar and custom sources
  • Support email service
  • Support for background management panel
  • Supports MySQL, PostgreSQL, SQLite3, and TiDB (experimental support) Databases
  • Supports multi-language localization (15 languages)
System Requirements
  • The lowest system hardware requirement is a cheap Raspberry Pi
  • 2-core CPU and 1 GB memory are recommended for team projects
Start to build the installation environment

My system is: CentOS 7.0
Gogs: gogs_v0.9.13_linux_amd64.zip

Install the Basic Environment

1. Install the database (select either of them ):
-MySQL: version> = 5.5.3
-PostgreSQL
-Or use SQLite3 or TiDB directly without any installation.
I chose not to install anything.
2. Install git (bash ):
Both the server and client require version> = 1.7.1
The latest version is recommended for Windows.
There are a lot of git installation tutorials. Please refer to Baidu for specific operations.
3. Install the SSH server:
If you only use HTTP/HTTPS or the built-in SSH server, ignore this option.
We recommend that you use Cygwin OpenSSH or Copssh in Windows.

Install Gogs

You can install Gogs in the following five ways:

  • Binary Installation
  • Source code Installation
  • Package management Installation
  • Use Docker for deployment
  • Install with Vagrant
    I am using the first "binary installation". For other installation methods, click here
    1. Download and decompress the Gogs package.
    2. Run the command cd to enter the Created directory.
    3. Execute the command./gogs web.
    4. Access "Server IP: 3000" in the browser to open the web installation interface and configure the server. Then you can play the game.

  • Note: If you close the running command window or make the web address inaccessible, I am looking for a way to run it in the background. If you know anything, leave a message to tell me.
Error
  • Error:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
    This is because the downloaded gogs installation package is inconsistent with the current system bit (32-bit/64-bit ).
    For example, gogs_v0.9.13_linux_amd64.zip is installed on the Linux64-bit system;
    Gogs_v0.7.33_linux_386.zip is installed on the Linux32-bit system;
    It must correspond to the number of system digits.

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.