homestead -linux环境配置注意事项
vagrant 运行的前提条件
- 需要在homestead配置环境之下
如果virtual box 版本号报错
- 解释
homestead -linux virtual box 的版本号可以在scripts.homestead.rb下修改
- 图片
vagrant需要公钥和私钥用来完成本地的权限设置 — 暂时不知道那里可以修改
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 协议》,转载必须注明作者和本文链接