Laravel Homestead SSH

7

我正在尝试通过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.

我必须说这让我非常困惑,因为昨晚还能正常工作。

1个回答

5

首先,尝试老式的“关闭和打开”方法。重新启动您的计算机,然后再尝试homestead up

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

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

最后,确保已安装最新版本的Vagrant和VirtualBox,然后使用composer global update更新您的Homestead安装。还要运行homestead update以确保您已获得最新的Homestead映像。然后再次运行homestead init以从头开始运行最新版本。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接