Cloud & DevOps Ubuntu / Linux Cloud / Nginx
Cloud & DevOps Quick Reference
Production VPS & cloud commands for Nginx, Certbot SSL, systemd services, UFW firewall, rsync deploys, and GitHub Actions CI/CD.
nginx -t && systemctl reload nginx; journalctl -u app -f
Core Cloud & DevOps Cheat Sheet
| Task | Command |
|---|---|
| Validate & reload Nginx safely | nginx -t && systemctl reload nginx |
| Issue free HTTPS cert | certbot --nginx -d app.example.com |
| Restart & check systemd service | systemctl restart my-api && systemctl is-active my-api |
| Stream live service logs | journalctl -u my-api -f |
| Sync static build to server | rsync -az --delete dist/ root@SERVER:/var/www/app/ |
| Check open listening ports | ss -tulpn |
| Check disk & RAM usage | df -h && free -h |
| Configure UFW firewall | ufw allow 22,80,443/tcp && ufw enable |