原因:当使用键盘关闭的时候不要使用 control + z 键,这个只会暂停程序运行,端口号依然会被占用。 端口依然被占用 解决方法: 1、尽量使用 control + c 键退出。 2、killall node image.png