<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Gogs on Leanku</title>
    <link>https://blog.leanku.com/categories/gogs/</link>
    <description>Recent content in Gogs on Leanku</description>
    <image>
      <url>https://blog.leanku.com/papermod-cover.png</url>
      <link>https://blog.leanku.com/papermod-cover.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Sun, 11 May 2025 13:46:01 +0800</lastBuildDate><atom:link href="https://blog.leanku.com/categories/gogs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Gogs 使用指南</title>
      <link>https://blog.leanku.com/post/gogs-%E4%BD%BF%E7%94%A8/</link>
      <pubDate>Sun, 11 May 2025 13:46:01 +0800</pubDate>
      
      <guid>https://blog.leanku.com/post/gogs-%E4%BD%BF%E7%94%A8/</guid>
      <description>Gogs 使用 1. 什么是 Gogs? Gogs 是一款极易搭建的自助 Git 服务。 Gogs 的目标是打造一个最简单、最快速和最轻松的方式搭建自助 Git 服务。使用 Go 语言开发使得 Gogs 能够通过独立的二进制分发，并且支持 Go 语言支持的 所有平台，包括 Linux、Mac OS X、Windows 以及 ARM 平台。 2. 安装 Linux-amd64系统为例 2.1 要求 数据库（选择以下一项） MySQL：版本 &amp;gt;= 5.7 PostgreSQL TiDB 或者 什么都不安装 直接使用 SQLite3 2.2 下载安装 # 下载二进制 wget https://github.com/gogs/gogs/releases/download/v0.13.2/gogs_0.13.2_linux_amd64.tar.gz tar -xzvf gogs_0.13.2_linux_amd64.tar.gz gogs cd gogs ./gogs web 2.3 使用 systemd服务单元文件来管理 创建编辑一个服务单元文件
vim /etc/systemd/system/gogs.service 在文件中添加以下内容：
[Unit] Description=Gogs Server After=network.target [Service] ExecStart=/path/gogs web Restart=always User=your_username Group=your_groupname [Install] WantedBy=multi-user.</description>
    </item>
    
  </channel>
</rss>
