Last active
August 29, 2015 14:16
-
-
Save fouvy/f04ee00cd485134a4663 to your computer and use it in GitHub Desktop.
redis.conf and command set init.d for centos
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
######### redis.conf change | |
# set daemonize to yes | |
daemonize yes | |
# set log file | |
logfile "/opt/log/redis/redis.log" | |
# set db file path | |
dir /opt/lib/redis/ | |
######### redis.conf change end | |
######## privilege set | |
useradd redis | |
chown redis.redis /opt/lib/redis | |
chown redis.redis /opt/log/redis | |
chmod +x /etc/init.d/redis | |
chkconfig redis on | |
######## privilege set end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment