Web server failed to start. Port 9421 was already in use.
解决方法:
Windows 环境
1.电脑搜索框输入cmd弹出命令行窗口,或者 Win+R键输入cmd
2.输入命令查PID:netstat -aon|findstr "9421" (9421是被占用的端口号)
3.根据PID删除:taskkill /pid 9960 /f(9960是PID)
4.重新启动服务,成功。
Linux 环境
1.查看端口占用
netstat -nap|grep 9421
2.查看进程
ps -aux |grep 9960
3.结束进程
kill pid 或 kill -9 pid