Categories
Redis

redis setup

setting up redis-server on casualcoder was straightforward.
you need:

redis-server and redis-cli.
you can test the server by using:

/redis-server --port 6380 --slaveof 127.0.0.1 6379

run the service and go:
the docs on the redis site recommend to update the config:


/etc/redis/redis.conf
    appendonly yes
    appendfsync everysec

Once redis is running the way you like, start er up. you can

sudo service redis-server restart

or add to startup by

systemctl enable redis-server
Categories
Docker Redis

docker redis

working with redis, I start redis with this command:

docker run --name some-redis -d redis redis-server --appendonly yes

 

to access redis with redis-cli, I use:

docker exec some-redis redis-cli