Welcome to Centmin Mod Community
Become a Member

Memcached Memcached Server Info

Discussion in 'Other Centmin Mod Installed software' started by eva2000, May 25, 2014.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    29,033
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,782
    Local Time:
    7:23 PM
    Nginx 1.13.x
    MariaDB 5.5
    Official site info at http://centminmod.com/memcached.html

    How is Memcached Server installed?
    Memcached server(s) is source compiled from official memcached.org gzipped tarball download. Memcached server is an optional installation item you can choose to install at initial Centmin Mod install (menu option #1) - where you can choose to install 1 or 2 Memcached server instances or you can use menu option #10 to install or reinstall Memcached servers. Read FAQ as to why source compiled vs RPM.

    How to disable Memcached server ?
    If you do not use Memcached server, you can disable it via the following commands in SSH telnet
    Code:
    service memcached stop
    chkconfig memcached off
    
    To re-enable Memcached server, via the following commands in SSH telnet
    Code:
    service memcached start
    chkconfig memcached on
    
    Memcache / Memcached PHP Extensions
    If you choose to install Memcached server(s), Centmin Mod will install both Memcache and Memcached PHP extensions along with Libmemcached (Centmin Mod v1.2.3-eva2000.01 and higher).

    How to change Memcached allocated memory size ?
    To increase or decrease Memcached server's allocated memory size, you will need to edit /etc/init.d/memcached start up file's MEMSIZE=8 variable. The variable assigns memory in MegaBytes (MB), so MEMSIZE=8 is equal to 8MB. If you want to allocate 256MB to Memcached server(s), then edit and change variable to MEMSIZE=256 and then restart memcached server:
    Code:
    service memcached restart
    
    or via command shortcut
    Code:
    memcachedrestart
    
    If memcachedrestart shortcut doesn't work, you can re-add it via these 3 commands to be run within SSH telnet as root user:
    Code:
    echo "service memcached stop" >/usr/bin/memcachedstop ; chmod 700 /usr/bin/memcachedstop
    echo "service memcached start" >/usr/bin/memcachedstart ; chmod 700 /usr/bin/memcachedstart
    echo "service memcached restart" >/usr/bin/memcachedrestart ; chmod 700 /usr/bin/memcachedrestart