简体   繁体   English

在服务器上部署多个Java应用程序

[英]Deploy multiple Java apps on a server

I have recently started playing around with Telegram bots. 我最近开始玩电报机器人。 I found a host (digitalocean) that gives me a linux server that is enough for my needs. 我找到了一台主机(digitalocean),该主机为我提供了足以满足我的需求的linux服务器。 The tutorial that I read said that I need to run my jar files using through using the screen command. 我阅读的教程说,我需要通过使用screen命令来运行我的jar文件。

However, as my app runs, I cannot do anything else on that screen. 但是,在我的应用运行时,我无法在该屏幕上执行任何其他操作。 I can't start another app on it, either. 我也无法在其上启动另一个应用程序。 So here comes the question - how can I host 2 java apps on one server? 因此,出现了一个问题-我如何在一个服务器上托管2个Java应用程序?

Thanks for your help! 谢谢你的帮助!

您可以尝试以下方法:nohup java -jar yourapp.jar&

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

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