博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
报错处理——# Creating Server TCP listening socket *:6379: bind: Address already in use
阅读量:4327 次
发布时间:2019-06-06

本文共 2180 字,大约阅读时间需要 7 分钟。

  在启动redis时报错

# Creating Server TCP listening socket *:6379: bind: Address already in use

 

错误原因

  6379地址已经在使用(6379是redis默认的端口)

 

解决方法

  •   使用命令找到占用端口号的进程:
ps -ef | grep -i redis

得到类似如下的信息

501  2267     1   0  3 119  ??         8:17.40 redis-server *:6379  501 48677 48662   0  3:17下午 ttys002    0:00.00 grep -i redis
  •   kill该进程
kill -9 2267
  •   重启redis
redis-server

大功告成

48678:C 24 Jan 15:18:20.870 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo48678:C 24 Jan 15:18:20.871 # Redis version=4.0.11, bits=64, commit=00000000, modified=0, pid=48678, just started48678:C 24 Jan 15:18:20.871 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf48678:M 24 Jan 15:18:20.873 * Increased maximum number of open files to 10032 (it was originally set to 256).                _._                                                             _.-``__ ''-._                                                   _.-``    `.  `_.  ''-._           Redis 4.0.11 (00000000/0) 64 bit  .-`` .-```.  ```\/    _.,_ ''-._                                    (    '      ,       .-`  | `,    )     Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379 |    `-._   `._    /     _.-'    |     PID: 48678  `-._    `-._  `-./  _.-'    _.-'                                    |`-._`-._    `-.__.-'    _.-'_.-'|                                   |    `-._`-._        _.-'_.-'    |           http://redis.io          `-._    `-._`-.__.-'_.-'    _.-'                                    |`-._`-._    `-.__.-'    _.-'_.-'|                                   |    `-._`-._        _.-'_.-'    |                                    `-._    `-._`-.__.-'_.-'    _.-'                                         `-._    `-.__.-'    _.-'                                                 `-._        _.-'                                                         `-.__.-'                                               48678:M 24 Jan 15:18:20.889 # Server initialized48678:M 24 Jan 15:18:31.003 * DB loaded from disk: 10.114 seconds48678:M 24 Jan 15:18:31.003 * Ready to accept connections

 

 

 

      

 

    

转载于:https://www.cnblogs.com/zhuminghui/p/10314714.html

你可能感兴趣的文章
我的第一篇CBBLOGS博客
查看>>
【MyBean调试笔记】接口的使用和清理
查看>>
07 js自定义函数
查看>>
jQueru中数据交换格式XML和JSON对比
查看>>
form表单序列化后的数据转json对象
查看>>
[PYTHON]一个简单的单元測试框架
查看>>
iOS开发网络篇—XML数据的解析
查看>>
[BZOJ4303]数列
查看>>
一般处理程序在VS2012中打开问题
查看>>
C语言中的++和--
查看>>
thinkphp3.2.3入口文件详解
查看>>
POJ 1141 Brackets Sequence
查看>>
Ubuntu 18.04 root 使用ssh密钥远程登陆
查看>>
Servlet和JSP的异同。
查看>>
虚拟机centOs Linux与Windows之间的文件传输
查看>>
ethereum(以太坊)(二)--合约中属性和行为的访问权限
查看>>
IOS内存管理
查看>>
middle
查看>>
[Bzoj1009][HNOI2008]GT考试(动态规划)
查看>>
Blob(二进制)、byte[]、long、date之间的类型转换
查看>>