Redis le port du serveur est déjà en cours d'utilisation

Je suis en utilisant le Redis version 2.2.13

jack@ubuntu:~/redis$ src/redis-server
[23900] 14 Sep 14:28:52 # Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
[23900] 14 Sep 14:28:52 # Opening port: bind: Address already in use

J'ai donc suivi les instructions ci-dessus et essayez

redis-server $HOME/redis/redis.conf

Qui me donne l'erreur suivante:

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

Le fichier a les commentaires suivants:

# When a slave lost the connection with the master, or when the replication
# is still in progress, the slave can act in two different ways:
#
# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
#    still reply to client requests, possibly with out of data data, or the
#    data set may just be empty if this is the first synchronization.
#
# 2) if slave-serve-stale data is set to 'no' the slave will reply with
#    an error "SYNC with master in progress" to all the kind of commands
#    but to INFO and SLAVEOF.

Résolu

  • Quelle version utilisez-vous?
  • la version 2.2.13, je pense que j'ai résolu le problème maintenant! J'ai utilisé celui-ci, pour s'assurer que j'étais l'exécution correcte du fichier: $HOME/redis/src/redis-server $HOME/redis/redis.conf
InformationsquelleAutor Jack | 2011-09-14