[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f3pztcb97ban7o":3},{"type":4,"solution":5},"solution",{"slug":6,"platform":7,"title":8,"description":9,"risk":10,"categorySlug":11,"tags":12,"verifiedAt":19,"updatedAt":19,"categoryName":20,"command":21,"undoCommand":22,"directAnswer":23,"explanation":24,"warning":25,"seoTitle":26,"seoDescription":27,"requirements":22,"macosSupport":28,"sources":29,"related":36},"check-app-gatekeeper-assessment","macos","检查 Mac 应用是否通过门禁（Gatekeeper）","查看应用是否经过签名，以及签名来自哪里。","medium","security",[13,16],{"slug":14,"name":15},"gatekeeper","门禁",{"slug":17,"name":18},"diagnostics","诊断","2025-11-09T00:00:00.000Z","安全与隐私","spctl -a -vv \u002FApplications\u002FSomething.app",null,"把命令中的路径替换成要检查的应用后运行。输出 accepted 表示通过门禁，同时会显示开发者 ID 和签名来源。","门禁决定未经签名或来源不明的应用能否运行。spctl -a 在命令行执行同样的评估，-vv 会显示签名证书、应用来自 App Store 还是开发者 ID 等细节。遇到“应用已损坏\u002F无法打开”的提示时，可以先用它诊断原因。","spctl 只报告策略结果——accepted 并不代表该软件一定安全。","Mac 检查应用签名与门禁状态 — spctl 命令","用系统自带 spctl 命令检查 macOS 应用是否通过门禁、由谁签名。","macOS 10.11 El Capitan – 15 Sequoia",[30],{"url":31,"title":32,"publisher":33,"sourceType":34,"evidence":35,"retrievedAt":19},"https:\u002F\u002Fss64.com\u002Fmac\u002Fspctl.html","spctl — system policy security assessment","SS64","technical","spctl -a assesses an application against Gatekeeper policy; -vv prints the assessment source.",[37,51,66],{"slug":38,"platform":7,"title":39,"description":40,"risk":10,"categorySlug":41,"tags":42,"verifiedAt":50,"updatedAt":50},"flush-dns-cache","清除 Mac 的 DNS 缓存","网站解析到旧 IP 时，清空 macOS 的 DNS 缓存。","network",[43,46,47],{"slug":44,"name":45},"dns","DNS",{"slug":17,"name":18},{"slug":48,"name":49},"terminal","终端","2025-11-18T00:00:00.000Z",{"slug":52,"platform":7,"title":53,"description":54,"risk":55,"categorySlug":56,"tags":57,"verifiedAt":65,"updatedAt":65},"find-process-using-port","查看 Mac 上哪个进程占用了端口","找出占用 8080（或任意端口）的应用。","low","developer",[58,61,64],{"slug":59,"name":60},"lsof","lsof 文件占用",{"slug":62,"name":63},"processes","进程",{"slug":17,"name":18},"2025-11-16T00:00:00.000Z",{"slug":67,"platform":7,"title":68,"description":69,"risk":10,"categorySlug":11,"tags":70,"verifiedAt":78,"updatedAt":78},"show-wifi-password","查看 Mac 保存的 Wi-Fi 密码","查看你的 Mac 连接过的无线网络密码。",[71,74,77],{"slug":72,"name":73},"keychain","钥匙串",{"slug":75,"name":76},"wifi","Wi-Fi",{"slug":17,"name":18},"2025-11-17T00:00:00.000Z"]