windows 如何确定我的 GlassFish 服务器在哪个端口上运行?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7460477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 18:06:14  来源:igfitidea点击:

How can I determine which port my GlassFish server is running on?

windowsglassfish

提问by

I have started a GlassFish server on my machine. How can I determine which port the GlassFish server is running on? I have tested both 8080 and 4848 ports.

我已经在我的机器上启动了一个 GlassFish 服务器。如何确定 GlassFish 服务器在哪个端口上运行?我已经测试了 8080 和 4848 端口。

采纳答案by reader_1000

You can try this, it may help

你可以试试这个,它可能会有所帮助

asadmin get server | grep listener 

http://blogs.oracle.com/openroad/entry/changing_default_glassfish_port_numbers

http://blogs.oracle.com/openroad/entry/changed_default_glassfish_port_numbers

For windows this may help (from the comments of the link)

对于 Windows,这可能会有所帮助(来自链接的评论)

<GLASSFISH_PATH>\bin>asadmin.bat --port 15050 get server.network-config.network-listeners.network-listener.\*

Or you can look at the ports from configuration files (in the file search for: ):

或者您可以查看配置文件中的端口(在文件搜索中:):

<GLASSFISH_PATH>\glassfish\domains\domain1\config\domain.xml