curl本地验证问题。 得需要修改php.ini 里面的curl 配置。
安装方式已变
c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
http://symfony.com/download 去官方看一下 就好。
这是你项目没配置好吧,有个URL是专门用来获取页面的profile信息的,你这个错误就是说这个url有问题,访问不了。
请输入vagrant box add -h看详细的用法,自带的注释已经说的很详细了。
桥接模式就是把你的虚拟机上的网卡直接连到你真实的网卡上,如果你的网络环境有dhcp的话,那么你的虚拟机就可以通过dhcp直接分配到一个ip。
不过我觉得上面这些话你也可能不会明白,最简单的就是别用vagrant,用php命令行就已经很好了,vagrant这个东西如果没有一些网络知识是比较难用好的。
你是用什么方式Chef的?看上去你安装的方式不对导致vagrant-berkshelf没有认出你安装的这个chef
看报错应该就是无法连接上dev-tools.my-project.local所在的服务器。
建议你先ping一下dev-tools.my-project.local,看看是否指向了虚拟机所在的ip
如果是的话,进虚拟机看一下这个ip或者0.0.0.0在80端口是否绑定了nginx服务,可以用这个命令看netstat -tulnp
如果绑定了服务的话,至少应该不会出现你上面所报的错误。
这感觉就是你的virtualbox根本就是有问题的,你先别用vagrant,直接启动virtualbox,手动建个虚拟机什么的,看看能不能使用。
勤看文档啊,文档里啥都有:
通过vagrant --help我们知道了vagrant下面所有的命令:
$ vagrant --help Usage: vagrant [options] <command> [<args>] -v, --version Print the version and exit. -h, --help Print this help. Common commands: box manages boxes: installation, removal, etc. connect connect to a remotely shared Vagrant environment destroy stops and deletes all traces of the vagrant machine global-status outputs status Vagrant environments for this user halt stops the vagrant machine help shows the help for a subcommand hostmanager init initializes a new Vagrant environment by creating a Vagrantfile login log in to Vagrant Cloud package packages a running vagrant environment into a box plugin manages plugins: install, uninstall, update, etc. provision provisions the vagrant machine rdp connects to machine via RDP reload restarts vagrant machine, loads new Vagrantfile configuration resume resume a suspended vagrant machine share share your Vagrant environment with anyone in the world ssh connects to machine via SSH ssh-config outputs OpenSSH valid configuration to connect to the machine status outputs status of the vagrant machine suspend suspends the machine up starts and provisions the vagrant environment vbguest version prints current and latest Vagrant version For help on any individual command run `vagrant COMMAND -h` Additional subcommands are available, but are either more advanced or not commonly used. To see all subcommands, run the command `vagrant list-commands`.
可以看到如果要管理box的话,有一个box命令,那么我们继续看box下有什么子参数:
$ vagrant box --help Usage: vagrant box <subcommand> [<args>] Available subcommands: add list outdated remove repackage update For help on any individual subcommand run `vagrant box <subcommand> -h`
可以看到有add参数,显然就是用来添加box的,那我们继续看看box add怎么用:
$ vagrant box add --help Usage: vagrant box add [options] <name, url, or path> Options: -c, --clean Clean any temporary download files -f, --force Overwrite an existing box if it exists --insecure Do not validate SSL certificates --cacert FILE CA certificate for SSL download --capath DIR CA certificate directory for SSL download --cert FILE A client SSL cert, if needed --provider PROVIDER Provider the box should satisfy --box-version VERSION Constrain version of the added box The box descriptor can be the name of a box on Vagrant Cloud, or a URL, or a local .box file, or a local .json file containing the catalog metadata. The options below only apply if you're adding a box file directly, and not using a Vagrant server or a box structured like 'user/box': --checksum CHECKSUM Checksum for the box --checksum-type TYPE Checksum type (md5, sha1, sha256) --name BOX Name of the box -h, --help Print this help
可以看到box add接受一个<name, url, or path>的参数,说明这个文件的路径可以是一个url或者是一个本地路径,而vagrant的box是可以被重命名的,比如同一个镜像文件文件,可以在在vagrant的box里叫不同的名字,这个名字在你的vagrantfile里是需要定义的,这样vagrant才能够通过box的名字找到具体的镜像文件。
所以最终添加本地命令的格式为:
vagrant box add --name box_name /path/of/box/file
你的vagrant box里是一个跑在vmware desktop程序下的centos镜像,但你vagrant up之后,vagrant却以一个hyperv的provider去跑,这表示你的配置有问题。
据我所知windows下用vagrant跑vmware虚拟机是要额外买license的,参见:https://www.vagrantup.com/vmware,你确定要这么做么?
提示信息看上去是在说你没有安装这几个插件,所以vagrant不知道该如何处理相应的配置。
vagrant plugin install vagrant-berkshelf
几个插件安装出来
这个问题不能回答的太细,等等有人敲门,好像是快递。
vagrant从官方申明上来说是支持vmware虚拟机的,但由于vmware的支持时间并不长,用的人也不多,而且这个vmware的支持插件貌似还是第三方编写的,所以在具体使用中可能会有一些小问题,总体上来说我是不建议新手使用vagrant去管理vmware的,而且使用vmware相比virtualbox也并没有什么太大的优势和必要性。
但如果一定要用的话,我看了一下官方的说明,大概步骤如下:
1.安装vagrant支持vmware的插件
vmware-fusion:vagrant plugin install vagrant-vmware-fusion
vmware-workstation:vagrant plugin install vagrant-vmware-workstation
2.在你的vagrantfile里定义使用vmware
Vagrant.configure("2") do |config|
# ... other config up here
# Prefer VMware Fusion before VirtualBox
config.vm.provider "vmware_fusion"
config.vm.provider "virtualbox"
end
3.使用--provider=vmware_fusion参数跟在vagrant命令后面去执行各种命令,比如vagrant up --provider=vmware_fusion