🚀 用 Podman 搭一台自托管服务器

2026-06-17

记录服务器初始化的过程,备忘用。

1. 安装 Cockpit

dnf install -y cockpit cockpit-podman
systemctl enable --now cockpit.socket

访问 https://服务器IP:9090

2. 系统优化

sysctl -w net.ipv4.tcp_congestion_control=bbr
sysctl -w vm.swappiness=10

3. Podman 部署 Nginx

podman run -d --name nginx -p 80:80 nginx:alpine

4. Podman 部署 Gitea

podman run -d --name gitea -p 3000:3000 -p 22:22 gitea/gitea:latest
← 返回首页