CentOS Help

Discussion in 'Bukkit Help' started by leightonward, Mar 12, 2012.

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

    leightonward

    I'm sure you get this all the time but after searching I couldn't find much on my problem. Now I read through a guide on installing but when I try to run the batch file on CentOS it won't run. I'm running it with Java if anyone was curious. Idk what else to run it with seeing as it is not a windows server...

    Thanks!
     
  2. Offline

    tr4st

    Show us your starting script.
     
  3. Offline

    fatgit

    I use CentOs, my startup script is:

    Code:
    #!/bin/bash 
    cd "${0%/*}"; java -Xms512M -Xmx1024M -jar craftbukkit.jar 
    And I call it start

    Make sure the script is set as executable too, then use
    Code:
    ./start
    to run or
    Code:
    screen ./start
    to run in the background.
     
  4. Offline

    zipron

    My startup script on ubuntuserver is:
    Code:
    java -Xmx1024M -Xms1024M -jar craftbukkit.jar
    
    First try executing that command when you're in your server folder. If that works you can:
    Code:
    screen
    to start a screen session: this session will stay even if you shut down your ssh client (I assume you use an ssh client? or does centOS has a GUI?)
    Code:
    screen -r
    to restore your screen session and get to the console of the server, if you run multiple screen sessions:
    Code:
    > screen -ls
    > screen -r <screenID>
    
    it will list all IDs of your screens, choose the right one =)
    Code:
    killall screen
    stops all screen sessions

    But are you sure it is an issue with your command? can it be your java which is outdated?
    Code:
    > sudo apt-cache search JRE
    > sudo apt-get install <correct version>
    =) zip
     
Thread Status:
Not open for further replies.

Share This Page