360 Secure SkillHub
360 安全技能中心

Server Ops

面向 Linux 服务器的运维指南,覆盖系统初始化、Nginx/Caddy 网站部署与 SSL、Docker 管理、安全加固、监控告警、数据库备份与迁移等,以命令示例、排查清单和常见坑形式给出。另列出通过 openclaw-paid-actions 提供的付费动作(服务器初始化、网站部署、安全审计)并附带相应脚本。

scriptsnet
scriptsnet
热度 16.02
最近更新 2026-05-15 19:04:15
分类:自动化依赖:代码执行应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add server-ops
Metadata
name
Server Ops
description
🛠️ 全栈服务器运维指南 / Full-stack server operations guide — 从零装系统到生产环境部署。From zero setup to production deployment.
metadata
{"openclaw":{"emoji":"🛠️","requires":{"bins":["ssh","curl","git","docker (optional)"],"env":[]}}}

🛠️ Server Ops / 服务器运维

Full-stack server operations guide. Configure, deploy, and troubleshoot Linux servers from scratch. 全栈服务器运维指南。从零开始配置、部署、排查 Linux 服务器。


What I Can Do / 能做什么

Service / 服务 Description / 说明 Value / 含金量
🚀 Initial Setup / 环境初始化 New server setup: SSH, firewall, basic tools / 新服务器到手配置 High
🌐 Web Deploy / 网站部署 Nginx/Caddy + SSL + domain / 反向代理+证书+域名 High
🐳 Docker Management / Docker 管理 Install, Compose, container monitoring / 安装编排监控 High
🔒 Security Hardening / 安全加固 SSH, fail2ban, firewall, audit / 防火墙+入侵检测 High
📊 Monitoring / 监控搭建 Netdata, Uptime Kuma, health checks / 监控告警 Medium
🗄️ Database / 数据库管理 MySQL/PostgreSQL install, backup, optimize / 安装备份优化 High
🔄 Migration / 迁移服务 Move sites/databases between servers / 跨服务器迁移 High
☁️ Proxy / 代理配置 v2ray reverse proxy setup / 翻墙代理配置 Medium

Quick Start / 快速上手

5-Minute Server Check / 新服务器5分钟检查

# Check system / 检查系统信息
cat /etc/os-release && uname -a && free -h && df -h

# Update system / 更新系统
apt update && apt upgrade -y

# Create user / 创建普通用户
adduser deploy && usermod -aG sudo deploy

# Install basics / 安装基础工具
apt install -y curl wget git vim htop ufw fail2ban

One-Click Docker / 一行装Docker

curl -fsSL https://get.docker.com | sh
usermod -aG docker $USER

Security First / 安全第一

Priority / 优先级 Action / 措施 Time / 耗时
⭐ Basic Change SSH port, disable password, enable firewall / 改端口禁密码开防火墙 10min
⭐⭐ Standard + fail2ban, auto-updates, audit logs / 入侵检测自动更新 30min
⭐⭐⭐ Hardened + rootkit scanner, AIDE, Docker security / 根工具扫描完整性检查 1h

Common Pitfalls / 常见坑

  • Port conflict / 端口冲突 → lsof -i :PORT or ss -tlnp | grep PORT
  • SSL cert issue / 证书问题 → Certbot needs port 80/443 open
  • nginx config error → Always run nginx -t before reload
  • Docker can't reach host → Use host.docker.internal or 172.17.0.1
  • Process dies after SSH disconnect → Use systemd, pm2, or tmux/screen

Debug Checklist / 排查清单

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

Paid Actions / 付费服务 💰

Available via openclaw-paid-actions (USDC / Solana):

Action / 服务 Price / 价格 Description / 说明
Server Setup / 服务器初始化 $5 USDC Initialize a new server from scratch
Website Deploy / 网站部署 $10 USDC Nginx + SSL + domain setup
Security Audit / 安全审计 $3 USDC Security check + fix recommendations

📞 Contact / 联系方式

QQ: 3292957 Email: snowdu@gmail.com

QR Code for WeChat / QQ: see assets/qr-contact.png in this skill package 微信/QQ 二维码见本技能包 assets/qr-contact.png 文件

For paid services, contact me directly / 需要付费服务请直接联系