redis服务器启动问题之 6379: bind: No such file or directory
2022/7/23 2:24:16
本文主要是介绍redis服务器启动问题之 6379: bind: No such file or directory,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
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服务器启动问题之 6379: bind: No such file or directory的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-21redisinsight-v2
- 2024-02-26Typed property App\Api\Mapper\GamePropsConfigMapper::$apiRedis must not be accessed before initia-icode9专业技术文章分享
- 2024-02-21redisson getlock
- 2024-02-20redis config
- 2024-02-20redis leaderboard
- 2024-01-23缓存选型:Redis or MemCache
- 2024-01-22面试官:Redis持久化能关吗?怎么关?
- 2024-01-21Redis压测工具redis-benchmark-icode9专业技术文章分享
- 2024-01-19这才是你应该了解的Redis数据结构!
- 2024-01-18Redis系列:使用 Redis Module 扩展功能