【问题标题】:Removing mysql using launchctl使用 launchctl 删除 mysql
【发布时间】:2013-08-25 08:39:32
【问题描述】:

我正在尝试卸载旧的 sql,以便安装新的。我正在关注this 的帖子,但停留在launchctl unload

[~/Library/LaunchAgents]$ lscom.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae.plist com.mysql.mysqld.plist com.facebook.videochat.ava.plist homebrew.mxcl.postgresql.plist

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist launchctl: Couldn't stat("/Users/ava/Library/LaunchAgents/homebrew.mxcl.postgresql.plist"): No such file or directory nothing found to unload

为什么找不到文件?

【问题讨论】:

  • 不应该是launchctl unload homebrew.mxcl.postgresql
  • 我是从主目录运行的。
  • 在你的 mac 中搜索 homebrew.mxcl.postgresql.plist 文件
  • @ParagBafna 位置显示在问题中,没有问题。
  • Couldn't stat("/Users/ava/Library/LaunchAgents/homebrew.mxcl.postgresql.plist"): 没有这样的文件或目录找不到卸载

标签: mysql macos homebrew uninstallation launchd


【解决方案1】:

检查 homebrew.mxcl.mysql

launchctl list   

删除

launchctl remove homebrew.mxcl.mysql

【讨论】:

    【解决方案2】:

    尝试使用此命令解决您的问题:

    $ brew services stop mysql

    【讨论】:

    • brew service stop mysql Error: Unknown command: service
    • @argoden 您的服务拼写错误。您应该在其中添加“s”。无论如何,您可以尝试复制然后粘贴。
    猜你喜欢
    • 2015-09-21
    • 1970-01-01
    • 1970-01-01
    • 2021-03-10
    • 2010-10-13
    • 2011-02-15
    相关资源
    最近更新 更多