markdown 流浪的苏格兰威士忌盒子
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 流浪的苏格兰威士忌盒子相关的知识,希望对你有一定的参考价值。
Scotch Box
Clone repo and tun vagrant:
```
git clone https://github.com/scotch-io/scotch-box-pro
vagrant up
```
and... that's it!
You can access server by ip: `192.168.33.10`
Pro docs: https://box.scotch.io/members/
### VAGRANT NFS PERFORMANCE FIX, WINDOWS OS ONLY!!!
```
$ vagrant plugin install vagrant-winnfsd
$ vagrant install vagrant-nfs guest
$ vagrant plugin install vagrant-vbguest
```
host and guest must be (private_network)
guest needs to have diferent subnet mask (use default scotchbox ip)
## Backup/Export BOX
```
vagrant halt
# Package the box with Vagrant
vagrant package --output my-custom-environment.box
# Add the box to your vagrant!
vagrant box add my-custom-environment my-custom-environment.box
```
#### Change/create vagrant file
```
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "my-custom-environment"
config.vm.hostname = "mycustomenvironment"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
# Optional NFS. Make sure to remove other synced_folder line too
#config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
end
```
以上是关于markdown 流浪的苏格兰威士忌盒子的主要内容,如果未能解决你的问题,请参考以下文章
ruby 苏格兰威士忌! PHP开发的最佳流浪汉版本
ruby 苏格兰威士忌! PHP开发的最佳流浪汉版本
ruby 苏格兰威士忌! PHP开发的最佳流浪汉版本
介绍威士忌的英文
威士忌与VR结合!饮酒者能写出自己的虚拟品酒笔记
text 创造流浪者的盒子