Linux server tutorials
Step-by-step tutorials for a Linux server: VPNs, web servers, databases, containers, security and backups. Each one names the distributions it was tested on.
5 of 50 tutorials in Databases
How to install and secure MariaDB on Ubuntu 24.04
Install MariaDB on Ubuntu 24.04, answer mariadb-secure-installation correctly, give each app its own user and keep port 3306 private.
How to install PostgreSQL on Ubuntu 24.04 and keep it private
Install PostgreSQL 16 from Ubuntu or 18 from the PostgreSQL repository, create a role and a database, and connect safely over an SSH tunnel.
How to install and secure Redis on Ubuntu 24.04
Install Redis on Ubuntu 24.04, keep it on localhost, replace the open default user with ACL users, block dangerous commands and cap its memory.
How to restore a MariaDB database on a new server
Move one MariaDB database to a new server with its users, grants, routines and events: rehearse the import, redo it at the cutover, check every table.
How to restore a PostgreSQL database on a new server
Move one PostgreSQL database to a new server with its roles, extensions and grants: rehearse the restore, redo it at the cutover, check every table.