Advertisement
Guest User

Minecraft CentOS

a guest
Oct 22nd, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. How to Install Minecraft Server on CentOS VPS
  2.  
  3. Virtual servers are the ideal hosts for minecraft servers. Setting up a Minecraft server is simple, but there are a few requirements you must double-check:
  4.  
  5. + Xen-based VPS. Due to differences in how Java works with OpenVZ and Xen, a Xen server is recommended for best performance.
  6.  
  7. + Latest Java-JDK
  8.  
  9. + At least 1gb of RAM. Less will work for a small server, but 1gb or more is recommended.
  10.  
  11. + CentOS operating system installed.
  12.  
  13.  
  14.  
  15. On to the Minecraft server setup:
  16.  
  17.  
  18.  
  19. 1. Start by installing Java-JDK:
  20.  
  21. # yum install java-1.6.0-openjdk
  22.  
  23. 2. Check if Java was installed:
  24.  
  25. # which java
  26.  
  27. The following will be displayed if it was properly installed:
  28.  
  29. # /usr/bin/java
  30.  
  31. 3. Switch to the root directory, if you're not there already:
  32.  
  33. # cd
  34.  
  35. 4. Create a directory for Minecraft:
  36.  
  37. # mkdir Minecraft
  38.  
  39. 5. Enter the directory:
  40.  
  41. # cd Minecraft
  42.  
  43. 6. Download Minecraft:
  44.  
  45. # wget http://minecraft.net/download/minecraft_server.jar
  46.  
  47. 7. CHMOD the Minecraft .jar like so:
  48.  
  49. # chmod +x minecraft_server.jar
  50.  
  51. 8. Minecraft is now installed. You'll now need to install "screen" to keep the Minecraft server running after the SSH session is closed.
  52.  
  53. # yum install screen
  54.  
  55. 9. Use the screen and run Minecraft. Enter screen:
  56.  
  57. # screen
  58.  
  59. 10. Start up Minecraft (you can edit the 1024M value to match your server's RAM):
  60.  
  61. # java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
  62.  
  63. To get back to the normal screen, press these keys: Control+A+D
  64.  
  65. To get back to the screen where Minecraft is running:
  66.  
  67. # screen -r
  68.  
  69. You should now be off and running with a fully functional Minecraft server!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement