zhl6522

1860 经验值

已经处理了上面的问题。
问一个问题:我在虚拟机上面跑的程序,外面访问,为什么host里面需要写localhost,而不是虚拟机的域名(www.laravel_local.com)呢(这样写看不到数据)
对应查看beanstaikd的状态:vagrant@homestead:~/beanstaik$ php -S www.laravel_local.com:5000 -t public

请教一下 我安装的时候报了这个错误。
vagrant@homestead:~/Code$ composer create-project ptrofimov/beanstalk_console -s dev
Installing ptrofimov/beanstalk_console (dev-master 20ad057c7a21a197ac495e2a4d4a9f0588156dad)

  • Installing ptrofimov/beanstalk_console (dev-master master)
    Cloning master from cache

Created project in /home/vagrant/Code/beanstalk_console
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? Y
An error occurred while removing the VCS metadata: Could not delete /home/vagrant/Code/beanstalk_console/.git/objects/pack/pack-469a0512c87c6dcae6665b7d2fd0bcb44dd976c8.idx:
手动删除这个文件在执行的话,报错:

[InvalidArgumentException]
Project directory /home/vagrant/Code/beanstalk_console/ is not empty.

可能的原因:
1、你的粗心,路由里面写错了;
2、路由里面位置错误;

是shell脚本问题么?LANG=zh_CN.UTF-8