service memcached status
● memcached.service - memcached daemon
Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sat 2020-05-16 23:46:47 UTC; 3s ago
Docs: man:memcached(1)
Process: 905 ExecStart=/usr/share/memcached/scripts/systemd-memcached-wrapper /etc/memcached.conf (code=exited, status=0/SUCCESS)
Main PID: 905 (code=exited, status=0/SUCCESS)
May 16 23:42:00 openlitespeed-wordpress-ubuntu systemd[1]: Started memcached daemon.
May 16 23:42:00 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[905]: Could not open the pid file /var/run/memcached/memcached.pid.tmp for writing: Permission denied
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[905]: Signal handled: Terminated.
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd[1]: Stopping memcached daemon...
May 16 23:46:47 openlitespeed-wordpress-ubuntu systemd[1]: Stopped memcached daemon.
root@openlitespeed-wordpress-ubuntu:~# service memcached start
root@openlitespeed-wordpress-ubuntu:~# service memcached status
● memcached.service - memcached daemon
Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2020-05-16 23:47:00 UTC; 3s ago
Docs: man:memcached(1)
Main PID: 1854 (memcached)
Tasks: 10 (limit: 1151)
CGroup: /system.slice/memcached.service
└─1854 /usr/bin/memcached -m 64 -p 11211 -u www-data -l 127.0.0.1 -P /var/run/memcached/memcached.pid -s /var/www/memcached.sock -a 0770 -p /tmp/memcached.pid
May 16 23:47:00 openlitespeed-wordpress-ubuntu systemd[1]: Started memcached daemon.
May 16 23:47:00 openlitespeed-wordpress-ubuntu systemd-memcached-wrapper[1854]: Could not open the pid file /var/run/memcached/memcached.pid.tmp for writing: Permission denied
Any idea how to fix it?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It’s just an idea, if you remove the pid, will it work?
mv /var/run/memcached/memcached.pid.tmp /tmp
service memcached restart
Best, Eric
what if you do
nc -U /path/to/memcached.sock stats
and/or
telnet 127.0.0.1 11211 stats
what do they respond ?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.