Laravel 家园 SSH

标签 laravel ssh vagrant homestead

我在尝试通过 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 inithomestead edit再次配置您的机器,最后 homestead up重新构建一切。

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

关于Laravel 家园 SSH,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27741260/

相关文章:

git - 无法将主机添加到已知主机列表中-通过Smartgit中的Git-Shell克隆Bitbucket存储库

laravel - 通过关系软删除

javascript - 我究竟做错了什么?类型错误 : this is undefined

php - 尝试在 php 上安装 ssh2

linux - Linux 上的 SSH : Disabling host key checking for hosts on local subnet (known_hosts)

networking - Vagrant 如何创建私有(private)网络?

virtualbox - 运行时出错 'vagrant up' -- 打开文件太多 - getcwd (Errno::EMFILE)

ruby-on-rails - RubyMine 在 Vagrant 机器上列出的 gem 太少

laravel - 从 laravel 分形中删除数据

php - Homestead 安装了 PHP7 但我需要 PHP5