在IntelliJ中以一项操作停止所有服务器 [英] Stop all servers in one action in IntelliJ

查看:265
本文介绍了在IntelliJ中以一项操作停止所有服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IntelliJ进行开发.在这个项目中,我需要运行3台服务器.

I am developing with IntelliJ. In this project, I need to run 3 servers.

有没有一种方法可以创建以下内容的快捷方式:

Is there a way to create a shortcut to :

  • 一键式或键盘快捷键停止所有这些服务器
  • (可选)重新启动它们.

谢谢.

推荐答案

在IntelliJ中似乎没有直接的方法可以执行此操作,但是如果您可以从脚本中停止每个脚本,则只需编写一个脚本并从IntelliJ运行它.就个人而言,我只是去终端并运行脚本,而不是直接在IntelliJ(它也有一个嵌入式终端,btw)中对其进行配置.

There doesn't seem to be a direct method to do this in IntelliJ, but if you can stop each one from a script, then you could just write a script and run it from IntelliJ. Personally, I'd just go to the terminal and run the script rather than configuring it directly in IntelliJ (which also has an embedded terminal, btw).

这篇关于在IntelliJ中以一项操作停止所有服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆