Академический Документы
Профессиональный Документы
Культура Документы
(/) search
This guide explains howto install Memcached 1.4.15/1.4.17/1.4.36 stable version of distributed
memory object caching system on Fedora 26/25/24/23/22/21/20 and CentOS / Red Hat (RHEL)
7.3/6.9/5.11. Fedora 24/23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7/6 and Red Hat
(RHEL) 7/6 has Memcached on default repos, so extra repositories is not needed.
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 1/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
Bash
Bash
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 2/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
Bash
Bash
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="512"
OPTIONS=""
Bash
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 3/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
CentOS/RHEL 6.9/5.11
Bash
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 4/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 5/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
Everything working nice. Then its time to test memcache example with some web application.
Bash
nano -w /etc/sysconfig/iptables
Bash
-A INPUT -m state --state NEW -m tcp -p tcp --dport 11211 -j ACCEPT
Bash
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 6/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
Bash
firewall-cmd --get-active-zones
Example output:
Bash
public
interfaces: wlp1s0
Bash
firewall-cmd --permanent --zone=public --add --port=11211/tcp
Restart rewalld.service:
Bash
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 7/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
## Fedora 26/25/24/23 ##
dnf install php php-pecl-memcache
## CentOS/RHEL 7.3/6.9/5.11 ##
yum install php php-pecl-memcache
## Fedora 26/25/24/23 ##
dnf install php php-pecl-memcached
## CentOS/RHEL 7.3/6.9/5.11 ##
yum install php php-pecl-memcached
## CentOS/RHEL 6.9/5.11 ##
/etc/init.d/httpd restart
## OR ##
service httpd restart
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 8/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
Related Posts
navigate_next
7.2/6.8 (https://www.if-not-true-then-false.com/2010/install-
openo ce-org-on-fedora-centos-red-hat-rhel/)
45 Comments
Leave a Comment
Your email address will not be published. Required elds are marked *
Comment *
help
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 10/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
Name *
Email *
Website
POST COMMENT
send
(//srv.buysellads.com/ads/click/x/GTND42QECTAIK5QJCKSLYKQMCTYDL2JECESILZ
(//srv.buysellads.com/ads/click/x/GTND42QECTAIK5QJCYBLYKQMCTYDLK7ECYBDLZ3JCWYDT5QECYAI6KJKC6BITK37CYSDTK3EHJNCLSIZ
(//srv.buysellads.com/ads/click/x/GTND42QECTAIK5QJCYSLYKQMCTYDLK3NCVSICZ3JCWYDT5QYCA7I553
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 11/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
(//srv.buysellads.com/ads/click/x/GTND42QECTAIK5QJCYSLYKQMCTYDLKQECAAIPZ3JCWYDT53ICA7I4K7
(//srv.buysellads.com/ads/click/x/GTND42QECTAIK5QJCYSLYKQMCTYDLK7NFT7DKZ3JCWYDT5QJCTSDE2
Advertise Here
Recent Posts
Recent Comments
ADVERTISE (HTTPS://WWW.IF-NOT-TRUE-THEN-FALSE.COM/ADVERTISE/)
CONTACT (HTTPS://WWW.IF-NOT-TRUE-THEN-FALSE.COM/CONTACT/)
TERMS OF SERVICE / DISCLAIMER (HTTPS://WWW.IF-NOT-TRUE-THEN-FALSE.COM/TERMS-OF-SERVICE-
DISCLAIMER/)
PRIVACY POLICY (HTTPS://WWW.IF-NOT-TRUE-THEN-FALSE.COM/PRIVACY-POLICY/)
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 12/13
7/25/2017 Install Memcached on Fedora 26/25, CentOS/RHEL 7.3/6.9/5.11 - If Not True Then False
https://www.if-not-true-then-false.com/2010/install-memcached-on-centos-fedora-red-hat/ 13/13