我正在运行本地环境。我希望能够像每次跑步一样共享与其他人的ngrok链接。我在Mac上,VM在Ubuntu 18.04上
我正在端口80上转发,但在配置连接时会卡住
vagrant-share
它告诉我无业游民找不到我的港口
Vagrant was unable to detect an HTTP port for your machine
# UBUNTU 18.04 LTS
config.vm.box = "ubuntu/bionic64"
config.vm.network "private_network", ip: "192.168.27.17"
config.vm.network "forwarded_port", guest: 80, host: 4017
config.vm.network "forwarded_port", guest: 3306, host: 3317
答案 0 :(得分:0)
尝试更换
config.vm.network "forwarded_port", guest: 80, host: 4017
使用
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
另一种选择是显式提供端口作为命令参数
vagrant share --http 80
希望这会有所帮助。
稍后编辑:刚刚在github-https://github.com/scotch-io/scotch-box/issues/370#issuecomment-372514981上找到了评论(感到困惑,因为https://www.vagrantup.com/docs/share/似乎适用于最新版本)