Laravel Homestead SSH
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27741260/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel Homestead SSH
提问by noobmaster69
I've having some odd trouble trying to access Laravel Homestead on my local machine through SSH. I can run:
我在尝试通过 SSH 在本地机器上访问 Laravel Homestead 时遇到了一些奇怪的问题。我可以跑:
homestead up
with no problems and access my "website.local" through the browser. However when I run:
没有问题并通过浏览器访问我的“website.local”。但是,当我运行时:
homestead ssh
OR
或者
vagrant ssh
I receive the following information:
我收到以下信息:
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.
I must say this is absolutely baffling me as it was working fine as of last night.
我必须说这绝对让我感到困惑,因为它在昨晚运行良好。
采纳答案by Dwight
First, try the old-fashioned "off and on" again. Restart your machine and then try homestead up
again.
首先,再次尝试老式的“断断续续”。重新启动您的机器,然后再试homestead up
一次。
The next step would be to destroy and rebuild your Homestead machine. Because all your configuration is in the Homestead.yaml
file you won't lose anything (except the contents of any databases). Run homestead destroy
and confirm, then homestead up
again to rebuild it from scratch.
下一步是销毁和重建您的 Homestead 机器。因为您的所有配置都在Homestead.yaml
文件中,所以您不会丢失任何内容(任何数据库的内容除外)。运行homestead destroy
并确认,然后homestead up
再次从头开始重建它。
Alternatively, remove your Homestead configuration with rm -rf ~/.homestead
(assuming you're on a Mac). Run homestead init
and homestead edit
to again configure your machine and finally homestead up
to build it all again.
或者,删除您的 Homestead 配置rm -rf ~/.homestead
(假设您使用的是 Mac)。运行homestead init
并homestead edit
再次配置您的机器,最后homestead up
再次构建它。
Finally, go and make sure you have installed the latest versions of Vagrant and VirtualBox, then update your Homestead installation with composer global update
. Also run homestead update
to make sure you've got the latest Homestead image. Then homestead init
again to start from scratch running up to date.
最后,确保你已经安装了最新版本的 Vagrant 和 VirtualBox,然后使用composer global update
. 同时运行homestead update
以确保您拥有最新的 Homestead 映像。然后homestead init
再次从头开始运行直到最新。