Skip to content

Instantly share code, notes, and snippets.

@dodyw
Created June 18, 2013 00:02
Show Gist options
  • Select an option

  • Save dodyw/5801595 to your computer and use it in GitHub Desktop.

Select an option

Save dodyw/5801595 to your computer and use it in GitHub Desktop.
Set redis as daemon. Get init-rpm.sh here: https://gist.github.com/dodyrw/5801564
cd /opt
useradd -M -r --home-dir /opt/redis redis
mv /opt/init-rpm.sh /etc/init.d/redis
chmod +x /etc/rc.d/init.d/redis /etc/init.d/redis
chown -R redis:redis /opt/redis
touch /var/log/redis.log
chown redis:redis /var/log/redis.log
chkconfig --add redis
chkconfig redis on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment