Redis:Creating Server TCP listening socket *:6379: bind: No such file or directory解决方案
程序员文章站
2022-06-23 15:13:46
...
使用redis-server启用redis服务器出现以下问题的解决方法
解决方法:
对于[8348] # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf错误
意思是没有默认的conf文件
解决方法:
切换到redis对应的目录,把命令改成:
redis-server.exe redis.windows.conf
再次重新启动即可。
启动后发现[8348] # Creating Server TCP listening socket *:6379: bind: No such file or directory问题依然存在,可按以下方法解决
解决方法:
在cmd中依次输入以下指令:
redis-cli.exe
127.0.0.1:6379>shutdown
(error)NOAUTH Authentication required
127.0.0.1:6379>AUTH 123456
OK
127.0.0.1:6379>shutdown
not connected>exit
redis-server.exe
成功后显示截图如下,即为启动成功:
总结:
redis使用完毕,将redis进行shutdown,养成好的习惯。
redis-cli shutdown,这样可以避免redis正在将内存中的数据同步到硬盘中,因为强行终止redis进行可能会导致数据丢失
推荐阅读
-
【转载】启动redis出现Creating Server TCP listening socket *:6379: bind: No such file or directory
-
redis:creating server tcp listening socket 127.0.0.1:6379: bind No error
-
creating server tcp listening socket 127.0.0.1:6379: bind No error
-
Redis CMD 启动 10 Sep 11:07:41.985 # Creating Server TCP listening socket 127.0.0.1:6379: bind:
-
Redis服务器启动问题之Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
-
redis连接时报错:# Creating Server TCP listening socket 127.0.0.1:6379: bind: Address already in use
-
Redis:Creating Server TCP listening socket *:6379: bind: No such file or directory解决方案
-
Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
-
开启redis-server提示 # Creating Server TCP listening socket *:6379: bind: Address already in use--解决方法
-
【转载】启动redis出现Creating Server TCP listening socket *:6379: bind: No such file or directory