GoAdmio Command Line: memcached with /go/memcached

/go/memcached installs Memcached, an in-memory cache that websites use to keep frequently needed data in RAM (for example sessions and database query results). The command: Memcached has no login of its own, so it must never be reachable from the internet. Open UDP ports on public Memcached servers have been abused for large denial-of-service attacks. Restricting it to localhost and turning UDP off prevents this. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/memcached

Then confirm that it listens only on localhost (see Examples).

Options

This command has no options. Arguments are only written to the log file.

Examples

# Install and secure Memcached
/go/memcached

# Check that the service is running
systemctl status memcached

# Check what it listens on. Expect 127.0.0.1:11211 on TCP, and no UDP line.
ss -tulpn | grep 11211

# Apply the options if the check above shows the wrong addresses
sudo systemctl restart memcached

Output

Operating system Message
AlmaLinux, Rocky, CentOS, Red Hat, Fedora Installing MEMCACHED, followed by the dnf output
Debian, Ubuntu Installing Memcached, followed by the apt output
Any other Nothing. The command does nothing and prints no message.

There is no success message. Every run is recorded in /var/log/go/memcached.log.

See the full reference at /go/memcached and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *