简体   繁体   English

如何在App Engine Java中配置IP地址和端口?

[英]How do you configure the IP address and port in App Engine Java?

How do you configure the IP address and port number in App Engine java environment? 如何在App Engine Java环境中配置IP地址和端口号? And how do you receive data on that IP and port? 以及如何在该IP和端口上接收数据?

Take a look at the documentation: https://cloud.google.com/appengine/docs/standard/java/tools/using-local-server 看看文档: https : //cloud.google.com/appengine/docs/standard/java/tools/using-local-server

It says, that you can use server command options --address=... and --port=... 它说,您可以使用服务器命令选项--address = ...和--port = ...

This setup made for eclipse with app engine java sdk In eclipse (Local) 此设置是使用App Engine Java SDK在Eclipse中进行的Eclipse(本地)

  1. First you need to install google app engine plugin https://developers.google.com/eclipse/docs/download 首先,您需要安装Google App Engine插件https://developers.google.com/eclipse/docs/download

  2. Restart eclipse 重新开始蚀

  3. open your google app engine project (Eg: https://github.com/GoogleCloudPlatform/appengine-java-guestbook-multiphase/archive/master.zip ) 打开您的Google App Engine项目(例如: https : //github.com/GoogleCloudPlatform/appengine-java-guestbook-multiphase/archive/master.zip

  4. Right click your project google->App engine settings-->run config 右键点击您的项目google-> App引擎设置->运行配置 在此处输入图片说明 在此处输入图片说明

  5. In web application-> select your project then open server tab to config 在Web应用程序中->选择您的项目,然后打开服务器选项卡进行配置

在此处输入图片说明 6. Run it in local 6.在本地运行 在此处输入图片说明

Enjoy!!! 请享用!!!

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

相关问题 如何在 Google App Engine 的 app.yaml 文件中配置 servlet 过滤器? - How do you configure a servlet filter in Google App Engine's app.yaml file? 如何配置Apache httpcore5 java HttpAsyncServer在其侦听端口上使用TLS? - How do you configure the Apache httpcore5 java HttpAsyncServer to use TLS on its listening port? 如何通过Grails应用程序连接到机器IP地址和端口 - How to connect to machine ip address & port via grails app 用于IP地址的应用引擎请求标头 - App engine request headers for ip address Java-获取在端口上监听的服务器的IP地址 - Java - getting IP address of server listening on a port 给出一个IP地址列表,你如何找到min,max? - Given a list of IP address, how do you find min, max? 如何显示特定接口的IP地址? - How do you display the IP address for a specific interface? 如何在Glassfish中获取远程EJB客户端的IP地址? - How do you get the ip address of a remote EJB client in Glassfish? 如何正确配置Google App Engine Java应用程序? - How to configure correctly Google App Engine Java Application? 如何在Java中使用Google App Engine数据存储区中的列表属性? - How do you use list properties in Google App Engine datastore in Java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM