开启redis-server报错 # Creating Server TCP listening socket *:6379: bind: Address already in use--解决方法

开启redis-server时遇到Address already in use错误,原因是6379端口已被占用。解决方法包括查找并终止现有redis进程(进程号3086),然后重启服务器。
摘要由CSDN通过智能技术生成

源问题(1)


在bin目录中开启redis服务器,完整提示如下:


Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
7178:M 11 Dec 00:51:04.350 * Increased maximum number of open files to 10032 (it was originally set to 1024).


解决:

#查看系统限制  
[root@centos224]# ulimit -a  
  
#设置“open files”数量  
[root@centos224]# ulimit -n 10032  
  
#或者设置用户限制  
[root@centos224]# vi /etc/security/limits.conf
  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值