How to close ssh console but leave server on? VPS

Discussion in 'Bukkit Help' started by Rarez, Apr 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Rarez

    I don't want to have to constantly babysit the console in order for my server to remain online. I am using a VPS -- everything was setup via SSH by me. I have used the .sh shortcut. It isn't useful -- at all. It's just a shortcut to start up the server. Whenever I close out the SSH console, server goes offline. Again, I want to be able to exit out of SSH but leave the server running. How to do this?

    CentOS 5.4 btw.

    Thank you.
     
  2. Offline

    KakusCraft

    when you are on screen, press ctrl + A + D

    after that, type cd

    close the SSH console and youll be fine :D
     
  3. Offline

    Paswaru

    You need to use the program screen.

    yum install screen

    then change your .sh to screen -dmS minecraft java ............

    When you want to see the console, just type screen -r.

    To detach from the screen session but leave minecraft running its, CTRL+A then press D.
     
  4. Offline

    Rarez

    I have screen istalled. But I don't quite uderstad how to get o screen. My N key works half the time. Sorry about that >.>

    How o I go about begiig with screen? My miecraft folder is ame "mc" ad the mai jar is craftbukkit.jar

    Thanks =]
     
  5. Offline

    KakusCraft

    ok. heres what you need to do

    1. Login to your vps root
    2. Go to the server directrory by typing /cd mc
    3. Type yum install screen
    4. After it installed type chmod +x craftbukkit.jar
    5. Then type screen
    6. Start your server. For example : java -Xmx1024M -Xms1024M -jar craftbukkit.jar nogui
    7. It will show you the console.
    8. If you want to close the SSH client, type CTRL + A + D before closing it
    9. Close the SSH console
    10. Check your server if its still running or not :)
     
  6. Offline

    Rarez

    Thanks. It worked :).
     
  7. Offline

    KakusCraft

    oh yes, forgot to say, to get back to the console screen, simply enter your mc directory

    then type screen -r

    glad to be able to help you ! have a great day :D
     
Thread Status:
Not open for further replies.

Share This Page