Check the port usage on mac and end the process

王林
Release: 2020-05-11 17:15:20
forward
5953 people have browsed it

Check the port usage on mac and end the process

Check port occupancy command

sudo lsof -i :9000
Copy after login

After the colon is the port number you need to check.

Check the port usage on mac and end the process

End the process occupying the current port number

There is a column named PID in the header. This column indicates that the current port number is occupied. Port process.

sudo kill -9 27374
Copy after login

The above is the detailed content of Check the port usage on mac and end the process. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template