This development mac port occupies an error

Today, with node + express quickly build a service, a service error and became the Times, just go look not too concerned about Baidu, the key point might start searching for the wrong he had just been no solutions are found, through continuous attempts finally solved, what is the problem I encountered

The above error mainly to see the first sentence

 

 My main mistake is that the port is 888, when I replaced four digits 8880 or other port services can be normal up, I understand it into a port occupancy;

The following outlines the solution when the port is in use

The first: directly in the local listening port to replace the other port

Second: Open a terminal execute sudo lsof -i tcp: port View port process situation, and then kill the process kill PID

Guess you like

Origin www.cnblogs.com/liuxuelan/p/11568928.html