[英]Can I run more than one app on an instance of Amazon EC2?
I admit the answer is probably obvious, but I'm new to server administration, and despite Googling and reading through Amazon's docs I can't seem to figure this out. 我承认答案可能是显而易见的,但我是服务器管理的新手,尽管使用谷歌搜索和阅读亚马逊的文档,我似乎无法弄清楚这一点。
Can I run more than one Application on one instance of EC2? 我可以在一个EC2实例上运行多个应用程序吗? Maybe on separate ports?
也许在不同的港口? Is it more security prudent to run a single application per instance?
每个实例运行一个应用程序是否更安全谨慎? What about a Database, can I run CouchDB along with Node on one EC2 instance?
那么数据库呢,我可以在一个EC2实例上运行CouchDB和Node吗?
Yes, you can run more than on application per instance. 是的,您可以在每个实例上运行多个应用程序。 You could potentially run them on different ports if you don't mind appending a port number to your http urls.
如果您不介意在您的http网址上附加端口号,则可以在不同的端口上运行它们。
yourdomain.com/
& yourdomain.com:8080
. yourdomain.com/
& yourdomain.com:8080
。
There's nothing wrong with that approach, but you can also run virtual domains in a single Node.js instance using the vhost
directive. 这种方法没有任何问题,但您也可以使用
vhost
指令在单个Node.js实例中运行虚拟域。
Of you can put an Nginx server in front and reverse proxy to two or more server processes in the background so you can mix and match servers like Node.js and Apache/PHP all on the same EC2 instance. 你可以将Nginx服务器放在前面,将反向代理放在后台的两个或多个服务器进程中,这样你就可以在同一个EC2实例上混合和匹配Node.js和Apache / PHP等服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.