Laravel Homestead 的安装和配置
打赏作者

Laravel Homestead 的安装和配置

Mac 从零开始配置开发环境 >> Laravel Homestead 的安装和配置 视频发布于 2017-08-19

Homestead 是 Laravel 官方推荐的虚拟机开发环境,借助 Vagrant 的基础,可以保证本地开发环境和生产环境的一致性,而且它本身也就是 Ubuntu 的 Linux 发行版,可以很方便地实现定时任务和队列管理等功能。
高永立

ssh-keygen -t rsa -C "youEmail@xxx.com"
应该是这个命令生成新的ssh-key。

JellyBool 回复 高永立

哈哈哈,可以可以

moonline 回复 JellyBool

可以推荐个VPN吗 现在用的太恼火 留个邮箱期待回复:295954044@qq.com

JellyBool 回复 moonline

这是什么?不存在的

moonline 回复 JellyBool

(⊙﹏⊙)…

jaynele 回复 高永立

配置完成后进行域名访问,chrom 提示链接不安全而不显示页面,点重新加载,项目页面闪了一下,再次提示链接不安全,ssh-key,已经生成了,其他配置也是正常走的,为什么呢?

雾霾公司

本地安装的 homestead
按照你知乎上面的做法 https://zhuanlan.zhihu.com/p/25338468
vagrant box add laravel/homestead ~/Downloads/virtualbox.box
文件已经下载好了 然后出现
n error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn’t open file /Users/daijw/Downloads/virtualbox.box

JellyBool 回复 雾霾公司

Couldn’t open file /Users/daijw/Downloads/virtualbox.box 这个文件确实存在么

雾霾公司 回复 JellyBool

这个问题已经解决了 但是新问题又来了

vim Check your Homestead.yaml file, the path to your private key does not exist.

JellyBool 回复 雾霾公司

private key ssh-key 的路径没对呗

雾霾公司 回复 JellyBool

不用讲了 我发现 我在玩蛇 我ssh key的生成方式 和我想的完全不同

雾霾公司 回复 JellyBool

Check your Homestead.yaml file, the path to your private key does not exist.
我查了一下 估计是版本号的问题
laravel-VAGRANTSLASH-homestead ls 是 0
然后按照两种解决方法 建立json文件 和vfile 目录直接添加 他又开始抱错了
我是不是要重新再来一遍了

雾霾公司 回复 JellyBool

ssl 是在add box.box文件之后生成的

雾霾公司

bool 我真的要砍你啊 你一句ssh很好弄 卡了我两天 终于弄好了 要死人啊 成功被你误导

JellyBool 回复 雾霾公司

你看视频第一个评论就解决了。一行命令,一直 enter 下去就OK了

雾霾公司

yeah 跑起来啦

雾霾公司

jelly 为什么已经有了valet 还要homestead虚拟机开发呢 不是多此一举么

JellyBool 回复 雾霾公司

homestead 是 ubuntu 的环境,你可以保证跟线上环境一致

雾霾公司 回复 JellyBool

也就是说开发好以后直接上传就行 不需要重复的部署是这样吗?

yzha5

终端里下载virtualbox只有10+kb/s。拷链接放迅雷里,三分钟完事。。但是,问题来了,迅雷下载的怎样安装??

zhangwei

教主,我用laradock 远程怎么连接容器的mysql呢

JellyBool 回复 zhangwei

啊哈,我对 docker 不熟悉。。

fengdie

Unable to mount one of your folders. Please check your folders in Homestead.yaml,按教程 的步骤来。发现没有在home目录下创建vagrant/Code 这个目录是自动创建的吗

Yzzzzzz

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
这是什么情况?

sunyl053800

λ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead’
box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box ‘laravel/homestead’ (v6.2.0) for provider: vmware_desktop
box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/6.2.0/providers/vmware_desktop.box
==> box: Box download is resuming from prior download progress
box: Progress: 0% (Rate: 0/s, Estimated time remaining: 17:15:28)38))
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
这是什么问题 求大神帮忙 急急急!!!

sunyl053800

JellyBoll老师在吗 能帮我看看这是什么问题吗????
λ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead’
box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box ‘laravel/homestead’ (v6.2.0) for provider: vmware_desktop
box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/6.2.0/providers/vmware_desktop.box
==> box: Box download is resuming from prior download progress
box: Progress: 0% (Rate: 0/s, Estimated time remaining: 17:15:28)38))
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054

sunyl053800

安装好的homestead环境能正常启动 项目也能映射到虚拟机 但是访问的时候出现404我看路径是对的
求大神帮忙看看
Request URL:http://homestead.app/index.php
Request Method:GET
Status Code:404 Not Found
Remote Address:192.168.10.10:80
Referrer Policy:no-referrer-when-downgrade