You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac Ventura下brew安装watchman无法以服务/守护进程模式运行

解决Watchman在Mac Ventura下无法以brew服务模式运行的问题

问题概述

  • 系统:Mac Ventura 13.0.1 (22A400)
  • 已通过brew install watchman安装最新版(2023.02.13.00),命令行可正常使用
  • brew services info watchman显示Running: ✘、Loaded: ✘、Schedulable: ✘,brew services list无相关记录
  • 依赖Watchman的程序无法识别到该服务

修复步骤

1. 重置brew服务配置

先清理残留进程,再重新生成服务配置:

# 终止所有watchman进程
pkill watchman
# 卸载现有服务配置
brew services uninstall watchman
# 重新安装服务配置
brew services install watchman

2. 手动加载LaunchAgent配置

如果上述步骤无效,手动加载watchman的plist文件:

# 用户级加载(多数brew安装场景)
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.watchman.plist

若为系统级安装,需使用sudo执行:

sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.watchman.plist

3. 检查文件完整性与权限

  • 确认plist文件存在:
ls ~/Library/LaunchAgents/homebrew.mxcl.watchman.plist

若文件不存在,强制重装Watchman:

brew uninstall --force watchman
brew install watchman
  • 修正plist文件权限:
chmod 644 ~/Library/LaunchAgents/homebrew.mxcl.watchman.plist

4. 验证服务状态

执行以下命令确认修复效果:

brew services info watchman
# 查看watchman进程是否运行
ps aux | grep watchman

5. 重启系统(最后手段)

若以上操作均无效,重启Mac后重新启动服务:

brew services start watchman

内容的提问来源于stack exchange,提问作者dowjones123

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.31 05:48:24