openwares.net

Freedom & Beauty

  • Home
  • About
  • Tags
  • Categories
  • Archives
  • Search
  • Table of Contents
  • Overview

openwares

open source and free matters
994 posts
18 categories
42 tags
0%

macos显示占用端口的应用程序

Posted on 2020-01-26 Edited on 2025-05-19 In GNU/Linux

macos版本的netstat并不支持-p选项以显示打开端口的应用程序,可以使用lsof(list open files)来达到同样的目的

1
$ sudo lsof -nP -iTCP -sTCP:LISTEN

References:
[1]使用 lsof 代替 Mac OS X 中的 netstat 查看占用端口的程序

alacritty无法使用输入法问题
macos编译安装rtorrent
© 2025 openwares
Powered by Hexo & NexT.Muse