gpt4 book ai didi

rest - 无法访问 Microsoft Azure VM 中的休息服务

转载 作者:行者123 更新时间:2023-12-03 01:48:00 26 4
gpt4 key购买 nike

我在访问部署在 ubuntu 虚拟机上的 Node js Rest 服务时遇到问题。我可以使用 putty 访问虚拟机,但是无法从命令行 ping 保留 IP。我已将日志放入其余服务中,因为当它受到点击时,它会打印日志,但日志不会被打印。我想知道是否需要进行任何其他设置才能从虚拟机打开端口,或者默认情况下应该打开该端口。如果我需要打开端 Eloquent 能访问该服务,我应该在哪里查找它。

感谢和问候

最佳答案

I want to know if there is any additional setting which needs to be done to open a port from the virtual machine or it is supposed to be open by default.

不,Azure默认不会打开其他端口,我们应该手动打开端口。

I am not able to ping the reserve ip from command line

这是一个经典虚拟机,对吗?如果是这样,我们应该确保其余服务监听哪个端口,并通过 Azure 门户添加端点: enter image description here

有关创建端点的更多信息请参阅此 link .

如果您的虚拟机位于ARM 模块中,我们应该向 NSG 添加入站规则。

enter image description here

更多关于NSG的信息,请引用这个link .

关于rest - 无法访问 Microsoft Azure VM 中的休息服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43509530/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com