Skip to content

Instantly share code, notes, and snippets.

@romanitalian
Created April 29, 2021 19:51
Show Gist options
  • Save romanitalian/b7b8b76e4330c6b6c4ef9b1b7c979ee0 to your computer and use it in GitHub Desktop.
Save romanitalian/b7b8b76e4330c6b6c4ef9b1b7c979ee0 to your computer and use it in GitHub Desktop.

CentOS 7

$ yum install memcached
$ yum install libmemcached

Edit config (optional):

$ vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 127.0.0.1 -U 0" 
$ systemctl restart memcached
$ systemctl enable memcached

CentOS 8

$ sudo dnf install memcached libmemcached
$ rpm -qi

Edit config (optional):

$ vim /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 127.0.0.1 -U 0" 
$ sudo systemctl start memcached
$ sudo systemctl enable memcached

Check status:

$ sudo systemctl status memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment