I've just installed Redis by 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
The Redis configuration file is located at installdir/redis/etc/redis. conf.
Basic. Once you install Redis on your server, you can start the server using the redis-server command. The command will initialize the Redis cluster allowing you to connect to it and execute commands. By default, the Redis server will run on port 6379.
I had this problem, too, and had to manually copy 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 the ; at the ends of the lines because sometimes I want to join things into a single line of shell commands.
Make sure the rest of your stuff is setup, like init.d, conf and log files.
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