【发布时间】:2019-02-19 22:20:40
【问题描述】:
当我尝试运行 redis-server 时,它会显示此错误:
# Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
16954:M 15 Sep 14:49:56.350 * Increased maximum number of open files to 10032 (it was originally set to 1024).
16954:M 15 Sep 14:49:56.350 # Creating Server TCP listening socket *:6379: bind: Address already in use
我还尝试通过以下方式显示哪个进程使用此端口:
fuser -k -n tcp 6379
但是这个命令没有返回任何东西。
【问题讨论】:
-
同样的问题,在我的情况下,我已经运行了我的 redis 服务器,所以我不能运行它两次。要检查它是否已经运行,在我的情况下转到 redis 文件夹 redis-6.2.5/src 然后运行 ./redis-cli