← 返回
开发者工具 中文

Server

Configure, deploy, and troubleshoot web servers, application servers, and containerized services.
配置、部署和排查 Web 服务器、应用服务器及容器化服务。
ivangdavila
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 2
Stars
📥 1,735
下载
💾 11
安装
1
版本
#latest

概述

Scope

This skill covers the software layer — what runs inside a machine.

For infrastructure (provisioning VMs, SSH hardening, firewalls, backups), use the vps skill.

When to Use

  • Configuring nginx, Caddy, or Apache
  • Deploying Node.js, Python, Go, or other apps
  • Docker and Docker Compose setups
  • SSL/TLS certificates with Let's Encrypt
  • Reverse proxy and load balancing
  • Process management (pm2, systemd services)
  • Troubleshooting port conflicts, CORS, connection errors
  • Self-hosting (Plex, Nextcloud, game servers)
  • Local development servers (Vite, webpack-dev-server)

Common Pitfalls

  • Port already in use — Check with lsof -i :PORT or ss -tlnp | grep PORT, kill stale processes
  • CORS in development — Proxy through your dev server or configure backend headers, don't disable in production
  • SSL certificate issues — Certbot needs port 80/443 open, use --standalone or --webroot mode appropriately
  • nginx config not loading — Always run nginx -t before systemctl reload nginx
  • Docker container can't reach host — Use host.docker.internal (Docker Desktop) or 172.17.0.1 (Linux)
  • Process dies after SSH disconnect — Use systemd, pm2, or run inside tmux/screen
  • Wrong permissions on mounted volumes — Match container user UID with host file ownership

Patterns by Use Case

Use CaseRecommended Stack
-----------------------------
Static siteCaddy (auto-SSL, zero config)
Node.js appPM2 + nginx reverse proxy
Python (Django/FastAPI)Gunicorn + nginx
Multiple servicesDocker Compose + Traefik
Game serverDedicated container + port mapping

For framework-specific configs, see configs.md.

For Docker Compose patterns, see docker.md.

Debugging Checklist

  1. Is the process running? systemctl status or docker ps
  2. Is it listening? ss -tlnp | grep PORT
  3. Can you reach it locally? curl localhost:PORT
  4. Firewall blocking? Check ufw status or cloud security groups
  5. Reverse proxy misconfigured? Check nginx logs: /var/log/nginx/error.log
  6. DNS pointing correctly? dig domain.com or nslookup

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,767
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,995
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,970