Reputation: 349
I am running redis 3.0.6 in ubuntu 16.04 server. I have edited the /etc/redis/redis.conf
file & changed the dir option from /var/lib/redis to /home/redisdata
& changed the owner of /home/redisdata to redis.
I have moved the dump.rdb from /var/lib/redis to /home/redisdata & tried to start the redis-server. But it keeps on saying :
Can't chdir to '/home/redisdata': Permission denied
Any help is appreciated!
Thanks.
Upvotes: 7
Views: 4114
Reputation: 1452
Just in case you are still having this issue, try this: edit the file
/etc/systemd/system/redis.service
commenting the line
#ProtectHome=yes
It will complain about the file change and ask you to do a
sudo systemctl daemon-reload
That should do it
sudo service redis-server restart
Upvotes: 9