1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Server won't stay open?

Discussion in 'Help' started by NFGamerMC, Mar 15, 2017.

  1. NFGamerMC

    NFGamerMC Spider Jockey

    Messages:
    30
    Okay so I have a DigitalOcean VPS and I installed PMMP using PuTTY and I joined my server but when I closed puTTY it said "Server Closed", how do I make my server be online 24/7 using Linux
     
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    To keep your server running after logging out of your VPS you have to install a Linux program called "screen".
    If you're on Ubuntu you can do this by typing
    Code:
    sudo apt-get install screen
    or
    Code:
    sudo yum install screen
    if you're on CentOS.
    Then run
    Code:
    screen ./start.sh
    to run your server. Now, you can log out of Putty and you're server will keep running. To go back to the server console, log back into your VPS in Putty and type
    Code:
    screen -r
    and you'll be good to go.
     
    HimbeersaftLP likes this.
  3. NFGamerMC

    NFGamerMC Spider Jockey

    Messages:
    30
    So can you tell me direct instructions for Ubnutu
     
  4. NFGamerMC

    NFGamerMC Spider Jockey

    Messages:
    30
    Wait.... Just re-read. Thanks
     
  5. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    No problem :)
     
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    no no use tmux screen is too old
    not very recommend unless you know what it does nohup
     
  7. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    Screen is what I use. It has everything you need to use for PocketMine, and it's small in disk space.
     
    Ishan Naik and HimbeersaftLP like this.
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    yes it works and if that's all you care then you are fine, just like how internet explorer works, but someone surely would recommend using something better
     
  9. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    If you're using Ubuntu and installed tmux then follow these steps:

    Create a tmux session
    Code:
    tmux new-session -s console
    Attaching to a created session
    Code:
    tmux attach -t {session-name}
    In your case
    Code:
    Tmux attach -t console
    Hope it helps ;)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.