sh Windows上带有SMB的Laravel Homestead(“更快的共享文件夹”)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Windows上带有SMB的Laravel Homestead(“更快的共享文件夹”)相关的知识,希望对你有一定的参考价值。

 ---
  ip: "192.168.10.10"
  memory: 4096
  cpus: 2
  provider: virtualbox

  authorize: C:/Users/<your-user>/.ssh/id_rsa.pub

  keys:
      - C:/Users/<your-user>/.ssh/id_rsa

  folders:
      - map: C:/Users/<your-user>/<your-shared-folder-path-on-host>
        to: /home/vagrant/Code/<your-app>
        type: "smb"                                                    
        mount_options: ["username=USERNAME","password=PASSWORD","vers=3.02","mfsymlinks"]

  sites:
      - map: your.domain.com
        to: /home/vagrant/Code/<your-app>

  databases:
      - homestead
# This installs an auto upgrade mechanism to VirtualBox Guest Adittions
vagrant plugin install vagrant-vbguest

# This installs a bridge to NFS for Vagrant on Windows
vagrant plugin install vagrant-winnfsd

# From Laravel Homestead Documentation:
#  - When using NFS, you should consider installing the vagrant-bindfs plug-in. 
#    This plug-in will maintain the correct user / group permissions for files 
#    and directories within the Homestead box.
vagrant plugin install vagrant-bindfs

###########################################
### PLEASE UPDATE YOUR HOMESTEAD.YAML   ###
### FILE ACCORDINGLY (CHECK FILE BELOW) ###
### BEFORE RUNNNING COMMAND BELOW       ###
###########################################
vagrant reload --provision

以上是关于sh Windows上带有SMB的Laravel Homestead(“更快的共享文件夹”)的主要内容,如果未能解决你的问题,请参考以下文章

sh Windows上的Laravel命令

sh SMBでのマウント

sh mount - mount smb drive

sh 安装SMB

Windows Server之浅谈SMB以及SMB小案例分享

使用 New-SmbGlobalMapping 为 docker 容器创建的 SMB 共享映射在 Windows Server 1803 上重新启动后未恢复