Redis server failed to start due to configuration file error

I just installed Redis following the instructions here: http://redis.io/download

When I run redis-server redis.conf, I get the following error:

*** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 135 >>> 'slave-serve-stale-data yes' Bad directive or wrong number of arguments 

thanks

+6
redis
source share
4 answers

Isn't this problem your problem?

+4
source share

I also had this problem , and I had to manually copy the files into place after the build.

 cd ~/redis-2.4.15 mkdir redis-1.2.4-backup sudo mv /usr/bin/redis-* ~/redis-2.4.15/redis-1.2.4-backup/ ; sudo mv src/redis-benchmark /usr/bin/ ; sudo mv src/redis-check-aof /usr/bin/ ; sudo mv src/redis-check-dump /usr/bin/ ; sudo mv src/redis-cli /usr/bin/ ; sudo mv src/redis-server /usr/bin/ ; sudo chown root /usr/bin/redis-* ; 

I put ; at the ends of lines, because sometimes I want to combine everything into one line of shell commands.

Make sure the rest of your stuff is configured, such as init.d , conf and log files.

+4
source share

where you are trying to install, make sure you have the necessary read / write permissions. on ubuntu make sure you run as

 sudo make install 
+1
source share

I had the same problem

At first I tried to compile and install. But will not work. Secondly, I added epel repo and use yum install redis.

The problem is that the rest of the files / folders have a conflict.

So, clear all previous / s settings and run a clean one.

0
source share

All Articles