简介 目录 评价 推荐
  • 积极废人求生存 2016-08-10
    请问洪大师,我在windows下安装 symfony时,总是报这个错是什么情况
    已采纳 学物理的码农 的回答

    curl本地验证问题。 得需要修改php.ini 里面的curl 配置。 

    4回答·5528浏览
  • 涯子 2016-06-02
    求Vagrant详细教程
    3回答·1746浏览
  • weibo_番茄酱_芝麻酱_0 2015-08-27
    windows系统要怎么装这个

    安装方式已变

    c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"

    http://symfony.com/download 去官方看一下 就好。

    1回答·1240浏览
  • beleveme 2015-07-10
    在vagrant中运行symfony2报错

    这是你项目没配置好吧,有个URL是专门用来获取页面的profile信息的,你这个错误就是说这个url有问题,访问不了。

    3回答·1068浏览
  • 飞翔的白鸟 2015-06-27
    怎么安装 symfony
    2回答·1583浏览
  • freedomszq 2015-04-16
    下载到的box是OVF文件的,那要怎样添加到vagrant呢

    请输入vagrant box add -h看详细的用法,自带的注释已经说的很详细了。

    1回答·833浏览
  • freedomszq 2015-04-16
    vagrant虚拟机连上了,但虚拟机连不上网,用不了YUM装软件,是什么原因呢

    桥接模式就是把你的虚拟机上的网卡直接连到你真实的网卡上,如果你的网络环境有dhcp的话,那么你的虚拟机就可以通过dhcp直接分配到一个ip。

    不过我觉得上面这些话你也可能不会明白,最简单的就是别用vagrant,用php命令行就已经很好了,vagrant这个东西如果没有一些网络知识是比较难用好的。

    8回答·3220浏览
  • HuiGuoRose 2015-03-26
    为什么不能安装vagrant-berkshelf
    已采纳 洪涛 的回答

    你是用什么方式Chef的?看上去你安装的方式不对导致vagrant-berkshelf没有认出你安装的这个chef

    2回答·1953浏览
  • spkinger 2015-01-28
    vagrant up已启动正常,但是无法访问

    看报错应该就是无法连接上dev-tools.my-project.local所在的服务器。

    建议你先ping一下dev-tools.my-project.local,看看是否指向了虚拟机所在的ip

    如果是的话,进虚拟机看一下这个ip或者0.0.0.0在80端口是否绑定了nginx服务,可以用这个命令看netstat -tulnp

    如果绑定了服务的话,至少应该不会出现你上面所报的错误。

    3回答·9169浏览
  • 1w1 2015-01-14
    vagrant Up失败
    已采纳 洪涛 的回答

    这感觉就是你的virtualbox根本就是有问题的,你先别用vagrant,直接启动virtualbox,手动建个虚拟机什么的,看看能不能使用。

    8回答·20574浏览
  • 1w1 2015-01-13
    如何本地添加 vagrant box?
    已采纳 洪涛 的回答

    勤看文档啊,文档里啥都有:


    通过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


    5回答·24993浏览
  • 1w1 2015-01-13
    vagrant错误

    你的vagrant box里是一个跑在vmware desktop程序下的centos镜像,但你vagrant up之后,vagrant却以一个hyperv的provider去跑,这表示你的配置有问题。


    据我所知windows下用vagrant跑vmware虚拟机是要额外买license的,参见:https://www.vagrantup.com/vmware,你确定要这么做么?

    2回答·1369浏览
  • 枷罗 2015-01-02
    这个问题如何解决,大师

    提示信息看上去是在说你没有安装这几个插件,所以vagrant不知道该如何处理相应的配置。

    3回答·1321浏览
  • 枷罗 2015-01-02
    这个错误怎么样解决,求解

    vagrant plugin install vagrant-berkshelf

    几个插件安装出来

    2回答·1264浏览
  • 枷罗 2015-01-01
    vagrant up后显示需要十几二十几个小时下载,怎么样可以快点?

    这个问题不能回答的太细,等等有人敲门,好像是快递。

    4回答·3144浏览
  • wxhpeter 2014-12-23
    想要请教一下,如果虚拟机是VMware的话要怎么使用vagrant来弄环境?

    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

    2回答·11334浏览
  • H_H 2014-12-07
    1回答·807浏览
数据加载中...
开始学习 免费