安裝
To upgrade to the latest Gitea version, simply download and replace the binary.
- Stop the Gitea service:
sudo systemctl stop gitea
Download the latest Gitea version and move it to the /usr/local/bin
directory:
VERSION=<THE_LATEST_GITEA_VERSION>
wget -O /tmp/gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
sudo mv /tmp/gitea /usr/local/bin
Make the binary executable:
sudo chmod +x /usr/local/bin/gitea
Restart the Gitea service:
sudo systemctl restart gitea