我按照 Laravel docs 中的说明在Windows 10上安装Vagrant和Homestead,但现在我决定将整个开发内容移动到运行Debian的另一个专用服务器。
我需要从Windows 10桌面完全删除Vagrant,Homestead,Composer以及AMPPS 。它应该很容易简单卸载Vagrant和AMPPS,但如何去清理剩余的东西?
我不需要保留任何代码等
通过运行
删除宅基VM VM vagrant box删除laravel / homestead
Homestead b $ b
如果您通过composer使用以下命令安装Homestead:
composer global require laravel / homestead运行相反的操作将其删除:
composer remove laravel / homesteadcomposer / vendor / laravel目录,包括其homestead子目录。不需要'global'关键字。
在Mac或Linux系统上,Homestead配置文件可以通过删除'〜/ .homestead'目录来删除。您可能需要狩猎一点,以找到您的Windows系统上的目录。不要担心太多,如果你找不到它;该目录小而无害。
$ b b $ bComposer通常作为Windows应用程序安装;
如果您手动安装了Composer,但它没有出现在已安装的应用程式清单中,请直接移除'composer'二进制和配置目录(Mac / Linux系统上〜/ poser)。
I followed the instructions in Laravel docs to install Vagrant and Homestead on Windows 10, but now I've decided to move the whole development stuff to another dedicated server running Debian.
I need to fully remove Vagrant, Homestead, Composer as well as AMPPS (old stuff) from the Windows 10 desktop. It should be easy to simply uninstall Vagrant and AMPPS, but how do I go about cleaning up the remaining things?
I don't need to keep any of the code etc. I've already got that in a different location.
解决方案Virtual Machine
Remove the homestead VM by running
vagrant box remove laravel/homestead
Homestead
If you installed Homestead via composer with the following command:
composer global require laravel/homesteadrun the opposite to remove it:
composer remove laravel/homesteadThis will remove the poser/vendor/laravel directory, including its 'homestead' subdirectory. The 'global' keyword is not required.
On a Mac or Linux system, the Homestead configuration files can be removed by deleting the '~/.homestead' directory. You may need to hunt a little to find the directory on your Windows system. Don't worry too much if you can't find it; the directory is small and innocuous.
Composer
Composer is usually installed as a Windows application; check Add/Remove programs (or the Windows 10 equivalent) to uninstall it.
If you installed Composer manually and it does not appear in your list of installed apps, simply remove the 'composer' binary and the configuration directory (~/poser on Mac/Linux systems).
更多推荐
从Windows系统中清除Homestead和Vagrant的最干净的方法是什么?
发布评论