首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vagrant - vagrant无法转发此虚拟机上的指定端口

Vagrant - vagrant无法转发此虚拟机上的指定端口
EN

Stack Overflow用户
提问于 2020-01-22 06:00:44
回答 2查看 112关注 0票数 0

当我运行vagrant up时,我得到以下错误:

代码语言:javascript
复制
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 destroyvagrant up,都没有用。紧随其后的vagrant suspendvagrant resume也没有起到什么作用。

还有什么问题呢?

EN

回答 2

Stack Overflow用户

发布于 2020-01-22 09:24:30

找到端口的命令是什么?

也许你能看到这个。Vagrant Port Collision on Port 80, but Port 80 is not Forwarded in the VagrantFile

票数 0
EN

Stack Overflow用户

发布于 2020-01-22 23:02:23

原来我的机器上有一个进程在端口3306上运行。运行lsof -i :3306没有显示它,只有当我使用sudo时才显示。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59849805

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档