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.
You can alter the Redis configuration file directly by opening and editing it with your preferred text editor. For example, you can use nano to do so: sudo nano /etc/redis/redis. conf.
The Redis configuration file is located at installdir/redis/etc/redis. conf.
You can obtain a list of all the supported configuration parameters by typing CONFIG GET * in an open redis-cli prompt. All the supported parameters have the same meaning of the equivalent configuration parameter used in the redis.
It binds the redis instance to specific interface (and hence specific ip address). Basically your redis server will only listen to connections made to the address specified in via the bind option. This is a security measure that allows for dropping connections not made inside the particular network.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With