\n
In this tutorial, I will guide you through setting up a\u00a0Minecraft<\/strong>\u00a0server on a high-performance\u00a0SSD VPS<\/strong>\u00a0at\u00a0AKLWEB Host<\/strong>. You will learn how to set up a\u00a0Minecraft server<\/strong>\u00a0on\u00a0Fedora 26 x64<\/strong>.<\/p>\nRequirements<\/strong><\/h3>\n\n- Any SSH client.<\/strong><\/li>\n
- 1GB RAM VPS server with Fedora 26 x64 installed.<\/strong><\/li>\n<\/ul>\n
Preparation<\/strong><\/h3>\nFirst, login to your new Fedora server at\u00a0Aklweb host<\/strong>\u00a0and install the required software.<\/p>\nssh root@ip.ip.ip.ip \r\n<\/code><\/pre>\nInstall Java 1.8:<\/p>\n
[root@aklwebhost ~]# yum install java-1.8.0-openjdk \r\n...\r\nIs this ok [y\/N]: y\r\n<\/code><\/pre>\nInstall\u00a0screen<\/code>:<\/p>\n[root@aklwebhost ~]# yum install screen\r\n...\r\nIs this ok [y\/N]: y\r\n<\/code><\/pre>\nOpen the Minecraft server port (25565) in\u00a0firewalld<\/code>:<\/p>\nfirewall-cmd --zone=public --permanent --add-port=25565\/tcp\r\nfirewall-cmd --reload\r\n<\/code><\/pre>\nFor security reasons, let’s create a user to run your Minecraft server under. If anyone finds a vulnerability in the server, they will not be able to gain root access on your server.<\/p>\n
adduser mcserver\r\n# set a secure password.\r\npasswd mcserver\r\n# this allows you to run screen while su'd from root for the next step\r\nchown mcserver `tty`\r\n<\/code><\/pre>\nConfiguration<\/strong><\/h3>\nLets switch user to\u00a0mcserver<\/code>\u00a0and install Minecraft server! Change the URL accordingly to the newest version of Minecraft.<\/p>\nsu - mcserver\r\nmkdir minecraft\r\ncd minecraft\r\nwget -O minecraft_server.jar https:\/\/s3.amazonaws.com\/Minecraft.Download\/versions\/1.11.2\/minecraft_server.1.11.2.jar\r\nchmod +x minecraft_server.jar\r\nscreen\r\necho \"eula=true\" > eula.txt\r\n# start your Minecraft server\r\njava -Xmx768M -Xms768M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\nCongratulations, your Minecraft server is now up and running on a high-performance\u00a0SSD VPS<\/strong>\u00a0server!<\/p>\nNotes<\/strong><\/h3>\nTo install on a 768MB VPS, follow the same commands above but change the last\u00a0java<\/code>\u00a0command to:<\/p>\njava -Xmx512M -Xms512M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\nIf you require more players (and thus more RAM) you just launch a larger instance and then simply subtract 256M from the amount of RAM your instance has allocated. For example, a 4096M instance would launch with\u00a0-XmX3840M -Xms3840M.<\/code><\/p>\nIf you want a private server, you can specify player names that are allowed to join. To do this, first, start your server:<\/p>\n
java -Xmx768M -Xms768M -jar minecraft_server.jar nogui\r\n<\/code><\/pre>\nWait for it to finish loading.<\/p>\n
...\r\n[Server thread\/INFO]: Preparing spawn area: 1%\r\n[Server thread\/INFO]: Preparing spawn area: 36%\r\n[Server thread\/INFO]: Preparing spawn area: 92%\r\n[Server thread\/INFO]: Done (3.496s)! For help, type \"help\" or \"?\"\r\n<\/code><\/pre>\nType the following commands into the console.<\/p>\n
whitelist on\r\nwhitelist add <username>\r\nwhitelist add <username2>\r\n....\r\n<\/code><\/pre>\nEnter your friend’s user name instead of\u00a0<username><\/code>. You can add as many of them as you would like. After this, you will see the following output:<\/p>\n[Server thread\/INFO]: Turned on the whitelist\r\n[Server thread\/INFO]: Added <username> to the whitelist\r\n<\/code><\/pre>\nIf you want to turn whitelist off, simply type\u00a0whitelist off<\/code>.<\/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,242,243],"manual_kb_tag":[190],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2265"}],"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=2265"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2265\/revisions"}],"predecessor-version":[{"id":2266,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2265\/revisions\/2266"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2265"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2265"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}