Installation on Fedora
sudo dnf install -y memcached installs the server. Enable and start it with sudo systemctl enable --now memcached. Verify the binary with memcached -V.
Configuration
Fedora reads service options from /etc/sysconfig/memcached: PORT, USER, MAXCONN, CACHESIZE (in MB), and OPTIONS for extra flags. For example, add OPTIONS="-l 127.0.0.1 -U 0" to bind to localhost and disable UDP. Apply with sudo systemctl restart memcached.
Security
Memcached has no authentication. Keep it bound to 127.0.0.1 (via OPTIONS), and never expose port 11211 to untrusted networks. Disabling UDP (-U 0) avoids being used in amplification attacks.