React 报错:重启3000端口, create-react-app 3000端口, 释放3000端口, 端Would you like to run the app on another port instead?

 

方法主要是:

$ ps aux | grep node
you   PID  1.5  0.2  44172  8260 pts/2    S    15:25   0:00 node app.js
$ kill -2 PID

 

单个就用:

sudo kill -9 `sudo lsof -t -i:3000`

 

最爽快的是:

sudo kill -9 $(sudo lsof -t -i:9001)

 

 

 

本文:React 报错:重启3000端口, create-react-app 3000端口, Would you like to run the app on another port instead?

Loading

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.