欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

redis连接时报错:# Creating Server TCP listening socket 127.0.0.1:6379: bind: Address already in use

程序员文章站 2022-06-23 15:14:04
...

redis开启连接报错:bind: Address already in use
redis连接时报错:# Creating Server TCP listening socket 127.0.0.1:6379: bind: Address already in use

解决方法:在linux终端命令行中运行:

redis-cli

127.0.0.1:6379> shutdown
not connected> exit
再次输入:

redis-server /usr/redis/redis.conf

解决!