Tôi đang sử dụng phiên bản Redis 2.2.13cổng máy chủ Redis đã được sử dụng
[email protected]:~/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
Vì vậy, tôi làm theo hướng dẫn ở trên và cố gắng
redis-server $HOME/redis/redis.conf
nào mang lại cho tôi những lỗi sau:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 135
>>> 'slave-serve-stale-data yes'
Bad directive or wrong number of arguments
Tệp có các nhận xét sau:
# 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.
Phiên bản nào bạn đang sử dụng? – seppo0010
phiên bản 2.2.13, tôi nghĩ rằng tôi đã giải quyết được vấn đề ngay bây giờ! Tôi đã sử dụng thông tin sau để đảm bảo rằng tôi đang chạy đúng tệp: $ HOME/redis/src/redis-server $ HOME/redis/redis.conf – Jack