1

How to keep my server running 24/7 with screen

1 emerald 11 replies 4,372 views | started 11/20/2011 9:57 am by sam45114
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 avatar
sam45114
Level 2 : Apprentice Miner
0

11 replies

1
02/14/2012 1:24 am
Level 10 Journeyman Dragonborn
DieDae
avatar
#!/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
02/14/2012 1:14 am
Level 9 Apprentice Crafter
DocJewl
avatar
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
11/20/2011 10:33 am
Level 2 Apprentice Miner
sam45114
avatar
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
11/20/2011 10:09 am
Level 2 Apprentice Miner
sam45114
avatar
ok thanks i though you would let it run in the cloud with your computer off
1
11/20/2011 10:04 am
Level 31 Artisan Network
ZaphodX
avatar
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
11/20/2011 10:07 am
Level 4 Apprentice Network
tmad40blue
avatar
^ 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
11/20/2011 10:06 am
Level 2 Apprentice Miner
sam45114
avatar
i do know this but i own a VPS i am not hosting the server itself on my computer
1
11/20/2011 10:00 am
Level 2 Apprentice Miner
sam45114
avatar
what? that has no relavence to the subject
1
11/20/2011 10:07 am
Level 33 Artisan Network
Oni__
avatar
it is im stating the only way to do it pay someone like redstone host who run 24/7 servers for you
1
11/20/2011 9:59 am
Level 33 Artisan Network
Oni__
avatar
pay someone like redstone host to do it

Search

Browse

Site

© planetminecraft.com

Welcome