服务器设置:基于 Apache 和 Tomcat 需求
我正在尝试根据我们对新网站的需求设置服务器。基本上,我需要建立一个基于社交引擎的网站,并根据平台的要求(在这里找到:http://www.socialengine.net/support/documentation/article?q=152&question=SocialEngine-Requirements)它要求网络服务器是 Apache 基于。
现在我的问题是添加一个需要包含在网站中的 Web 应用程序。 Web应用程序要求服务器能够进行异步请求处理,目前仅Tomcat或GlassFish支持。
我找到了几个教程,例如这个 http: //www.serverwatch.com/tutorials/article.php/2203891/Integrating-Tomcat-with-Apache.htm 解释如何将 Tomcat“集成”到 Apache 中。单独运行 Tomcat 的服务器是否能够处理 applet 需求并满足社交引擎平台的 Apache(假设 HTTP)需求?你们有推荐的托管服务提供商吗?
虽然我以前做过很多前端工作,但这是我第一次处理任何后端细节,所以我对服务器端功能的了解真的很垃圾。如果我没有提出正确的问题,请告诉我。
谢谢
I'm trying to setup a server based on our needs for a new website. Basically, I need to build a website based on social engine, and according to the platform's requirements (found here: http://www.socialengine.net/support/documentation/article?q=152&question=SocialEngine-Requirements) it requires the webserver to be Apache based.
Now my issue comes with the addition of a web application that needs to be included in the site. The web application requires the server to be capable of Asynchronous Request Processing, and is currently only supported by Tomcat or GlassFish.
I found a couple tutorials such as this one http://www.serverwatch.com/tutorials/article.php/2203891/Integrating-Tomcat-with-Apache.htm that explain how to "integrate" Tomcat into Apache. Would a server running Tomcat alone be able to handle the applet needs as well as serve the Apache (assuming HTTP) needs from the Social Engine platform? Are there any hosting providers any of you would reccomend?
Although I've done alot of front end stuff before, this is the first time i have to deal with any of the back end details, so my knowledge of server side functionality is really garbage. Please let me know if I'm not asking the right questions.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您实际上无法对这两个应用程序使用 Tomcat,因为另一个应用程序需要 PHP。 Tomcat 和 Apache 在同一服务器上运行是很常见的。您可能想查找有关混合它们的最新文档,甚至 this< /a> 但一定要看看 mod_proxy_ajp。
另一个应用程序是什么?如果您是服务器应用程序的新手,那么设置异步请求处理有点棘手,但也有很多文档,所以如果您是游戏玩家,您可能可以弄清楚。您可能还想查看该应用程序是否可以与 node.js 配合使用(托管信息 此处)
如果您想自己进行所有设置,您可以获得虚拟专用服务器来自 Rackspace Cloud 或类似主机或获取已设置所需应用程序的共享主机,这会限制您自定义环境的能力,并且可能需要 2 个托管计划,但设置起来会更容易。它还在某种程度上取决于两个应用程序是否出于任何原因需要位于同一台计算机上和/或位于同一域中。
You wouldn't really be able to use Tomcat for both apps, since the other one needs PHP. It's pretty common to have both Tomcat and Apache running on the same server. You might want to look up more recent documentation on mixing them, even this but definitely have a look at mod_proxy_ajp.
What's the other application? It's a little tricky to set up Asynchronous Request Processing if you are new to server apps, but there is also a lot of documentation, so if you're game, you can probably figure it out OK. You might also want to see if that app would work with node.js (hosting info here)
If you want to set it all up yourself, you could get a virtual private server from Rackspace Cloud or similar host or get a shared host that has the required apps already set up, which would limit your ability to customize the environment and may require 2 hosting plans, but would be easier to set up. It also somewhat depends on if both apps need to be on the same machine for any reason and/or on the same domain.
常规的 LAMP 堆栈可以很好地运行 SE4,但是,您需要进行一些调整以使页面加载时间少于 3 秒。您需要删除任何未与
a2dismod
一起使用的 Apache 模块。例如,如果您在网站上没有使用任何 Ruby,则使用a2dismod ruby
。这将有助于控制内存使用。 APC 是必须的。要更深入地阅读有关调整 php/apache 的信息,请阅读以下内容:Apache、PHP、MySQL、WordPress v1.1 的性能调整 – 已更新
A regular LAMP stack will run SE4 just fine, however, you will need to do some tuning to get the page loads under 3 seconds. You will want to remove any Apache modules that you aren't using with
a2dismod
. For instance, if you're not using any Ruby on the site,a2dismod ruby
. This will help get memory usage under control. APC is a must.For a much more in depth read on tuning php/apache, please read this: Performance tuning on Apache, PHP, MySQL, WordPress v1.1 – Updated