Search
Lessons (15)
- Users, Permissions & sudo
Read rwx permissions, fix 'Permission denied' with chmod and chown, use groups and sudo correctly, and run your …
- Deploy a Node.js App to a VPS, Step by Step
… Add swap ( sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile ), or …
- SSH, Networking & Firewalls
… ban repeat offenders bash sudo apt install -y fail2ban sudo tee /etc/fail2ban/jail.local /dev/null <<'EOF …
- Processes, Services & systemd
… load, start and enable bash sudo systemctl daemon-reload re-read unit files after any change ⭐ sudo systemctl …
- Nginx Reverse Proxy & HTTPS
… Check both sides: sudo ss -ltnp shows which process really owns each port, and grep -r proxy pass …
- Linux Troubleshooting Playbook & Interview Questions
… ls -la ~deploy/.ssh .ssh must be 700, authorized keys 600, owned by deploy sudo tail /var/log …
- Zero-Downtime Deploys & Rollbacks
… 1:$IDLE; }" sudo tee /etc/nginx/conf.d/myapp-upstream.conf sudo nginx -t && sudo systemctl reload nginx …
- Linux Command-Line Essentials
… sudo apt update refresh the list of available packages sudo apt upgrade -y install security updates sudo apt …
- Jenkins: From Install to Your First Pipeline
… Ubuntu server (systemd service) bash Jenkins needs Java (17 or 21) sudo apt update sudo apt install -y …
- Monitoring, Logs & Backups
… firewall it, or bind to localhost) sudo apt install -y prometheus-node-exporter curl -s http://127.0 …
- Bash Scripting & Scheduled Jobs
… host in web1 web2 web3; do ssh "$host" "sudo systemctl restart myapp" done for file in /var/log …
- Recursion & Backtracking
… that can't possibly work, like abandoning a Sudoku guess the moment a row has a duplicate. Good …
- Docker in Production on a Single Server
… restarts Make sure Docker itself starts on boot: sudo systemctl enable docker . The image-based deploy flow Build …
- DevOps and the Path from Code to Server
… server, read files, search logs 3 Users, permissions & sudo Run apps safely without root 4 Processes & systemd Keep …
- Jenkins in Production: Deploys, Docker and Scaling
… Simple nightly backup (excluding the big, rebuildable parts) sudo tar --exclude='workspace' --exclude='caches' \ -czf /backup/jenkins-$(date …