Created
June 18, 2013 00:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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