redis启动失败问题之完美解决方案
作者:一路向北啊
1.输入启动命令
redis-server.exe redis.windows.conf启动redis,
发现启动失败报错:
[8072] 07 May 09:28:52.241 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
D:\a\Main\redis> redis-server.exe redis.windows.conf[8072] 07 May 09:28:52.241 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
2.报错后输入
redis-cli.exe
D:\a\Main\redis>redis-cli.exe
3.输入shutdown
结束redis
127.0.0.1:6379> shutdown
4.再输入exit
退出redis
not connected> exit
5.退出后再次输入启动redis的命令
redis-server.exe redis.windows.conf
D:\a\Main\redis>redis-server.exe redis.windows.conf
6.启动成功
D:\a\Main\redis> redis-server.exe redis.windows.conf[8072] 07 May 09:28:52.241 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error D:\a\Main\redis>redis-cli.exe127.0.0.1:6379> shutdownnot connected> exit D:\a\Main\redis>redis-server.exe redis.windows.conf _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 3.2.100 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 1392 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [1392] 07 May 09:29:22.203 # Server started, Redis version 3.2.100[1392] 07 May 09:29:22.204 * DB loaded from disk: 0.000 seconds[1392] 07 May 09:29:22.204 * The server is now ready to accept connections on port 6379
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。