java -Xmx1500M -Xms750M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -jar minecraft_server.1.8.jar nogui\r\n<\/code><\/pre>\nSave the file and run the following command to start the server:<\/p>\n
screen sh startup.sh\r\n<\/code><\/pre>\nIf all is successful, you will be able to connect to the IP address of your VPS with the Minecraft game client. You have just setup Minecraft on FreeBSD 10.<\/p>\n
Security Note<\/strong><\/h3>\nIt is recommended to create a new user specifically for your server to make sure that the Minecraft server does not have root access. Giving a server or application root access poses a security risk. To create a new user, run\u00a0adduser<\/code>\u00a0and follow everything being prompted, but make sure that when it asks about the shell, to choose\u00a0nologin<\/code>\u00a0as a security measure for this user. Once completed, enter into your server directory and run the following command (Change\u00a0“minecraft”<\/strong>\u00a0with the username and group you have created):<\/p>\nchown -R minecraft:minecraft .\r\n<\/code><\/pre>\nThis will change the owner of the content of that directory to\u00a0minecraft<\/code>. Next, run the following command to start the server:<\/p>\nscreen su -m minecraft -c \"sh startup.sh\"\r\n<\/code><\/pre>\nThis will start your server as the user\u00a0minecraft<\/code>. If everything is successful, the server will be running.<\/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,230,243],"manual_kb_tag":[211],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2312"}],"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=2312"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2312\/revisions"}],"predecessor-version":[{"id":2313,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2312\/revisions\/2313"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2312"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2312"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}