Skip to content

Instantly share code, notes, and snippets.

@fouvy
Last active August 29, 2015 14:16
Show Gist options
  • Save fouvy/f04ee00cd485134a4663 to your computer and use it in GitHub Desktop.
Save fouvy/f04ee00cd485134a4663 to your computer and use it in GitHub Desktop.
redis.conf and command set init.d for centos
######### 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