I basically want to have 2 instances of redis on Ubuntu. I looked at /etc/init.d/redis-server script and tried to create a new one (redis-server-dev) pointing to another config file (new port etc) but it didn't seem to work.
What is the correct procedure?
Thanks
Best Answer
/etc/redis/redis-new.conf
(copied from redis.conf) and change these fields in the new config/etc/init.d/redis-server-new
(copied from the file redis-server) and change these fields in the new filemkdir /var/lib/redis-new
(and give it the proper rightschown redis:redis /var/lib/redis-new
)chmod +x /etc/init.d/redis-server-new
update-rc.d redis-server-new defaults