git:https://github.com/gogits/gogs
安装数据库等搜索网络,
安装 git
#Debian和Ubuntu系统
apt-get -y install git
#CentOS系统
yum -y install git
二进制安装
#二进制安装
不同版本系统名称,当前版 0.11.91 @ 2019-08-11
系统 类型 SQLite PAM 下载(GitHub)
Linux 386 ✅ ✅
Linux amd64 ✅ ✅
Linux armv5 ❌ ❌
Linux armv6 ❌ ❌
Raspberry Pi v2/v3 / armv7 ✅ ✅
Windows 386 ✅ ❌
Windows amd64 ✅ ❌
macOS amd64 ✅ ❌
wget https://cdn.gogs.io/0.11.91/gogs_0.11.91_linux_386.tar.gz && tar -zxvf gogs_0.11.91_linux_386.tar.gz
wget https://cdn.gogs.io/0.11.91/gogs_0.11.91_linux_amd64.tar.gz && tar -zxvf gogs_0.11.91_linux_amd64.tar.gz
wget https://cdn.gogs.io/0.11.91/gogs_0.11.91_linux_armv5.zip && unzip gogs_0.11.91_linux_armv5.zip
wget https://cdn.gogs.io/0.11.91/gogs_0.11.91_linux_armv6.zip && unzip gogs_0.11.91_linux_armv6.zip
wget https://cdn.gogs.io/0.11.91/gogs_0.11.91_raspi_armv7.tar.gz && tar -zxvf gogs_0.11.91_armv7.tar.gz
https://cdn.gogs.io/0.11.91/gogs_0.11.91_windows_386.zip
https://cdn.gogs.io/0.11.91/gogs_0.11.91_windows_amd64.zip
https://cdn.gogs.io/0.11.91/gogs_0.11.91_darwin_amd64.zip
以上各平台链接地址,选择合适的下载执行,这是 cdn地址,可以把 cdn 改成 dl
cd gogs
./gogs web
配置运行参加官网
还有通过 docker 安装
还有配合 nginx 映射端口访问
等等