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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM