为什么opend打开一个端口,什么在听?

时间:2014-02-09 12:04:48

标签: listener port launchd lsof

我的路由器指示我运行的应用程序已打开一个TCP端口(6183)(我不知道)

使用lsofas answered herelsof -iTCP:6183 -sTCP:LISTEN,我发现launchd是罪魁祸首。

是否有可能找出launchd的'脚本'中的哪一个负责?

1 个答案:

答案 0 :(得分:5)

您可以尝试搜索启动使用的“.plist”文件:

find ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons /System/Library/LaunchAgents /System/Library/LaunchDaemons -name "*.plist" -exec grep -H 6183 "{}" \; 2>/dev/null

find ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons /System/Library/LaunchAgents /System/Library/LaunchDaemons -name "*.plist" -exec defaults read "{}" 2>/dev/null \; | grep 6183
相关问题