一键部署脚本库

LNMP / Docker / Ollama / ComfyUI / WordPress

LNMP 一键环境

Ubuntu 22.04 / Debian 12

Nginx + MySQL 8 + PHP 8.3,适合 WordPress / Laravel

bash
curl -fsSL https://sirvps.com/s/lnmp.sh | bash -s -- --php 8.3 --mysql 8

安装约 5-8 分钟,完成后站点目录位于 /home/wwwroot

Docker + Compose

Ubuntu / Debian / CentOS

官方源安装最新版 Docker 与 Compose 插件

bash
curl -fsSL https://get.docker.com | bash
systemctl enable --now docker
docker version

建议同时配置镜像加速:/etc/docker/daemon.json

Ollama 本地大模型

Linux(推荐 16G+ 内存)

一键部署 Ollama 并拉取 qwen2.5 模型

bash
curl -fsSL https://ollama.com/install.sh | bash
ollama pull qwen2.5:7b
OLLAMA_HOST=0.0.0.0:11434 ollama serve

对外开放端口请配合防火墙与反向鉴权

ComfyUI 绘图

Ubuntu 22.04 + CUDA 12

NVIDIA 显卡环境下的 ComfyUI 部署

bash
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
python main.py --listen 0.0.0.0 --port 8188

显卡驱动需先安装,建议配合 --highvram 参数

WordPress

Ubuntu / Debian

基于 LNMP 的 WordPress 快速部署

bash
curl -fsSL https://sirvps.com/s/wp.sh | bash -s -- --domain example.com --ssl

脚本会自动申请 Let's Encrypt 证书

Nginx 反代 + 证书

任意 Linux

快速搭建反向代理并签发 HTTPS 证书

bash
apt install -y nginx certbot python3-certbot-nginx
certbot --nginx -d example.com -d www.example.com

证书自动续期已加入系统定时器

执行任何脚本前请确认来源,并在测试环境验证。生产环境操作前务必做好备份。