redis啓動報錯-- Creating Server TCP listening socket *:6379: bind: Address already in use

一、錯誤原因 端口被佔用了,完整錯誤提示如下 二、解決方法 1)找到佔用端口進程,使用命令     ps -ef | grep -i redis 可以看到,7532佔用了6379端口(不同狀態佔用的線程可能不同,不一定都是7532,) 2)殺死佔用進程,使用命令     kill-9   7532(根據第一步查到的進程號) 3)重新啓動redis    ./redis-server
相關文章
相關標籤/搜索