当我运行vagrant up时,我得到以下错误:
Vagrant cannot forward the specified ports on this VM, since they
would collide with another VirtualBox virtual machine's forwarded
ports! The forwarded port to 3306 is already in use on the host
machine.
To fix this, modify your current projects Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:
config.vm.forward_port 80, 1234我检查过了,我在本地没有任何使用端口3306的进程。我也试过vagrant destroy和vagrant up,都没有用。紧随其后的vagrant suspend和vagrant resume也没有起到什么作用。
还有什么问题呢?
发布于 2020-01-22 09:24:30
发布于 2020-01-22 23:02:23
原来我的机器上有一个进程在端口3306上运行。运行lsof -i :3306没有显示它,只有当我使用sudo时才显示。
https://stackoverflow.com/questions/59849805
复制相似问题