1

How to keep my server running 24/7 with screen

sam45114's Avatar sam4511411/20/11 9:57 am
1 emeralds 7.8k 11
2/14/2012 1:24 am
DieDae's Avatar DieDae
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's Avatar
sam45114
Level 3 : Apprentice Miner
0

Create an account or sign in to comment.

11

1
02/14/2012 1:24 am
Level 10 : Journeyman Dragonborn
DieDae
DieDae's 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
DocJewl's 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 3 : Apprentice Miner
sam45114
sam45114's 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 3 : Apprentice Miner
sam45114
sam45114's 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 40 : Master Network
ZaphodX
ZaphodX's 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
tmad40blue's 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 3 : Apprentice Miner
sam45114
sam45114's 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 3 : Apprentice Miner
sam45114
sam45114's Avatar
what? that has no relavence to the subject
1
11/20/2011 10:07 am
Level 29 : Expert Network
Oni__
Oni__'s 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 29 : Expert Network
Oni__
Oni__'s Avatar
pay someone like redstone host to do it
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome