如何配置 Glassfish 3.1 来托管 Web 应用程序
有谁知道如何配置 glassfish 3.1 来托管 Web 应用程序?我在 glassfish 服务器中部署了一个 Web 应用程序,我想从互联网访问它。我不想安装和配置 Web 服务器/负载平衡器。
有什么建议吗?
谢谢
Does anyone know how to configure glassfish 3.1 to host a web application? I have a web app deployed in my glassfish server which i want to access from the internet. I do not want to install and configure a web server/load balancer.
Any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您无法从 Internet 看到部署 Glassfish 的服务器,则您将看不到您的应用程序。
我怀疑您是否想将您的应用程序服务器直接暴露到互联网上。您为什么不想使用网络服务器?通常Web服务器放置在DMZ中并暴露于Internet;它将请求转发到应用程序服务器。
这些都与 Glassfish 无关。这是关于您如何处理服务器和配置。
If you can't see the server you deploy Glassfish to from the Internet, you can't see your app.
I doubt that you want to expose your app server directly to the Internet. Why don't you want to use a web server? Usually the web server is put in a DMZ and exposed to the Internet; it relays requests into the app server.
None of this has anything to do with Glassfish. It's about what you do with your servers and configuration.
步骤 1:首先从互联网获取所需的 zip 文件
注意:根据需要更改版本
步骤 2:将文件解压缩到要安装 glassfish 服务器的位置
步骤 3:然后进入/bin 文件夹中的安装位置,并使用示例在终端中运行 asadmin 文件
:
sagar@sagar-X556UA:~/software/glassfish3Ok/glassfish3/bin$ ./asadmin
步骤4:然后asadmin bash将打开。然后输入:start -domain 里面的
asadmin -> start-domain
步骤 5:然后 glassfish 将在默认端口运行。即,8080,转到谷歌,或任何浏览器并输入:
Glassfish管理面板将在端口即4848上运行(如果不是,您将在启动域后看到管理端口号)
将glassfish服务器集成到netbeans
安装并单击下一步。
Step 1: First get the required zip file from the internet
Note: change the version as required
Step 2: unzip the file in the location where you want to install the glassfish server
Step 3: Then go inside of the installed location in the /bin folder and run the asadmin file in the terminal using
Example:
sagar@sagar-X556UA:~/software/glassfish3Ok/glassfish3/bin$ ./asadmin
Step 4: Then asadmin bash will open. Then type: start -domain inside of it
asadmin -> start-domain
Step 5: Then the glassfish will run in the default port. i.e., 8080, Goto google, or any browser and type:
And Glassfish admin panel will run in the port i.e., 4848 (if not you will see the port number of admin after you start the domain)
Integrate the glassfish server in the netbeans
installation and click Next.