Homestead 開啟mongodb正確姿勢

皮皮強發表於2020-10-20
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 協議》,轉載必須註明作者和本文連結

相關文章