TAG
Tag: Ubuntu
3 articles tagged Ubuntu.
- VPS
Where to put apps on a VPS: the /opt/apps directory layout
A simple convention for app code on a VPS: keep each app in its own folder under /opt/apps, chown the parent folder once, and git clone, git pull and .env edits never need sudo again.
- Database
Tune VPS performance: swap, PostgreSQL and the DB pool
Speed up a 16GB Ubuntu VPS that runs many Docker containers next to PostgreSQL: add swap to keep the OOM Killer away, tune PostgreSQL for more RAM and SSD storage, then raise the app's connection pool.
- VPS
Set up a new VPS: the essential secure steps
Bring up a fresh Ubuntu/Debian VPS safely: create a sudo user, log in with an SSH key, harden sshd, enable the UFW firewall, and disable ping.