Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2220,"date":"2019-11-26T06:47:10","date_gmt":"2019-11-26T06:47:10","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2220"},"modified":"2019-12-05T00:32:55","modified_gmt":"2019-12-05T00:32:55","slug":"how-to-install-glowstone-minecraft-on-a-centos-7-server","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-install-glowstone-minecraft-on-a-centos-7-server\/","title":{"rendered":"How to Install Glowstone (Minecraft) on a CentOS 7 Server"},"content":{"rendered":"
The article is a port of my “How to Install Glowstone (Minecraft) on a CentOS 6 Server<\/a><\/strong><\/span>” article. It has been updated for CentOS 7.<\/div>\n

Introduction<\/strong><\/h2>\n
\n

Glowstone<\/strong>\u00a0is indubitably the most optimized server for\u00a0Minecraft<\/strong>. The software boasts low memory usage, and uses significantly less\u00a0CPU<\/strong>\u00a0on your server.<\/p>\n

Whether you are an avid player, or just trying to get a server up, the setup process is a breeze.<\/p>\n

This article will cover the installation process for on\u00a0CentOS 7<\/strong>.<\/p>\n<\/div>\n

Prerequisites<\/strong><\/h2>\n
\n
    \n
  • CentOS 7.<\/strong><\/li>\n
  • A text editor (nano<\/code>\u00a0and\u00a0vim<\/code>\u00a0are fine).<\/strong><\/li>\n
  • Java.<\/strong><\/li>\n
  • Screen (used to keep the server running in the background).<\/strong><\/li>\n<\/ul>\n<\/div>\n

    Installation<\/strong><\/h2>\n
    \n

    As mentioned previously,\u00a0Glowstone<\/strong>\u00a0is simple. This installation will require minimal work.<\/p>\n<\/div>\n

    Step 1: Install packages<\/strong><\/h3>\n
    \n

    Install the necessary packages to run\u00a0Glowstone<\/strong>\u00a0(binaries for Java and\u00a0screen<\/code>):<\/p>\n

    yum install java screen -y\r\n<\/code><\/pre>\n<\/div>\n

    Step 2: Create server folder<\/strong><\/h3>\n
    \n

    Create a new directory for the server.<\/p>\n

    cd ~\r\nmkdir Glowstone\r\ncd Glowstone\r\n<\/code><\/pre>\n<\/div>\n

    Step 3: Download Glowstone<\/strong><\/h3>\n
    \n

    Download\u00a0Glowstone<\/strong>\u00a0from the repository.<\/p>\n

    wget https:\/\/circleci.com\/api\/v1.1\/project\/github\/GlowstoneMC\/Glowstone\/latest\/artifacts\/0\/%24CIRCLE_ARTIFACTS\/glowstone.jar\r\n<\/code><\/pre>\n<\/div>\n

    Step 4: Create setup file<\/strong><\/h3>\n
    \n

    Create the startup file. We need to create this to set the amount of RAM the server will allocate and use.<\/p>\n

    nano start.sh\r\n<\/code><\/pre>\n

    In the step above, you may use any text editor. We’ll be using\u00a0nano<\/code>\u00a0for this tutorial.<\/p>\n

    Paste the following:<\/p>\n

    java -Xms512M -Xmx512M -jar glowstone.jar\r\n<\/code><\/pre>\n

    You may change the 512M to the desired amount of RAM.<\/p>\n

    Exit and save. With\u00a0nano<\/code>, you’ll need to hold\u00a0CTRL<\/code>\u00a0and\u00a0O<\/code>\u00a0at the same time. Once you’ve done this, simply press the\u00a0Enter<\/code>or\u00a0Return<\/code>\u00a0key.<\/p>\n<\/div>\n

    Step 5: Permissions update<\/strong><\/h3>\n
    \n

    Set the appropriate permissions on\u00a0glowstone.jar<\/code>.<\/p>\n

    chmod 755 glowstone.jar\r\n<\/code><\/pre>\n<\/div>\n

    Step 6: Start screen<\/strong><\/h3>\n
    \n

    Open a screen session for Glowstone.<\/p>\n

    screen -S Glowstone\r\n<\/code><\/pre>\n<\/div>\n

    Step 7: Launch Glowstone<\/strong><\/h3>\n
    \n

    Start the server:<\/p>\n

    .\/start.sh\r\n<\/code><\/pre>\n

    At this point, you can stay in the console, or choose to exit by pressing\u00a0CTRL<\/code>\u00a0,\u00a0A<\/code>, and\u00a0D<\/code>\u00a0simultaneously.<\/p>\n<\/div>\n

    Conclusion<\/strong><\/h2>\n
    \n

    Congratulations! Assuming that everything has worked, you now have a working Minecraft server. Connecting to it is like any other server; the IP you’ll connect to should look like the following:<\/p>\n

     203.0.113.230:25565\r\n<\/code><\/pre>\n

    Uninstalling is also possible. Simply stop the server, remove the Glowstone folder, and uninstall Java. For example:<\/p>\n

    cd ~\r\nrm -rf Glowstone\r\nyum -y remove java\r\n<\/code><\/pre>\n

    Have fun!<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[105,231,242,243,245],"manual_kb_tag":[171],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2220"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2220"}],"version-history":[{"count":3,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2220\/revisions"}],"predecessor-version":[{"id":2223,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2220\/revisions\/2223"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2220"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2220"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}