Laravel vagrant up not working - Errno::EADDRNOTAVAIL

前端 未结 1 1485
眼角桃花
眼角桃花 2020-12-31 03:42

I have recently had some errors while a part of the Laravel environment or Windows 10 updated, so after a lot of trials and errors I\'ve decided to delete everything and sta

相关标签:
1条回答
  • 2020-12-31 04:06

    It appears to be an issue with the new vagrant 1.9.3 (see https://github.com/mitchellh/vagrant/issues/8395)

    some were able to fix with following

    I managed to make the 1.9.3 version working by rewritten all my Vagrantfile(s) and adding the host_ip: "127.0.0.1" parameter for each of the "forwarded_port" network configuration.

    E.g.: config.vm.network "forwarded_port", guest: 22, host: 1022, host_ip: "127.0.0.1", id: 'ssh'

    For Homestead, you can edit the file Homestead/scripts/homestead.rb

        # Use Default Port Forwarding Unless Overridden
        unless settings.has_key?("default_ports") && settings["default_ports"] == false
            default_ports.each do |guest, host|
                unless settings["ports"].any? { |mapping| mapping["guest"] == guest }
                    config.vm.network "forwarded_port", guest: guest, host: host, host_ip: "127.0.0.1", auto_correct: true
                end
            end
        end
    
        # Add Custom Ports From Configuration
        if settings.has_key?("ports")
            settings["ports"].each do |port|
                config.vm.network "forwarded_port", guest: port["guest"], host: port["host"], protocol: port["protocol"], host_ip: "127.0.0.1", auto_correct: true
            end
        end
    
    0 讨论(0)
提交回复
热议问题