Reputation: 1367
I have tested Perl programming langugage for a while and installed Perl Dancer web framework. Dance server used port 3000. Now when I try to deploy another application like MeteorJS app it can not use this port. When I navigate to http://localhost:3000, i get some boilerplate template like Dance server is still running. How to fix this ?
EDIT
OS: ubuntu 14.04 LTS 32-bit
Upvotes: 1
Views: 543
Reputation: 46187
You can use the command
sudo fuser 3000/tcp
to get the process id(s) of any process(es) using TCP port 3000, which will then allow you to use ps
/pstree
to inspect them or kill
to terminate them.
Upvotes: 2
Reputation: 69224
You can change the port that Dancer uses either in the config file or in the code.
But if you're saying that you just want to stop the Dancer server running, then you need to kill the process.
Upvotes: 2