我在尝试通过 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.
我必须说这绝对让我困惑,因为截至昨晚它运行良好。
最佳答案
首先,再次尝试老式的“断断续续”。重新启动您的计算机,然后尝试 homestead up
再次。
下一步是摧毁并重建你的家园机器。因为你所有的配置都在 Homestead.yaml
中文件您不会丢失任何内容(任何数据库的内容除外)。运行homestead destroy
并确认,然后homestead up
再次从头开始重建它。
或者,使用 rm -rf ~/.homestead
删除您的 Homestead 配置(假设您使用的是 Mac)。运行homestead init
和homestead edit
再次配置您的机器,最后 homestead up
重新构建一切。
最后,确保您已安装最新版本的 Vagrant 和 VirtualBox,然后使用 composer global update
更新您的 Homestead 安装。 。还运行homestead update
确保您拥有最新的 Homestead 图像。然后homestead init
再次从头开始运行最新版本。
关于Laravel 家园 SSH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27741260/