CentOS 7
Sponsored Link

Memcached : Install2016/07/18

 
Install Memcached which is the distributed memory caching System.
[1] Install Memcached.
[root@dlp ~]#
yum -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

# for example, listen all by default but you'd like to change local only,

# add an option like follows

OPTIONS="
-l 127.0.0.1
"
[root@dlp ~]#
systemctl start memcached

[root@dlp ~]#
systemctl enable memcached

[3] If Memcached listens all and also Firewalld is running, allow Memcached port.
[root@dlp ~]#
firewall-cmd --add-port=11211/tcp --permanent

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

success
Matched Content