Files
2026-05-03 19:13:24 +00:00

1.2 KiB

title, name, summary, description
title name summary description
Gitea Installation Guide gitea-installation Install Gitea on a VPS to set up a self-hosted Git service. A step-by-step guide to installing Gitea on a VPS for a self-hosted Git service.

Objective

Install Gitea on a VPS to set up a self-hosted Git service.

Steps

  1. Install Dependencies:

    sudo apt update
    sudo apt install -y git curl
    
  2. Download and Install Gitea:

    curl -fsSL https://raw.githubusercontent.com/go-gitea/gitea/master/contrib/docker/install.sh | sudo GITEA_VERSION=latest bash
    
  3. Start and Enable Gitea Service:

    sudo systemctl enable gitea
    sudo systemctl start gitea
    
  4. Check Gitea Service Status:

    sudo systemctl status gitea
    
  5. Access Gitea: Once Gitea is running, you can access it via your browser at http://77.93.152.242:3001.

Notes

  • Ensure that port 3001 is open on the VPS.
  • If there are any errors during installation, check the logs for more details.

Troubleshooting

  • If the installation script fails, try downloading the Gitea binary manually from the official website.