简体   繁体   English

如何在单台机器上运行同一窗口服务(java)的多个实例

[英]How can I run multiple instances of the same window service(java) in single machine

I have a Java class (Java Application) and am running it as Windows service using the Java Service Wrapper. 我有一个Java类(Java应用程序),并使用Java Service Wrapper将其作为Windows服务运行。

Service s1 is already running as window service in my system. 服务s1已在我的系统中作为窗口服务运行。 Can i install the same service and make it to run as duplicate. 我可以安装相同的服务并使其作为重复运行。 If yes, please suggest me a way to run a duplicate service. 如果是,请建议我运行重复服务的方法。

Yes, you can. 是的你可以。 Just give each service unique name, eg mysevece1, myservice2 etc. BTW it is even not required. 只需给每个服务唯一的名称,例如mysevece1,myservice2等.BTW它甚至不是必需的。 It is for your convenience only. 这只是为了您的方便。

Just the way you created your original service. 就像你创建原始服务的方式一样。 You can give different services running same application(in this case your java application) same names also. 您可以为运行相同应用程序的不同服务(在本例中为您的Java应用程序)提供相同的名称。 But its advisable to give different names eg : XXXservice1 , XXXservice2 etc. 但建议给出不同的名称,例如:XXXservice1,XXXservice2等。

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

相关问题 我可以在同一台机器上运行两个tomcat实例吗? - Can I run two tomcat instances on the same machine? Java 可以并行运行同一个套接字的多个实例吗? - Can Java run multiple instances of the same socket in parallel? 如何在同一台机器上运行2个(或更多)Wildfly实例? - How to run 2 (or more) Wildfly instances on the same machine? 使用单个配置在同一台计算机上运行ehcache的多个实例 - running multiple instances of ehcache on the same machine with a single config Java服务的多个实例中的相同事件处理 - Same event processing in multiple instances of a java service 当多个java程序在同一台机器上运行时 - When multiple java programs run on the same machine 如何防止对象的多个实例在Java中具有相同的属性 - How can I prevent multiple instances of an object from having the same attributes in Java 如何在我的机器上同时安装多个版本的 Java JDK? - How can I have multiple versions of the Java JDK installed on my machine at the same time? 如何创建一个可以作为窗口服务运行的Java应用程序? - How to create a java application which can be run as window service? 是否可以在一台Memcached服务器上运行同一应用程序的多个实例? - Is it possible to run multiple instances of the same application with a single memcached server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM