Answer the question
In order to leave comments, you need to log in
How to run multiple memcached servers on one physical machine?
There is Debian 8, you need to run several separate memcached servers for different needs.
The use of prefixes is not appropriate.
What is the best way to run them at startup, preferably as a single service with several processes (1 process = one server).
The startup script "/etc/init.d/memcached" studied, made copies of configs with other ports, ran as "/etc/init.d/memcached start server1", it was written "[ ok ] Starting memcached (via systemctl): memcached .service.", but the server itself did not start.
Answer the question
In order to leave comments, you need to log in
In general, I came to the conclusion that on systemd, the service startup script does not allow you to run several memcached, tk. on Debian 7.8 everything works fine.
I made crutches in the form of launching through a script in autoload:
#!/bin/bash
/usr/bin/memcached -k -m 512 -I 1m -p 11210 -u memcache -l 127.0.0.1 -c 1024 -r 4m -d &
/usr/bin/memcached -k -m 512 -I 1m -p 11212 -u memcache -l 127.0.0.1 -c 1024 -r 4m -d &
/usr/bin/memcached -k -m 512 -I 1m -p 11213 -u memcache -l 127.0.0.1 -c 1024 -r 4m -d &
exit
Necropost.
I also encountered such a problem, rummaged through the startup script. There is a search for configs like /etc/memcached_*.conf, but the queue does not reach this part of the script, everything ends on the line
. If you comment it out, then everything starts working with several configs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question