Can redis be run as daemon on Linux without root?

2,710 views
Skip to first unread message

queonda

unread,
Aug 2, 2012, 1:05:49 PM8/2/12
to redi...@googlegroups.com
I'd like to run redis as a daemon under a shared account, installed under a custom directory:

/home/[user]/

Is this possible? Is nohup ./redis-server the only way to do this?

Jeremy Zawodny

unread,
Aug 2, 2012, 1:16:44 PM8/2/12
to redi...@googlegroups.com
Yes, you can easily do that.  The nohup isn't even necessary if you config file tells redis to daemonize.

Jeremy

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/YutulQJmRRUJ.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Peter Scott

unread,
Aug 3, 2012, 1:59:47 AM8/3/12
to redi...@googlegroups.com
Sure! The redis-server program can run just fine under any user account. Personally, I prefer to run all my daemons under something like Runit or Upstart or God or Supervisord, which makes the whole process simple, and restarts them if they happen to crash. Here's a short explanation of how to run Redis with Upstart, which is installed by default on Ubuntu:


-Peter
Reply all
Reply to author
Forward
0 new messages