简体   繁体   English

当无业游民正在运行时,Ping IP地址超时

[英]Ping IP address timed out while vagrant up is running

I'm new to laravel and I'm learning to work with vagrant. 我是laravel的新手,正在学习与流浪汉一起工作。 When I do vagrant up I get no errors but still the IP address is not working or the ping shows 'request timed out'. 当我无所事事时,我没有收到任何错误,但IP地址仍然无法正常工作,或者ping显示“请求超时”。

(I have the latest versions of PHP and Virtualbox, and my virtualization in the BIOS menu is enabled) (我拥有最新版本的PHP和Virtualbox,并且启用了BIOS菜单中的虚拟化功能)

Can you help me? 你能帮助我吗?

Here is my Homestead.yaml file : 这是我的Homestead.yaml文件:

ip: 192.168.10.192
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
    - ~/.ssh/id_rsa
folders:
    -
        map: 'C:\Users\ProjectName'
        to: /home/vagrant/Code
sites:
    -
        map: homestead.app
        to: /home/vagrant/Code/public
databases:
    - homestead
name: ProjectName
hostname: ProjectName

Did you already find a solution? 您是否已经找到解决方案? check http://127.0.0.1:8000/ 检查http://127.0.0.1:8000/

I fixed the problem. 我解决了这个问题。 The Vagrantfile was wrongly created. Vagrantfile被错误地创建。 I created the app with the composer but I should've used 'laravel new project'. 我是用作曲家创建的应用程序,但我应该使用“ laravel new project”。 Thank you all for your help! 谢谢大家的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM