homestead -linux环境配置注意事项

vagrant 运行的前提条件

  • 需要在homestead配置环境之下

如果virtual box 版本号报错

  • 解释

homestead -linux virtual box 的版本号可以在scripts.homestead.rb下修改

  • 图片

vagrant需要公钥和私钥用来完成本地的权限设置 — 暂时不知道那里可以修改

ssh-keygen命令参考文档

百度ssh-keygen参考文档

ssh-keygen 配置参考

    cmd命令 :

    C:\HashiCorp\homestead> vagrant up

    cmd命令回显 :

    Check your Homestead.yaml (or Homestead.json) file, the path to your private key does not exist.
    cmd命令 :

    C:\HashiCorp\homestead> ssh-keygen

    cmd命令返回 :

    Generating public/private rsa key pair.

    Enter file in which to save the key       (C:\Users\username/.ssh/id_rsa): 

    此处填写公钥生成的路径 

    Enter passphrase (empty for no passphrase):

    此处为密码

    Enter same passphrase again

    此处为密码

    Your identification has been saved in y

    Your public key has been saved in y.pub

    The key fingerprint is:

    The key's randomart image is:

在vagrant up之前配置homestead文件

  • 在windows下的homestead配置文件夹中运行init.bat 一般情况会生成yaml和sh文件

homestead配置文件主要配置

  • 主要配置项

floder — 本地文件夹

homesteade - linux 远程服务器和windows本地服务器之间的共享文件夹

sites — 远程文件夹

  • 相关机制

两个文件夹为同步文件夹,在其中任意一方新建或者删除都会引起两个文件夹的改变


本作品采用《CC 协议》,转载必须注明作者和本文链接
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!