![浏览远程 Glassfish 管理页面?](https://linux22.com/image/1151371/%E6%B5%8F%E8%A7%88%E8%BF%9C%E7%A8%8B%20Glassfish%20%E7%AE%A1%E7%90%86%E9%A1%B5%E9%9D%A2%EF%BC%9F.png)
启动AWS
glassfish相当简单:
ubuntu:~$
ubuntu:~$ asadmin start-domain
Waiting for domain1 to start .....
Successfully started the domain : domain1
domain Location: /home/ubuntu/glassfish4/glassfish/domains/domain1
Log File: /home/ubuntu/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
ubuntu:~$
ubuntu:~$ lynx localhost:4848 -dump
GlassFish Server Administration Console
Status indicator image. Status: The Admin Console is already installed,
but not yet loaded.
If the browser does not refresh the page automatically please reload
the page.
ubuntu:~$
但是如何从 Web 浏览器查看 GUI 管理控制台?虽然我可以ssh
从这个 IP 地址访问,但似乎无法浏览 Glassfish 管理页面。(甚至无法浏览欢迎页面。)
您无法访问远程服务器上的 Glassfish 吗?
答案1
如果您可以通过 SSH 连接到该服务器,只需将 Glassfish 端口转发到您的系统即可。例如:
ssh -R localhost:4848:localhost:8080 aws-ip
然后http://localhost:8080
在本地系统的浏览器中打开。