主要配置
ssh 要用vagrant 自带的
vagrant ssh
在vagrant里面配置
18 config.ssh.username='root'
19 config.ssh.password='vagrant'
20 config.ssh.insert_key='true'
解决本地指定Host的问题
# accessing "localhost:8080" will access port 80 on the guest machine.
30 config.vm.network "forwarded_port", guest: 80, host: 8080
31
32 # Create a private network, which allows host-only access to the machine
33 # using a specific IP.
34 config.vm.network "private_network", ip: "192.168.33.10"
35