window系统下成功配置单机模式后
可以启动
但是过一会或者访问locahost:8848自动关闭
我们打开nacos/logs文件夹,把log全部删掉再开启一遍,注意不是bin里的log
拉到最下面
意思就是端口被占用了,Nacos2.0版本新增了gRPC通讯方式,还需要两个端口 9849 和 9849
查看端口占用
# windows
netstat -ano | findstr 8848
netstat -ano | findstr 9848
netstat -ano | findstr 9849
# linux
netstat -tunlp | grep 8848
netstat -tunlp | grep 9848
netstat -tunlp | grep 9849
<