Homestead 开启mongodb正确姿势
ip: 192.168.10.11
memory: 2048
cpus: 2
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
-
map: /Users/pipiqiang/PhpstormProjects/xxxx
to: /home/vagrant/code
sites:
-
map: homestead.test
to: /home/vagrant/code/public
databases:
- homestead
features:
-
mariadb: false
-
ohmyzsh: false
-
webdriver: false
-
mongodb: true
name: xxxx
hostname: xxxx
mongodb: true
大家注意一下json里面的 features:
要增加 mongodb: true
然后末尾也需要加上 mongodb: true
然后应用一下修改
vagrant reload --provision
本作品采用《CC 协议》,转载必须注明作者和本文链接