Skip to content

Instantly share code, notes, and snippets.

@wbzyl
Created November 17, 2011 21:58
Show Gist options
  • Save wbzyl/1374681 to your computer and use it in GitHub Desktop.
Save wbzyl/1374681 to your computer and use it in GitHub Desktop.
Uruchamianie Redis
#
# Values to be changed
#
port 6379
#
pidfile /home/wbzyl/.data/var/run/redis.pid # mkdir -p ~/.nosql/var/run/
#
bind 0.0.0.0
#
# The filename where to dump the DB
dbfilename dump.rdb
#
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
#
# Also the Append Only File will be created inside this directory.
#
dir /home/wbzyl/.data/var/lib/redis
#
# Specify the log file name. Also 'stdout' can be used to force
# Redis to log on the standard output. Note that if you use standard
# output for logging but daemonize, logs will be sent to /dev/null
logfile /home/wbzyl/.data/var/log/redis/redis.log
#! /bin/bash
redis-server $HOME/.data/etc/redis.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment