Difference between revisions of "Memcached"
From SME Server
Jump to navigationJump to searchUnnilennium (talk | contribs) |
Unnilennium (talk | contribs) |
||
Line 3: | Line 3: | ||
Install EPEL | Install EPEL | ||
− | yum install smeserver-extrarepositories-epel | + | yum install smeserver-extrarepositories-epel |
signal-event yum-modify | signal-event yum-modify | ||
Line 9: | Line 9: | ||
yum --enablerepo=epel install memcached php*-pecl-memcached | yum --enablerepo=epel install memcached php*-pecl-memcached | ||
+ | properly configure the service to run | ||
+ | |||
config set memcached service status enabled TCPPort 11211 access local | config set memcached service status enabled TCPPort 11211 access local | ||
− | mkdir -p /usr/lib/systemd/system/memcached.d | + | mkdir -p /usr/lib/systemd/system/memcached.service.d |
− | printf "[Install]\nWantedBy=sme-server.target" >/usr/lib/systemd/system/memcached.d/50koozali.conf | + | printf "[Install]\nWantedBy=sme-server.target" >/usr/lib/systemd/system/memcached.service.d/50koozali.conf |
− | apply | + | apply changes and start |
/etc/e-smith/events/actions/systemd-default | /etc/e-smith/events/actions/systemd-default |
Latest revision as of 20:59, 2 April 2024
Memcached for SME 10 - needs testing properly
Install EPEL
yum install smeserver-extrarepositories-epel signal-event yum-modify
Install
yum --enablerepo=epel install memcached php*-pecl-memcached
properly configure the service to run
config set memcached service status enabled TCPPort 11211 access local mkdir -p /usr/lib/systemd/system/memcached.service.d printf "[Install]\nWantedBy=sme-server.target" >/usr/lib/systemd/system/memcached.service.d/50koozali.conf
apply changes and start
/etc/e-smith/events/actions/systemd-default systemctl enable --now memcached
Check it is running
systemctl status memcached
Now you need to test it is working with PHP.
Memcached for SME9 only
Deprecated.
yum install smeserver-extrarepositories-remi
signal-event yum-modify
yum install memcached php*-pecl-memcached
config set memcached service status enabled TCPPort 11211 access local
cd /etc/rc.d/rc7.d
ln -s S50memcached /etc/rc.d/init.d/memcached
config set UnsavedChanges no
service memcached start