我使用的是Laravel6.2、Vagrant2.2.6和VirtualBox 5.2。遵循“宅地设置教程”。但是,当我访问myapp.local (在不修改任何代码的情况下)时,我收到了以下错误消息:
NotFoundHttpException in RouteCollection.php line 161(请参阅下面的评论,解释我为什么会犯这个错误)
错误地修改了文件中的ip地址,现在,无论我做什么,我都会收到以下错误消息。
Network settings specified in your Vagrantfile define an invalid
IP address. Please review the error message below and update your
Vagrantfile network settings:
Address: 192.168.10:10
Netmask:
Error: invalid address示例:
machine1234:Homestead my_user_name$ vagrant destroy
homestead: Are you sure you want to destroy the 'homestead' VM? [y/N] y
==> homestead: Destroying VM and associated drives...
machine1234:Homestead my_user_name$ vagrant up --provision
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Importing base box 'laravel/homestead'...
==> homestead: Matching MAC address for NAT networking...
==> homestead: Checking if box 'laravel/homestead' version '9.2.0' is up to date...
==> homestead: Setting the name of the VM: homestead
==> homestead: Clearing any previously set network interfaces...
Network settings specified in your Vagrantfile define an invalid
IP address. Please review the error message below and update your
Vagrantfile network settings:
Address: 192.168.10:10
Netmask:
Error: invalid addressHomestead.yaml看起来是这样的:
> --- ip: "192.168.10:10" memory: 2048 cpus: 2 provider: virtualbox
>
> authorize: ~/.ssh/id_rsa.pub
>
> keys:
> - ~/.ssh/id_rsa
>
> folders:
> - map: ~/Sites/myapp
> to: /home/vagrant/myapp
>
>
> sites:
> - map: myapp.local
> to: /home/vagrant/myapp/public
> databases:
> - MY_APP_DEV
>
> features:
> - mariadb: false
> - ohmyzsh: false
> - webdriver: false "Homestead.yaml" 41L, 667C知道我该怎么解决这个问题吗?
发布于 2020-02-17 03:59:40
你的IP地址有个冒号!
变更:
Address: 192.168.10:10To:
Address: 192.168.10.10https://stackoverflow.com/questions/60255745
复制相似问题