yiGmMk / comment_blog

the comments of www_programnotes_cn
0 stars 0 forks source link

linux port | ProgramNotes #83

Open yiGmMk opened 1 year ago

yiGmMk commented 1 year ago

https://programnotes.cn/linux-port/index.html

Linux 查看端口占用情况可以使用 lsof 和 netstat 命令。 lsof lsof(list open files)是一个列出当前系统打开文件的工具。 lsof 查看端口 lsof -i:端口号 查看服务器 8000 端口的占用情况: 123# lsof -i:8000COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEn