草庐IT

linux - 如何在 Windows 主机上的 Vagrant 中以区分大小写的方式处理文件

在我的Windows8上,我安装了VirtualBox+Vagrant。我用了LaravelHomestead(withUbuntu)作为盒子。在此VM上运行站点或运行命令行时,我希望它在Linux而不是Windows上运行。但是我发现了一些奇怪的问题:首先是我的文件夹映射:folders:-map:D:\DaneAplikacji\easyphp\data\localweb\projects\testprovag\stronyto:/home/vagrant/codesites:-map:learn.appto:/home/vagrant/code/my-first-app/publ

windows - 使用 vagrant ssh 时如何粘贴到 SourceTree 终端窗口

在Sourcetree中,当您单击终端并在窗口中使用vagrantssh命令时,如何从剪贴板粘贴文本?这些不起作用:Ctrl+VCtrl+Shift+Ins在窗口中右击并选择粘贴。 最佳答案 要在使用Windows时粘贴到其中,您必须:右击顶部栏选择编辑选择粘贴 关于windows-使用vagrantssh时如何粘贴到SourceTree终端窗口,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/que

windows - Vagrant up 命令给出在 %PATH% 错误中找不到的可执行文件

我已经安装了vagrant并且成功添加了vagrantubuntubox。但是在从项目目录运行“vagrantup”命令时,我得到了这个错误:Theexecutable"powershell"vagrantistryingtorunwasnotfoundinthe%Path%variable.Thisisanerror.Pleaseverifythissoftwareisinstalledandonpath.我还安装了Putty客户端并进行了配置。注意:“vagrantinit”命令工作正常,它在目录中创建了一个vagrant文件。Vagrant版本:1.9.7VagrantFile包

windows - Vagrant 同步文件夹链接到 Apache/var/www/in Ubuntu VM

我不确定如何表述标题;希望这是有道理的。我正在学习Vagrant,刚刚发现了同步文件夹。我正在进行Web开发,想在我的本地计算机上编辑/创建我的文件和文件夹,而不是Ubuntu14.04(在Vagrant上)。我将我的文件存储在我的/vagrant/文件夹中,该文件夹最终出现在两台机器上。太棒了。一旦同步文件夹中的文件或文件夹发生更改,我希望这些文件夹/文件自动移动到/var/www/。例如:在同步文件夹内创建Windows10上名为test的文件夹。将index.html放在test中。文件夹和文件上传到Ubuntu机器。在Ubuntu机器的/var/www/中,应该有test文件夹

windows - VirtualBox VM 是使用与当前运行 Vagrant 的用户不匹配的用户创建的

我是Windows新手。我使用Windows10。当我在我的机器上运行vagrant时,UID存在一些问题。请查看图片了解更多信息。当我运行vagrantup时,我收到一些警告:TheVirtualBoxVMwascreatedwithauserthatdoesn'tmatchthecurrentuserrunningVagrant.VirtualBoxrequiresthatthesameuserbeusedtomanagetheVMthatascreated.Pleasere-runVagrantwiththatuser.ThisisnotaVagrantissue.TheUIDu

windows - Vagrant shell provisioner 在 Mac 主机上失败但在 Windows 主机上工作

我有以下带有shell供应器的vagrant文件,它在Windows7VirtualBox上运行良好但在我的macbookproOSX10.9.2上运行时失败更具体地说,供应商“似乎”无法安装requirements.txt。如果我通过SSH进入盒子并以root身份重新运行bootstrap.sh,它就可以工作。我知道longerror消息会有所帮助,但我认为这个问题旨在理解为什么虚拟盒子设置会在一个环境而不是另一个环境中工作。尤其是在启动这样一个简单的shell脚本时。非常感谢任何想法或建议!Vagrant文件#-*-mode:ruby-*-#vi:setft=ruby:#Vagra

linux - Vagrant + Composer + Windows/nfs/git 错误

我有以下问题:当我在虚拟机中运行composerupdate时,我收到了错误消息:LoadingcomposerrepositorieswithpackageinformationUpdatingdependencies(includingrequire-dev)-Installingfriendsofsymfony/user-bundle(dev-masterf54031a)Failedtodownloadfriendsofsymfony/user-bundlefromsource:Couldnotdelete/var/www/agroit/vendor/friendsofsymfo

windows - 在 vagrant 和 virtualbox 中挂载符号链接(symbolic link)文件夹

好的,这是我的问题:我在VirtualBox中使用vagrant。主机是Windows8.1,guest是Ubuntu(64位)。我正在尝试使用由创建的符号链接(symboliclink)Windows文件夹mklink/jsomefoldersomeotherfolder作为Vagrant中的同步文件夹。在我的Vagrantfile中有#disablethedefaultsyncedfolderconfig.vm.synced_folder".","/vagrant",disabled:true#syncmydesiredfolderconfig.vm.synced_folder".

windows - 为什么在使用 Vagrant 配置 Windows 7 VM 时 Chocolatey 无法安装?

我正在尝试使用Packer(v.0.8.6)自动创建Windows7开发环境,Vagrant(v.1.8.1),VirtualBox(v.5.0.10),和Chocolatey(v.0.9.9.11)在Windows8.1主机上。我已经成功地使用Packer创建了基本的Windows7SP1框,并且我正在尝试使用vagrantup创建带有Vagrant的虚拟机。我要做的第一件事是安装Chocolatey,这样我就可以轻松配置其他软件。但是。我这样做没有成功。我在我的Vagrantfile中尝试了各种咒语。这是内容。#-*-mode:ruby-*-#vi:setft=ruby:Vagra

php - 使用 vagrant 在 Windows 上设置 php 环境变量

我试图在Windows上运行“phpartisan”命令,但系统返回一个错误,指出未设置php变量路径。问题是我没有直接在Windows系统上安装php,而是安装在vagrantbox上。关于如何将windowsphp环境变量设置为vagrantboxe的php有什么想法吗?谢谢 最佳答案 如果你使用Vagrant,你需要在那里设置所有变量。为此,您需要使用SSH。您可以尝试内置的vagrantssh命令或适用于Windows的任何SSH客户端(例如WinSCP,连接然后按Ctrl+T进入WinSCP终端)。vagrantssh的默