本文介绍了如何强制Typesafe Activator监听0.0.0.0:8888的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将Typesafe Activator安装到了VM.端口转发后可以访问由activator创建的应用程序,但是Activator似乎监听localhost.如何将其更改为WAN?

I recently installed Typesafe Activator to a VM. Applications created by activator can be accessed after port forwarding, but Activator seems to listen localhost. How to change this to WAN?

推荐答案

似乎设置系统属性http.addresshttp.port现在可以完成这项工作,例如

It looks like setting system properties http.address and http.port will now do this job, e.g.

./activator -Dhttp.address=0.0.0.0 -Dhttp.port=80

将在端口80的WAN上启动Activator(假设匹配权限等).

Would launch Activator on a WAN on port 80 (assuming matching permissions, etc).

这篇关于如何强制Typesafe Activator监听0.0.0.0:8888的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 02:02