When developing locally, the port number you want to use may still contain the process you used when you developed it earlier. Describe the coping method in such a case.
If you want to know the process running on localhost port 3000, use the following command.
Terminal
$ lsof -i :3000
com.docke 25316 takuya 41u \
IPv6 0xc293b929f41a59e9 0t0 TCP *:hbci (LISTEN)
As described above, the PID number of the process running on port 3000 can be grasped.
Here, the PID number is 25316
, so stop the process as follows.
Terminal
$ kill -9 25316
-9 seems to be a forced termination option.
that's all
Recommended Posts