{"id":263,"date":"2013-06-07T19:45:16","date_gmt":"2013-06-07T19:45:16","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=263"},"modified":"2013-06-07T19:45:16","modified_gmt":"2013-06-07T19:45:16","slug":"how-to-install-minecraft-server-on-centos-vps","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2013\/06\/07\/how-to-install-minecraft-server-on-centos-vps\/","title":{"rendered":"How to Install Minecraft Server on CentOS VPS"},"content":{"rendered":"<p>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:<\/p>\n<p>+\u00a0<strong>Xen-based<\/strong>\u00a0<strong>VPS.<\/strong>\u00a0Due to differences in how Java works with OpenVZ and Xen, a Xen server is recommended for best performance.<\/p>\n<p>+\u00a0<strong>At least 1gb of RAM.<\/strong>\u00a0Less will work for a small server, but 1gb or more is recommended.<\/p>\n<p>+\u00a0<strong>CentOS<\/strong>\u00a0operating system installed.<\/p>\n<p>&nbsp;<\/p>\n<p>On to the Minecraft server setup:<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1.\u00a0<\/strong>Start by installing Java-JDK:<\/p>\n<blockquote><p># yum install java-1.6.0-openjdk<\/p><\/blockquote>\n<p><strong>2.<\/strong>\u00a0Check if Java was installed:<\/p>\n<blockquote><p># which java<\/p><\/blockquote>\n<p>The following will be displayed if it was properly installed:<\/p>\n<blockquote><p># \/usr\/bin\/java<\/p><\/blockquote>\n<p><strong>3.<\/strong>\u00a0Switch to the root directory, if you&#8217;re not there already:<\/p>\n<blockquote><p># cd<\/p><\/blockquote>\n<p><strong>4.<\/strong>\u00a0Create a directory for Minecraft:<\/p>\n<blockquote><p># mkdir Minecraft<\/p><\/blockquote>\n<p><strong>5.<\/strong>\u00a0Enter the directory:<\/p>\n<blockquote><p># cd Minecraft<\/p><\/blockquote>\n<p><strong>6.<\/strong>\u00a0Download Minecraft:<\/p>\n<blockquote><p># wget http:\/\/minecraft.net\/download\/minecraft_server.jar<\/p><\/blockquote>\n<p><strong>7.<\/strong>\u00a0CHMOD the Minecraft .jar like so:<\/p>\n<blockquote><p># chmod +x minecraft_server.jar<\/p><\/blockquote>\n<p><strong>8.<\/strong>\u00a0Minecraft is now installed. You&#8217;ll now need to install &#8220;screen&#8221; to keep the Minecraft server running after the SSH session is closed.<\/p>\n<blockquote><p># yum install screen<\/p><\/blockquote>\n<p><strong>9.<\/strong>\u00a0Use the screen and run Minecraft. Enter screen:<\/p>\n<blockquote><p># screen<\/p><\/blockquote>\n<p><strong>10.<\/strong>\u00a0Start up Minecraft (you can edit the 1024M value to match your server&#8217;s RAM):<\/p>\n<blockquote><p># java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui<\/p><\/blockquote>\n<p>To get back to the normal screen, press these keys: Control+A+D<\/p>\n<p>To get back to the screen where Minecraft is running:<\/p>\n<blockquote><p># screen -r<\/p><\/blockquote>\n<p>You should now be off and running with a fully functional Minecraft server!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: +\u00a0Xen-based\u00a0VPS.\u00a0Due to differences in how Java works with OpenVZ and Xen, a Xen server is recommended for best performance. +\u00a0At least 1gb of RAM.\u00a0Less will work for a small server, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[60],"tags":[115],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-linux","tag-how-to-install-minecraft-server-on-centos-vps"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}