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

Solved Server not stopping, why?

Discussion in 'Help' started by CarterG3, Aug 9, 2017.

  1. CarterG3

    CarterG3 Spider Jockey

    Messages:
    31
    GitHub:
    sircarter
    Well recently I got some problem. When I used screen ./start.sh it started the server but when I closed PuTTy, and re-oppened it I wanted to close the server I did killall screen but my server was still on, when I did ./start.sh I got that a server is already running on that port. The server was open tho but whenever I tried to join I got stuck in syncing pack with server. And I know this stuck problem is because of opening server through screen. Anyway to close a server after opening it through screen? Thanks for reading.
     
  2. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Are you using Linux to host your server?
     
  3. CarterG3

    CarterG3 Spider Jockey

    Messages:
    31
    GitHub:
    sircarter
    Yes I'm using Linux, Ubuntu.
     
  4. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    How do you stop your server? You kill it (directly closed the window) or you do "stop"?
    If you use the first method, then you should never do it again
     
  5. CarterG3

    CarterG3 Spider Jockey

    Messages:
    31
    GitHub:
    sircarter
    I actually closed directly after screen ./start.sh, the server remains open but can't be closed.
     
  6. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Do you find a process with the command php?
    upload_2017-8-9_8-8-30.png
     
  7. CarterG3

    CarterG3 Spider Jockey

    Messages:
    31
    GitHub:
    sircarter
    I don't think so
     
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    kill -9 (lsof -t -i :"PORT")

    this will kill the server on X port
    note that this may result on data lost
     
    XdmingXD likes this.
  9. CarterG3

    CarterG3 Spider Jockey

    Messages:
    31
    GitHub:
    sircarter
    Fixed, thank you all.
     
  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.