Windows7系统中使用Vagrant构建Linux虚拟化开发环境(2)

初始化过程的信息

A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. 5)修改Vagrantfile,加一些项目需要的路径和端口映射 config.vm.forward_port 虚拟机内端口, 本机端口 config.vm.forward_port 80, 80 config.vm.forward_port 5000, 5000 config.vm.share_folder "标识", "虚拟机内路径", "本机路径" config.vm.share_folder "v-data", "/data", "e:/workspace/data" config.vm.share_folder "v-work", "/work", "e:/workspace/work"

我的生产环境有/data、/work两个目录,所以做了映射

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/17796.html