【问题标题】:Laravel Homestead SSHLaravel 宅基地 SSH
【发布时间】:2015-02-28 17:33:54
【问题描述】:

我在尝试通过 SSH 访问本地计算机上的 Laravel Homestead 时遇到了一些奇怪的问题。我可以跑:

homestead up

没有问题,通过浏览器访问我的“website.local”。但是当我运行时:

homestead ssh

vagrant ssh

我收到以下信息:

Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-30-generic x86_64)

* Documentation:  https://help.ubuntu.com/

System information as of Fri Jan  2 11:08:55 UTC 2015

System load:  0.0               Processes:           95
Usage of /:   5.1% of 39.34GB   Users logged in:     0
Memory usage: 35%               IP address for eth0: 10.0.2.15
Swap usage:   0%                IP address for eth1: 192.168.10.10

Graph this data and manage this system at:
https://landscape.canonical.com/

Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud


Last login: Fri Jan  2 11:08:55 2015 from 10.0.2.2
Connection to 127.0.0.1 closed.

我必须说这绝对让我感到困惑,因为它在昨晚运行良好。

【问题讨论】:

    标签: laravel ssh vagrant homestead


    【解决方案1】:

    首先,再次尝试老式的“断断续续”。重新启动您的机器,然后再次尝试homestead up

    下一步是销毁并重建您的 Homestead 机器。因为您的所有配置都在Homestead.yaml 文件中,所以您不会丢失任何东西(任何数据库的内容除外)。运行homestead destroy 并确认,然后再次运行homestead up 以从头开始重建它。

    或者,使用rm -rf ~/.homestead 删除您的 Homestead 配置(假设您使用的是 Mac)。运行homestead inithomestead edit 重新配置您的机器,最后运行homestead up 重新构建它。

    最后,确保您已安装最新版本的 Vagrant 和 VirtualBox,然后使用 composer global update 更新您的 Homestead 安装。同时运行homestead update 以确保您拥有最新的 Homestead 图像。然后homestead init再次从头开始运行最新。

    【讨论】:

      猜你喜欢
      • 2017-09-13
      • 1970-01-01
      • 2017-04-24
      • 2016-04-17
      • 2019-06-15
      • 2015-12-09
      • 1970-01-01
      • 2016-07-31
      • 2018-04-17
      相关资源
      最近更新 更多