后端: Express server,带npx create-express-api后端
前端: Next.js,带有npx create-react-app前端
我已经在我的根文件夹中实现了这些命令,并尝试运行npm start xxx来检查它们是否仍在工作。尽管它们在此链接http://172.27.178.192:3000 (在我的网络上) This is the image showing the problem中工作,但它们在我的http://localhost:3000中不起作用
我更换了浏览器,但仍然出现了同样的问题。在浏览器上,它显示Unable to connect Firefox无法建立到localhost:3000服务器的连接。
发布于 2020-12-24 20:39:17
我认为其他应用程序占用了你的3000端口。试着找出哪一个是。如果已找到,请关闭,然后重试。
例如,您想要释放端口3000,请执行以下命令。
netstat -ano taskkill /f /im从上一条命令获取的端口3000的PID
发布于 2020-12-24 20:47:53
How to close TCP and UDP ports via windows command line netstat -ano | findstr :8080
然后,pid将出现在您可以用taskkill杀死的右端。
pid的最后一个数字。
然后:
taskkill/pid 11704 /F
https://stackoverflow.com/questions/65436936
复制相似问题