The previously accepted answer does not work for running multiple servers or any scripts which do not terminate.
The good news is that now you can use the Compound
run configuration which is build natively into the program to execute multiple servers simultaneously which do not terminate.
In fact, even the MultiRun plugin states on their GitHub page that they recommend to use the Compound
run configuration over their plugin.
Official IntelliJ IDEA documentation
Here's what the options looks like:
Steps to get it working:
- First create your individual run configurations
- Then create a new compound configuration
- Now choose the individual run configurations you previously set up.
- Finally just run your new
Compound
configuration.
All the individual configs will run simultaneously. Perfect for servers and other threads which do not exit!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…