macos 需要做什么才能从 OSX 中完全删除 MAMP 安装?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/246998/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What needs to go in order to fully remove a MAMP install from OSX?
提问by Pete Karl II
For reasons that we won't discuss, I have determined that MAMP is a pile of crap that haunts my system, and unless I remove it fully, I will live in shame.
由于我们不会讨论的原因,我已经确定 MAMP 是一堆困扰我系统的垃圾,除非我完全删除它,否则我将生活在耻辱中。
I've done the obvious thing and removed the MAMP directory from my Applications folder, however, I don't like wandering files, and I have an itching feeling that MAMP put some .sock files somewhere, or otherwise made a mess in my file system.
我已经完成了显而易见的事情并从我的应用程序文件夹中删除了 MAMP 目录,但是,我不喜欢四处游荡的文件,而且我有一种很痒的感觉,即 MAMP 将一些 .sock 文件放在某处,或者以其他方式在我的文件中弄得一团糟系统。
What files does MAMP add to a system when it's installed, and where are they?
MAMP 安装后会向系统添加哪些文件,它们在哪里?
If you have proof that MAMP doesn't actually put files anywhere (besides the /MAMP dir), then that's as good an answer as any!
如果您有证据表明 MAMP 实际上并未将文件放在任何地方(除了 /MAMP 目录),那么这与任何答案一样好!
回答by davr
回答by JohnH
When you download MAMP, you get a MAMP Pro trial, also. In the MAMP Pro folder, there is an 'uninstaller'. When you open the uninstaller, it asks you if you would like to remove all traces (preferences, etc.)
当您下载 MAMP 时,您还会获得 MAMP Pro 试用版。在 MAMP Pro 文件夹中,有一个“卸载程序”。当您打开卸载程序时,它会询问您是否要删除所有痕迹(首选项等)
When I used it, it appeared to delete absolutely everything for MAMP and MAMP Pro.
当我使用它时,它似乎完全删除了 MAMP 和 MAMP Pro 的所有内容。
回答by Hanna Johansson
MAMP does alter one system file: /etc/hosts (it adds any virtual hosts you may have created under the "hosts" tab here).
MAMP 确实改变了一个系统文件:/etc/hosts(它添加了您可能在此处的“主机”选项卡下创建的任何虚拟主机)。
You may want to delete those entries.
您可能想要删除这些条目。
To do so, go to Finder, select "Go"-"Folder" from the menu, and enter "/etc". Then you need to temporarily change permissions on both the host file and the directory it's in, by right clicking and chosing "Get info" and changing the permissions.
为此,请转到 Finder,从菜单中选择“前往”-“文件夹”,然后输入“/etc”。然后,您需要通过右键单击并选择“获取信息”并更改权限来临时更改主机文件及其所在目录的权限。
You can then edit the hosts file in Textedit.
然后您可以在 Textedit 中编辑主机文件。
After you're done, you should put the permissions back to what they were to be on the safe side.
完成后,您应该将权限恢复为安全状态。
回答by Ludvig A. Norin
AppZapper is a great tool that solves this problem. Search Google for it, it's free for the first 5 time you use it.
AppZapper 是一个很好的工具,可以解决这个问题。在 Google 上搜索它,前 5 次使用它是免费的。