Mac进入redis服务端错误信息:"Increased maximum number of open files to 10032 (it was originally set to 256)"
[root@node01 redis]# src/redis-server redis.conf 32575:C 11 Oct 17:17:24.088 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 32575:C 11 Oct 17:17:24.088 # Redis version=4.0.1, bits=64, commit=00000000, modified=0, pid=32575, just started 32575:C 11 Oct 17:17:24.088 # Configuration loaded 32575:M 11 Oct 17:17:24.089 * Increased maximum number of open files to 10032 (it was originally set to 1024). 32575:M 11 Oct 17:17:24.090 # Creating Server TCP listening socket *:6379: bind: Address already in use
问题一
# 查看系统限制
>>>$ ulimit -a
# 设置“open files”数量
>>>$ ulimit -n 10032
参考 https://blog.csdn.net/y201314an/article/details/89856145
问题二
[root@node01 redis]# netstat -lnp|grep 6379 tcp 15 0 0.0.0.0:6379 0.0.0.0:* LISTEN 8690/./xmrig-notls tcp6 0 0 :::6379 :::* LISTEN 8690/./xmrig-notls [root@node01 redis]# kill -9 15 -bash: kill: (15) - 没有那个进程 [root@node01 redis]# kill -9 8690
xmrig-notls 很像挖矿病毒
参考 https://www.cnblogs.com/coder-lzh/p/8977232.html#_label0