使用redis 报错Address already in use redis无法启动问题 oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

报错Address already in use 表示的6379端口被占用
或者报以下错误

60192:C 17 Jan 2019 00:04:58.948 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
60192:C 17 Jan 2019 00:04:58.948 # Redis version=5.0.2, bits=64, commit=00000000, modified=0, pid=60192, just started
60192:C 17 Jan 2019 00:04:58.948 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
60192:M 17 Jan 2019 00:04:58.949 * Increased maximum number of open files to 10032 (it was originally set to 256).
60192:M 17 Jan 2019 00:04:58.950 # Creating Server TCP listening socket *:6379: bind: Address already in use

解决方法
我的是mac 在你的bin 目录下输入命令
找到这个进程,使用命令

ps -ef | grep -i redis

出现

  macdeMacBook-Pro:bin mac$ ps -ef | grep -i redis
  501    60184  60058   0 12:04上午 ttys000    0:00.12 redis-server *:6379
  501    60196  60186   0 12:07上午 ttys003    0:00.00 grep -i redis

找到上面这个redis-server的进程号为60184的(这个填写你自己的,我的是60184),然后杀死这个进行,执行命令

kill -9 60184

kill - 9 表示强制杀死该进程( kill -9 id);

OK

 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值