Question:
How can I keep my minecraft server running without keeping SSH up?
Zaeqon
2011-06-20 17:13:37 UTC
I lag alot on my server whenever I play because I'm keeping SSH up to keep the server running. Plus it crashes whenever I have a blip in connection. How can I keep my minecraft server running without keeping SSH up?
Three answers:
2011-06-22 19:25:57 UTC
Screen. Here is the code I use for my own server.



As a note, if you run this on ubuntu, you may need to use sudo before commands.



To start the server:



screen -S minecraft java -Xincgc -Xmx1G -jar minecraft_server.jar



if you use craftbucket it would be...



screen -S minecraft java -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui



To exit out of your screen push CTL+A then CTL+D



To resume your screen after quitting it or disconnecting from SSH use:



screen -rx
2011-06-20 17:17:47 UTC
Using screen. Screen keeps your server online even when you close SSH.



Use the link below to learn about Screen.
Jesse
2011-06-20 17:15:38 UTC
sure can


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...