简体   繁体   English

使用Amazon AWS和tomcat设置Web服务

[英]Setup web service using Amazon AWS and tomcat

I am pretty new to Amazon AWS technologies, and I have been going through all their documentation. 我对Amazon AWS技术非常陌生,并且已经阅读了所有这些文档。 My goal is to create a new web service for a use case (preferably REST) using Tomcat. 我的目标是使用Tomcat为用例(最好是REST)创建新的Web服务。

I want to use this service in multiple clients like Android, Iphone, Tablet, Web etc. Some of the examples I want to support are like - GET http://myservice.com/user/ {userid} PUT http://myservice.com/user/ {user-data} 我想在多个客户端(例如Android,Iphone,Tablet,Web等)中使用此服务。我要支持的一些示例如下:-GET http://myservice.com/user/ {userid} PUT http:// myservice .com / user / {user-data}

Does AWS or any other cloud service providers provide anything out of the box for deploying such services with minimal code changes? AWS或任何其他云服务提供商是否提供开箱即用的功能来以最小的代码更改部署此类服务?

With AWS, you create a virtual server, customize it, and then use it. 使用AWS,您可以创建一个虚拟服务器,对其进行自定义,然后使用它。 When you create a server, you pick your operating system and the size of the server you need. 创建服务器时,请选择操作系统和所需服务器的大小。 Once it is running, you can login and customize it. 运行后,您可以登录并对其进行自定义。

For example, you might start a linux server using the Amazon Linux AMI (amazon machine image). 例如,您可以使用Amazon Linux AMI(amazon机器映像)启动linux服务器。 You can use yum to install tomcat. 您可以使用yum安装tomcat。 You can drop your war file into the tomcat webapps directory. 您可以将war文件拖放到tomcat webapps目录中。

Set up access in the security group (firewall) to allow your clients to access the relevant port(s). 在安全组(防火墙)中设置访问权限,以允许您的客户端访问相关端口。

Bottom line is that the process is basically the same as if you are doing this on a new server of your own. 最重要的是,该过程与在自己的新服务器上执行此过程基本相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM