CentOS Stream 8
Sponsored Link

Memcached : Install
2021/06/21
 
Install Memcached which is the distributed memory caching System.
[1] Install Memcached.
[root@dlp ~]#
dnf -y install memcached
[2] It's possible to change settings of Memcached on [/etc/sysconfig/memcached].
For other options, you can see [man memcached].
[root@dlp ~]#
vi /etc/sysconfig/memcached
# listening port

PORT="11211"
# process owner

USER="memcached"
# max connections

MAXCONN="1024"
# max chache memory size (MB)

CACHESIZE="64"
# possible to specify options here

# listen on localhost by default like follows

# if you'd like to use memcached from other Hosts, change to own IP address or to [0.0.0.0]

OPTIONS="-l 127.0.0.1,::1"
[root@dlp ~]#
systemctl enable --now memcached

[3] If you'd like to use Memcached from other Hosts and also Firewalld is running, allow service.
[root@dlp ~]#
firewall-cmd --add-service=memcache --permanent

success
[root@dlp ~]#
firewall-cmd --reload

success
Matched Content