I host a minecraft server on a dedicated linux server. To start the minecraft server i have to open putty and run a command. If I close that putty window then my minecraft server will stop. How can I get around this?
Answer by nitrocrime · Aug 26, 2012 at 03:13 PM
The command you need to put into the terminal is very simple
java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui
You can change the 2048M with the amount of ram you'd like to allocate to Minecraft, I usually run mine on 6 (6144M) out of 8 (8192M) gig's.
If you're using bukkit just change the minecraft_server.jar with the craftbukkit.jar name (or whatever it's called due to versions in the name)
Oh wait I misread your question. To keep the server running just type the command (if available)
screen -T minecraftServer
This will give you a second terminal screen that runs in a seperate thread making it keep on running while you close the terminal screen.
To re-enter this screen after closing the main one just type the command.
Answer by jadtechnic · Aug 26, 2012 at 09:15 PM
any terminal will act as a shell in linux bash is the most common or as good as any ..
or you can turn that around any shell wil act as a terminal :)
ok so now you know what a terminal is on use the home dash type term in the search and you will get a number of them list if you exit from unity desk top you will find your self at the prompt the trick is knowing what script to get or write to do what you want ..
Minecraft Server Questions? 2 Answers
Automatically move files? 1 Answer
Connecting to Minecraft servers issue 6 Answers
Linux VPN Server Software 0 Answers