Laravel流浪汉连接超时

时间:2016-09-28 07:01:02

标签: php nginx ssh

我为Laravel的开发环境设置了流浪汉。通常这有效,但由于某种原因,我在浏览器中连接到网站时遇到问题。

正常运行vagrant ssh并且它会立即连接但是一旦我尝试访问浏览器中的URL,连接就会超时。

我查看了storage/logs以及/var/log/nginx中的错误日志,但我没有发现任何问题。

我不知道这是与vagrant / homestead的问题还是代码错误。我是否必须在homestead配置中指定错误日志位置?我可以通过vagrant ssh进行连接,但是当我尝试访问URL(在/ etc / hosts中设置并且之前正在工作)时,它会超时。

这是我的流浪儿创业公司:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 (guest) => 8000 (host) (adapter 1)
    default: 443 (guest) => 44300 (host) (adapter 1)
    default: 3306 (guest) => 33060 (host) (adapter 1)
    default: 5432 (guest) => 54320 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => /Users/callum/Dev/projects/homestead
    default: /home/vagrant/Code => /Users/callum/Dev/projects
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.

0 个答案:

没有答案