标签:redis 21 22 -._ bind No Redis _.-
1 问题复现
PS D:\Devtools\Redis> redis-server.exe
[8812] 21 Jul 22:39:12.624 # Warning: no config file specified, using the default config. In order to specify a config file use D:\Devtools\Redis\redis-server.exe /path/to/redis.conf
[8812] 21 Jul 22:39:12.624 # Creating Server TCP listening socket *:6379: bind: No such file or directory
PS D:\Devtools\Redis> redis-server.exe redis.windows.conf
[9324] 21 Jul 22:39:22.587 # Creating Server TCP listening socket *:6379: bind: No error
2 问题解决方法
PS D:\Devtools\Redis> redis-cli.exe
127.0.0.1:6379> shutdown
not connected> exit
PS D:\Devtools\Redis> redis-server.exe
3 成功运行的结果
PS D:\Devtools\Redis> redis-server.exe
[10400] 21 Jul 22:40:19.622 # Warning: no config file specified, using the default config. In order to specify a config file use D:\Devtools\Redis\redis-server.exe /path/to/redis.conf
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.0.504 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 10400
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[10400] 21 Jul 22:40:19.622 # Server started, Redis version 3.0.504
[10400] 21 Jul 22:40:19.622 * DB loaded from disk: 0.000 seconds
[10400] 21 Jul 22:40:19.622 * The server is now ready to accept connections on port 6379
4 原理
重启6379端口,关闭已经占用的线程,重启后port分配给redis使得程序能够运行
标签:redis,21,22,-._,bind,No,Redis,_.- 来源: https://www.cnblogs.com/repoxu/p/16503943.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。