1

How to keep my server running 24/7 with screen

sam45114 11/20/11 9:57 am
8.2k
2/14/2012 1:24 am
I was wondering if i am able to use screen so i can turn off my computer and keep the server on. I am using AWS (amazon web services) and i got my server to work but then the computer with putty died. Which created a problem everyone got disconnected. can someone help?
Posted by
sam45114
Level 3 : Apprentice Miner
0

  Have something to say?

JoinSign in

11

DieDae
02/14/2012 1:24 am
Level 10 : Journeyman Dragonborn
#!/bin/sh
java -Xmx2G -Xincgc -jar craftbukkit-1.1-R3.jar


put that in a .sh

type chmod +x <name>.sh

use screen <name>.sh

then ctrl+a+d

come back use screen -x
1
DocJewl
02/14/2012 1:14 am
Level 9 : Apprentice Crafter
sorry i only got to read this now.

Install the utility "screen"

login with putty, run screen, then start your server as normal

press <ctrl>-a (relase) then hit 'd' you will detach the screen and be back to a normal command prompt and you can close putty.

when you log back into the server run 'screen -r' to reconnect so you will be in the server console.
1
sam45114
11/20/2011 10:33 am
Level 3 : Apprentice Miner
Thanks, those are great instructions but I already have set up a Minecraft server on an Amazon Web Services (EC2) server. What I'm trying to figure out is how to leave that server running (so my friends can play anytime) without having to leave my computer running and connected to the AWS EC2 server. I thought that AWS would allow you to have a server running in the cloud by itself (independent of my computer). Is there some trick, setting or tool that I need to do to accomplish this?
1
sam45114
11/20/2011 10:09 am
Level 3 : Apprentice Miner
ok thanks i though you would let it run in the cloud with your computer off
1
ZaphodX
11/20/2011 10:04 am
Level 40 : Master Network
You cant turn off your computer and expect the server to remain on >.> The server runs off your computer. What you are suggesting is like turning a light on in your home and expecting it still to work if you cut the power to your entire house.
1
tmad40blue
11/20/2011 10:07 am
Level 4 : Apprentice Network
^ This.

If you want people to be able to connect 24/7, you either leave your computer on 24/7 or pay a company to host your server for you, so that it's not running off one of your own computers, but is up in the cloud.
1
sam45114
11/20/2011 10:06 am
Level 3 : Apprentice Miner
i do know this but i own a VPS i am not hosting the server itself on my computer
1
sam45114
11/20/2011 10:00 am
Level 3 : Apprentice Miner
what? that has no relavence to the subject
1
Oni__
11/20/2011 10:07 am
Level 29 : Expert Network
it is im stating the only way to do it pay someone like redstone host who run 24/7 servers for you
1
Oni__
11/20/2011 9:59 am
Level 29 : Expert Network
pay someone like redstone host to do it
1

Welcome