In order to run a game server (minecraft) I start it by running this command in CentOS:
java -Xms512M -Xmx1G -jar minecraft_server.jar
But I have no idea how to stop this file from running. I assume it has it's own internal command but considering it might be started in background and running for a very long time, how can I stop this Java command?
Thank you.