PHP中文网2017-04-17 15:05:19
I don’t recommend you use ps to view the process because you can’t see the port. At this time, the process occupying the port is killed, not the node process (if there are multiple ones).
So you should:
lsof -i:3000
Check the pid and then kill ${pid}
黄舟2017-04-17 15:05:19
Open terminal and enter ps -ax | grep node //找出所有node应用
sudo kill :pid //找到你要杀死node进程的pid