当前位置:网站首页>Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error
Redis启动时提示Creating Server TCP listening socket *:6379: bind: No error
2022-08-01 19:01:00 【霸道流氓气质】
场景
启动redis-server时需要走配置文件,所以编写了bat脚本启动。
@echo off
redis-server.exe redis.windows.conf
exit
这样就不用每次都输命令了。
但是某次在双击Bat脚本之后,命令框一闪而过。
此时在redis-server.exe所在的目录下打开cmd,输入redis-server.exe redis.windows.conf
会提示:
Creating Server TCP listening socket *:6379: bind: No error
注:
博客:
霸道流氓气质的博客_CSDN博客-C#,架构之路,SpringBoot领域博主
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。
实现
1、这是因为6379端口被占用。
如果6379一直被redis使用,则代表上次的redis未正常关闭。
继续在cmd中输入
redis-cli.exe
然后如果需要密码登录,则输入
auth 你的密码
不然会提示Authentication required
2、然后停掉redis-server
输入
shutdown
如果出现提示
not connected则停掉成功,此时再启动redis-server即可。
边栏推荐
- 英国伦敦大学|眼科强化学习:潜在应用和实施挑战
- Keras deep learning practice - traffic sign recognition
- 日志工厂(详细)
- 力扣刷题之移动零
- 将ENS域名转化为音乐需要几步?
- [National Programming] "Software Programming - Lecture Video" [Zero Basic Introduction to Practical Application]
- Selenium在远程中的截图
- Redis的内存淘汰策略和过期删除策略的区别是什么
- WinRAR | 将多个安装程序生成一个安装程序
- Zabbix6.0钉钉机器人告警
猜你喜欢
Win11校园网无法连接怎么办?Win11连接不到校园网的解决方法
面试必问的HashCode技术内幕
屏:全贴合工艺之GFF、OGS、Oncell、Incell
有点奇怪!访问目的网址,主机能容器却不行
How many steps does it take to convert an ENS domain name into music?
explain each field introduction
[pyqt5] Custom controls to achieve scaling sub-controls that maintain the aspect ratio
Fuzzy query in Map pass-by-value and object pass-by-value
No need to crack, install Visual Studio 2013 Community Edition on the official website
LeetCode 0152. Product Maximum Subarray: dp + Roll in Place
随机推荐
XML配置
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
Summer vacation second week wrap-up blog
【神经网络】一文带你轻松解析神经网络(附实例恶搞女友)
屏:全贴合工艺之GFF、OGS、Oncell、Incell
Prometheus的Recording rules实践
SQL function TO_DATE (1)
How many steps does it take to convert an ENS domain name into music?
LeetCode 0151. Reverse a string of words
行业沙龙第二期丨如何通过供应链数字化业务协同,赋能化工企业降本增效?
Win11怎么安装语音包?Win11语音包安装教程
暑假第二周总结博客
[Kapok] #Summer Challenge# Hongmeng mini game project - Sudoku (3)
Map by value
面试必问的HashCode技术内幕
When compiling a program with boost library with VS2013, it prompts fatal error C1001: An internal error occurred in the compiler
力扣刷题之移动零
COS 用户实践征文
Multi-Party Threshold Private Set Intersection with Sublinear Communication-2021:解读
力扣刷题之合并两个有序数组