无用共享本地环境被卡住

问题描述 投票:-1回答:1

我正在运行本地环境。我希望能够像每次跑步一样共享与其他人的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
vagrant virtualbox ngrok vagrant-share
1个回答
0
投票

尝试替换

config.vm.network "forwarded_port", guest: 80, host: 4017

with

config.vm.network "forwarded_port", guest: 80, host: 8000, auto_correct: true

另一种选择是显式提供端口作为命令参数

vagrant share --http 80

希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.