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":2246,"date":"2019-11-26T07:06:06","date_gmt":"2019-11-26T07:06:06","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2246"},"modified":"2019-11-26T07:06:06","modified_gmt":"2019-11-26T07:06:06","slug":"how-to-install-a-minecraft-server-on-ubuntu-14-04","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-install-a-minecraft-server-on-ubuntu-14-04\/","title":{"rendered":"How to Install a Minecraft Server on Ubuntu 14.04"},"content":{"rendered":"

In this article, we are going to install a\u00a0Minecraft server<\/strong>\u00a0on an\u00a0Ubuntu<\/strong>. Make sure that you are logged in under a user that isn’t the root user, as running this server as root can be unsafe.<\/p>\n

In order to run a Minecraft server, we need\u00a0Java 1.7<\/strong>\u00a0to be installed on the server. To install Java 1.7, run the following commands:<\/p>\n

sudo apt-get update\r\nsudo apt-get install openjdk-7-jdk\r\n<\/code><\/pre>\n

Now, we are going to download the Minecraft server via\u00a0wget<\/code>. If you don’t have\u00a0wget<\/code>\u00a0installed, then you can install it via\u00a0sudo apt-get install wget<\/code>. Replace\u00a01.10.2<\/code>\u00a0with the current release of Minecraft.<\/p>\n

wget https:\/\/s3.amazonaws.com\/Minecraft.Download\/versions\/1.10.2\/minecraft_server.1.10.2.jar\r\nchmod +x minecraft_server.jar\r\n<\/code><\/pre>\n

The Minecraft install is complete. Accept the license agreement.<\/p>\n

echo \"eula=true\" > eula.txt\r\n<\/code><\/pre>\n

You can now start your Minecraft server via the following command:<\/p>\n

java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\n

This command starts the\u00a0Minecraft server<\/strong>\u00a0with\u00a01024MB RAM<\/strong>\u00a0allocated. How to allocate more RAM to Minecraft server is easy. Simply change the\u00a0-Xmx<\/code>\u00a0and\u00a0-Xms<\/code>\u00a0attributes in the command.<\/p>\n

In case you want the server to run in the background, you can install screen:<\/p>\n

apt-get install screen\r\n<\/code><\/pre>\n

To start the\u00a0Minecraft server<\/strong>\u00a0in screen, open a screen instance, then run the Java command again.<\/p>\n

screen\r\njava -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\n

To exit out of the screen window, press\u00a0CTRL + A<\/strong>, then\u00a0d<\/strong>. If you want to open the window again, use the command\u00a0screen -r<\/code>.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[105],"manual_kb_tag":[181],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2246"}],"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=2246"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2246\/revisions"}],"predecessor-version":[{"id":2247,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2246\/revisions\/2247"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2246"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2246"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}