login about faq

To prove you're not a spammer, email newuser.lgqa@gmail.com with the subject "Account Request" to request an account.


0
1

I host a minecraft server on a dedicated linux server. To start the minecraft server i have to open putty and run a command. If I close that putty window then my minecraft server will stop. How can I get around this?

asked Aug 24 '12 at 20:48

jrneulight's gravatar image

jrneulight
1116911

closed Mar 27 '13 at 06:54

Tim%20Fontana's gravatar image

Tim Fontana
16.4k148211390

The question has been closed for the following reason "The question is answered, right answer was accepted" by Tim Fontana Mar 27 '13 at 06:54


The command you need to put into the terminal is very simple

java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

You can change the 2048M with the amount of ram you'd like to allocate to Minecraft, I usually run mine on 6 (6144M) out of 8 (8192M) gig's.

If you're using bukkit just change the minecraft_server.jar with the craftbukkit.jar name (or whatever it's called due to versions in the name)

Edit!

Oh wait I misread your question. To keep the server running just type the command (if available)

screen -T minecraftServer

This will give you a second terminal screen that runs in a seperate thread making it keep on running while you close the terminal screen.

To re-enter this screen after closing the main one just type the command.

screen -x

answered Aug 26 '12 at 14:13

nitrocrime's gravatar image

nitrocrime
3.7k7283132

edited Aug 26 '12 at 14:16

Why not just use terminal? Isn't putty just terminal for Windows?

answered Aug 25 '12 at 13:52

Cameron's gravatar image

Cameron
2.1k122143151

lol that's what I thought!

(Aug 25 '12 at 14:39) SuperZeoX SuperZeoX's gravatar image

Couldn't you just give the command in terminal and set it up as a daemon in the background in linux?? I remember seeing that done for other applications that needed to be done that way.

(Aug 25 '12 at 23:25) Compucore Compucore's gravatar image

How Would I do that I am new to linux.

(Aug 26 '12 at 00:44) jrneulight jrneulight's gravatar image

I only have command line access how do i open terminal? n00b here.

answered Aug 26 '12 at 00:41

jrneulight's gravatar image

jrneulight
1116911

edited Aug 26 '12 at 00:44

Terminal should be in a menu or something. I've only used Ubuntu, Linux Mint and Fedora so I'm not the expert

(Aug 26 '12 at 06:14) Cameron Cameron's gravatar image

any terminal will act as a shell in linux bash is the most common or as good as any ..

or you can turn that around any shell wil act as a terminal :)

http://www.freeos.com/guides/lsst/ch01sec07.html

ok so now you know what a terminal is on use the home dash type term in the search and you will get a number of them list if you exit from unity desk top you will find your self at the prompt the trick is knowing what script to get or write to do what you want ..

answered Aug 26 '12 at 20:15

jadtechnic's gravatar image

jadtechnic
2.0k518

edited Aug 26 '12 at 20:20

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported


Tags:

×1,001
×516
×261
×141
×36
×6
×4
×2
×1
×1

Asked: Aug 24 '12 at 20:48

Seen: 1,398 times

Last updated: Mar 27 '13 at 06:54