当我做vagrant up
时看到此消息:
/path/to/Vagrantfile:3: warning: already initialized constant VM_BOX
/path/to/Vagrantfile:3: warning: previous definition of VM_BOX was here
/path/to/Vagrantfile:4: warning: already initialized constant NETWORK
/path/to/Vagrantfile:4: warning: previous definition of NETWORK was here
/path/to/Vagrantfile:5: warning: already initialized constant GUEST_PORT
/path/to/Vagrantfile:5: warning: previous definition of GUEST_PORT was here
/path/to/Vagrantfile:6: warning: already initialized constant HOST_PORT
/path/to/Vagrantfile:6: warning: previous definition of HOST_PORT was here
您只是忽略这些吗?
这些先前的定义来自哪里?据我所知,这是我第一次在这台计算机上运行Vagrant。
更新
每当我执行vagrant ssh
时,我也会收到这些警告。