Answer the question
In order to leave comments, you need to log in
How to run memcached installed from source as a service?
Installed memcached from source on Oracle Linux 6. I can successfully run it with the memcached command. But how to configure it to run as a service? So that the daemon is constantly in operation, and starts after the system is rebooted.
The documentation refers to a collection of init scripts . It is not clear which and how to use.
Answer the question
In order to leave comments, you need to log in
Take the memcached.service file from there, put it in /etc/systemd/system/
If necessary, correct the paths and so on in it.
Next (as root or sudo):
systemctl daemon-reload
systemctl enable memcached
systemctl start memcached
systemctl status memcached
chmod +x /etc/init.d/memcached
chkconfig --add memcached
chkconfig --level 3 memcached on
/etc/init.d/memcached start
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question