Redis 错误 Creating Server TCP listening socket *:6379: bind: No error
解决方法
- 运行 Redis-CLI :
- 在 Redis 中运行
shutdown,然后运行exit退出。 - 再次启动 Redis 。
控制台内容如下:
D:\Redis>redis-cli.exe
127.0.0.1:6379> shutdown
not connected> exit
D:\Redis>redis-server.exe redis.windows.conf
错误及解决经过
D:\Redis>ls
EventLog.dll redis-benchmark.pdb redis-server.pdb
'Redis on Windows Release Notes.docx' redis-check-aof.exe redis.conf
'Redis on Windows.docx' redis-check-aof.pdb redis.windows-service.conf
'Windows Service Documentation.docx' redis-cli.exe redis.windows.conf
dump.rdb redis-cli.pdb server_log.txt
redis-benchmark.exe redis-server.exe
D:\Redis>redis-server.exe redis.windows.conf
[5376] 28 Oct 13:32:23.085 # Creating Server TCP listening socket *:6379: bind: No error
D:\Redis>redis-cli.exe
127.0.0.1:6379> shutdown
not connected> exit
D:\Redis>redis-server.exe redis.windows.conf
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.100 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 10412
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[10412] 28 Oct 13:32:38.246 # Server started, Redis version 3.2.100
[10412] 28 Oct 13:32:38.248 * DB loaded from disk: 0.000 seconds
[10412] 28 Oct 13:32:38.248 * The server is now ready to accept connections on port 6379