Log inSign up

FreeBSD server guides

6 guides with commands tested for FreeBSD 14. Each page notes where other distributions differ.

Your server and account

Your server IPv4 and IPv6 addresses

Where the console shows your dedicated IPv4 and IPv6, how to confirm them inside the OS, and how to put IPv6 to work.

Server basics

Add a swap file

Create a swap file, enable it at boot, tune swappiness and learn when extra swap helps a small VPS and when it only hides a memory shortage.

Choose a Linux distribution

Compare the 12 operating system images on the Deploy page by support life, package freshness and the software you plan to run.

Upgrade FreeBSD to a new release

Patch with freebsd-update, move to a newer minor or major release, rebuild packages with pkg and keep a ZFS boot environment as the way back.

Databases

Install Redis or Valkey

Install Redis or its open fork Valkey, require a password through ACLs, keep it on localhost, choose RDB or AOF persistence and cap memory.

Install Memcached

Set up Memcached as a fast object cache, keep it on localhost with UDP off, size its memory and connect PHP or Python apps to it.