How to keep my server running 24/7 with screen

Are you new to setting up a server and need a bit of pointing in the right direction? This is the place to be.

Post Permalink
by sam45114 » 11/20/2011

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?
Level 1
New Miner
Posts: 7
Joined: 11/20/11

Post Permalink
by ONI_LINK » 11/20/2011

pay someone like redstone host to do it
Self proclaimed Best RP'er 2012-present
Nymus is love. Nymus is life.
Rabiez is love. Rabiez is life.
Poke is scrub. Trust me on this.
User avatar
Level 14
Journeyman Pirate
Posts: 5632
Joined: 11/10/11

Post Permalink
by sam45114 » 11/20/2011

what? that has no relavence to the subject
Level 1
New Miner
Posts: 7
Joined: 11/20/11

Post Permalink
by ZaphodX » 11/20/2011

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.
Image
User avatar
Level 73
Legendary Warrior
Posts: 5504
Joined: 7/11/11
Location: UK
Says: I am fond of turtles.
Minecraft: ZaphodX

Post Permalink
by sam45114 » 11/20/2011

ZaphodX wrote: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.


i do know this but i own a VPS i am not hosting the server itself on my computer
Level 1
New Miner
Posts: 7
Joined: 11/20/11

Post Permalink
by ONI_LINK » 11/20/2011

sam45114 wrote:what? that has no relavence to the subject


it is im stating the only way to do it pay someone like redstone host who run 24/7 servers for you
Self proclaimed Best RP'er 2012-present
Nymus is love. Nymus is life.
Rabiez is love. Rabiez is life.
Poke is scrub. Trust me on this.
User avatar
Level 14
Journeyman Pirate
Posts: 5632
Joined: 11/10/11

Post Permalink
by tmad40blue » 11/20/2011

ZaphodX wrote: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.


^ 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.
Image Image
User avatar
Level 36
Artisan Fox
Posts: 152
Joined: 9/24/11
Location: Ann Arbor, MI
Says: Just a little kid on the inside.
Minecraft: tmad40blue
mc_server: Intercraften!

Post Permalink
by sam45114 » 11/20/2011

ok thanks i though you would let it run in the cloud with your computer off
Level 1
New Miner
Posts: 7
Joined: 11/20/11

Post Permalink
by ZaphodX » 11/20/2011

Image
User avatar
Level 73
Legendary Warrior
Posts: 5504
Joined: 7/11/11
Location: UK
Says: I am fond of turtles.
Minecraft: ZaphodX

Post Permalink
by sam45114 » 11/20/2011

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?
Level 1
New Miner
Posts: 7
Joined: 11/20/11

Post Permalink
by DocJewl » 2/14/2012

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.
Level 8
Apprentice Crafter
Posts: 2
Joined: 3/26/11

Post Permalink
by DieDae » 2/14/2012

#!/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
Image
User avatar
Level 4
Apprentice Dragonborn
Posts: 236
Joined: 4/25/11


Return to Server Help