One day, I tried to start a new node js program, nevertheless, it show me the error message:

So I just go to find out which program is using the same port:

And go to check that is there any node js program is executing already:

Bingo, there is some node js is performing, also one program that occupies the 12345 port.

Then I just kill the program and start my new program:

However, I tried much time to kill the program, but It just rebuilds again and again. That I using the

and find out that the user who is using “PM2” to start the program and added the watch function that why ‘when the program down, it will start it again automatically’. So I have to find the user to stop it. because the program is abandon already.

Okay, then I try to start the program again and It works.

發佈留言