报的错误
Description:
Web server failed to start. Port 6060 was already in use.
Action:
Identify and stop the process that's listening on port 6060 or configure this application to listen on another port.
解决方法
就是把占用端口的程序关闭
解决过程
找到运行程序的端口号
端口号一般就在启动时打印的日志里面
查看端口对应的PID
查看被占用端口对应的PID(windows)
netstat -aon|findstr 58505
58505对应的是端口号
查看被占用端口对应的PID(linux)
netstat -tunlp |grep 58505
58505对应的是端口号
查看执行的程序
windows系统
# pid填写上一个命令列出来的 注意有空格
tasklist|findstr ""
停止这个进程
windows系统
taskkill /f /t /im 20676
Linux系统
20676对应的是PID
kill -9 20676
20676对应的是PID