NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

How To Make A Minecraft Server

We will show you how to create a Minecraft server using easy-to-follow steps. It will be a persistent, multiplayer server that you and your friends can play on together. You don't have to be in a LAN.



How to Make a Minecraft Server - Quick Guide



If you are in a rush and want to get straight to the point, this is our "Table Of Contents". We recommend that you read everything.



Learn stuff (optional) Learn more stuff (optional) Requirements (required) Install and start the Minecraft server (required) Run the server even after you log out of your VPS (optional) Make the server automatically start at boot (optional) Configure your Minecraft server (required) FAQs (optional) Need specialized managed Minecraft server hosting? Get a coupon and get a server from Host Havoc.



Before you get to the instructions, here are some things you should know.



Reasons why you would NOT use a specialized Minecraft server hosting provider



Since you're here, you're obviously interested in hosting your own Minecraft server. There are many reasons why you wouldn't use a specialized Minecraft server hosting provider. Here are some examples.



They are slow most of the times. This is because you actually share the resources with multiple users. It can overload at some point. Most of them oversell their servers too. You don't have full control over the Minecraft server or the actual server. You can't modify anything. You're limited. These types of hosting plans are always limited.



There are many benefits to using a Minecraft hosting service. The best thing about a Minecraft hosting provider is that you don’t have to do any of the things we’ll be discussing below. But where's all the fun?



Why you should NOT use your personal computer to make a Minecraft server



We noticed lots of tutorials showing you how to host a server on your own computer. There are downsides to doing that, like:



DDoS attacks cannot be handled by your home internet. DDoS attacks are a common problem with game servers. Your home internet setup is likely not strong enough to protect them. It's unlikely it can handle a small attack. Port forwarding will be required. If you've tried making a Minecraft server on your home network, you've surely stumbled upon port forwarding and had issues with it. Your computer must be on at all times. Your electricity bill will soar and you'll be adding unnecessary load to your computer. Servers use enterprise-grade hardware, which is built to withstand heavy loads with greater stability and longer life expectancy. Your home internet isn't fast enough. Home networks are not designed to handle multiplayer games. To even consider setting up small servers, you'll need to have a bigger internet plan. Data centers are equipped with multiple high-speed, enterprise-grade internet connections, which ensures that they have (or try to have) 100% uptime. Your hardware is probably not good enough. Servers are made with enterprise-grade hardware and the most recent and fastest CPUs and SSDs. Most likely, your personal computer does not. - You probably use Windows/MacOS on your personal computer. We believe Linux is better for hosting games, though this is still a controversial topic. Don't worry, you don't really need to know everything about Linux to make a Minecraft server (though it's recommended). We'll show you everything you need to know.



Our tip is not to use your personal computer, though technically you can. A cloud server is affordable. We'll show you how to make a Minecraft server on cloud hosting below. It's simple if you follow the steps.



How to make a Minecraft server - Requirements



There are a few requirements. Before you can continue to the tutorial, you should be familiar with all of these requirements.



You will need a Linux cloud service. Linode is a recommended choice. Their prices are cheap, services are high-quality, customer support is great, all server hardware is high-end. Check the Minecraft server requirements to find out what kind of server you should get (resources like RAM and Disk space). We recommend the $20 per-month server. They support hourly pricing so if you only need the server temporary for playing with friends, you'll pay less. Choose the Ubuntu 22.04 distro during signup. During signup, choose the closest server location to your players. Remember that your server will be your responsibility. So you'll have to secure it and manage it. If you don't want to do that, you can get a managed server, in which case the hosting provider will likely make a Minecraft server for you. Memes Rain To connect to the Linux cloud servers, you'll need an SSH Client. For beginners, PuTTy is a good choice. However, we also recommend MobaXTerm. There are many SSH clients that you can choose from. You will need to set up your server (basic security setup minimum). Google it and you'll find many tutorials. Linode's Security Guide can be used to guide you through the exact steps for your Linode server. - We'll handle the software requirements like Java below.



Finally, let's get on to the actual business of things:



How to Make a Minecraft Server on Ubuntu (Linux)



These instructions were written and tested on Linode's Ubuntu 22.04 server. They will work on Ubuntu 20.04 and Ubuntu 18.04 as well as any other Ubuntu-based distros and any other server providers.



We are using Minecraft's default Vanilla server. Alternatives like CraftBukkit and Spigot allow for more customizations and plugins. You can ruin your server if you have too many plugins. Each plugin has its pros and cons. Nevertheless, the instructions below are for the default Vanilla server to keep things simple and beginner-friendly. If there is interest, we might publish a tutorial for CraftBukkit very soon.



Here are the step-by-step instructions on how to make a Minecraft server:



1. Login to your server



We'll use root as our user. You'll need to execute all commands with'sudo' if you use a restricted-user. If you do something that you don't have sufficient permissions for, you will be warned.



Your SSH client allows you to log in to your server. Use your server IP and port (most likely 22).



After you log in, ensure that you secure your server.



2. Updating Ubuntu



Always update Ubuntu before doing anything else. You can update Ubuntu using the following commands:



When prompted to, hit "enter", and/or "y".



3. Install necessary tools



This tutorial will require you to install a few packages and tools, such as text editing and making your server persistent. These packages can be installed using the following command:



Some of them might already be installed.



4. Download Minecraft Server



First, create a directory where you'll store your Minecraft server and all other files:



Navigate to the new directory



Now you can download Minecraft Server. Go to the download page and get the link there. Use wget to download the file



5. Install the Minecraft server



Once you've downloaded and installed the server.jar file you need to run this file once. It will create several files, including a eula.txt licence file. The first time you run it, it will return an error and exit. This is normal. The following command should be used to get you in the door:



"-Xms2048M" is the minimum RAM that your Minecraft server can use and "-Xmx3472M" is the maximum. Adjust this based on your server's resources. Linode provided a 4GB RAM server. You can leave them as is if you do not intend to use the server for any other purposes than Minecraft.



After the command is finished and returns an Error, a new eula.txt files will be generated. You must accept the license in this file. This is done by adding the "eula=true” command to the file.



You can now start the server again and access the Minecraft server console with that same java command from before:



Make sure you're in the /opt/minecraft directory, or the directory where you installed your MC server.



If you're only testing this and only require it for the moment, you're free to leave. If you are having trouble logging into the server, you will need to configure firewall.



The server will take slightly longer to start the first time you do it successfully.



We'll show the steps to create a script to allow you to start the server.



6. Start the Minecraft server with a script, make it persistent, and enable it at boot



To make things simpler, we will create a bash shell script that will automatically start the server.



Create a bash script using nano:



A new (blank) file will open. Copy the following:



If you are new to nano, you can save the file and close it by pressing CTRL + X, then "Y", before hitting enter. This script navigates to your Minecraft server directory you created previously and runs the java command for starting the server. You need to make it executable with the following command:



The following command will allow you to start the server whenever you like:



This command will start a screen session:



Once you're in the screen session (looks like you would start a new ssh session), you can use the bash script from earlier to start the server:



To exit the screen session, press CTRL + A+D. Even after you get out of the screen session (detach), the server will keep running. You can safely log off your Ubuntu server now, and the Minecraft server you created will keep running.



Open the /etc/rc.

Local file

Add the following line above "exit 0".



To access the Minecraft server console, just run the following command to attach to the screen session:



That's it for now. Congratulations and have lots of fun! You can now connect to your Minecraft server or configure/modify it.



Configure your Ubuntu Server



You will need to set-up your Ubuntu server and make sure it is secure. For more information, you can follow the guide we provided earlier or google it. The configurations you need to do for your Minecraft server on your Ubuntu server are:



Configure and enable the firewall



First, if UFW is not enabled, you need to enable it.



You should allow the default Minecraft server port:



You can allow or deny different rules depending on how your server is used. If you are not hosting websites on the server, you should deny ports 80 and 443. You can find recommendations for UFW/Firewall guides for Ubuntu by searching Google. You should be careful when setting up your firewall. If you block the SSH port, you could lock yourself out from your server.



It is often automatically scanned, and then attacked, since it is the default port. You can prevent attacks by blocking access to anyone that's not of your whitelist.



First, enable the whitelist mode on your server.properties. To do this, open the following file:



Change "white-list" line from "true" to "true".



Save the file and close it.



Next, restart your Ubuntu server by either restarting it or running the start bash command again.



Access the Minecraft server console:



To allow someone to join your server you must add them to the whitelist by using this command:



To remove them from the whitelist, use:



CTRL +A-D is used to exit the screen session. It is important to note that this will block access to everyone except the whitelisted usernames.



How to Make a Minecraft Server - FAQs



We'll answer some frequently asked questions about Minecraft Servers and our guide.



How do I restart the Minecraft server?



If you followed every step from our tutorial, including enabling the server to start on boot, you can just reboot your Ubuntu server. If you didn't set it up to start at boot, you can just run the start script again which will restart the Minecraft server:



How do I configure my Minecraft server?



The server.properties file can be used to configure your server. You can refer to the Minecraft Wiki for more information.



The server console allows you to modify the game mode, difficulty, and other parameters. Run:



And execute commands there. Commands such as:



Depending on the command you used, you may need restart the server. There are many more commands you can use, check the wiki for more.



How do I upgrade my Minecraft server?



If you have a new release, it is important to update.



Navigate the minecraft directory



Download the latest version using wget (like step 1 in the tutorial).



Next, you will need to build and run the new server.



Finally, update your start script:



And update the version number accordingly:



You can now restart the server, and everything should work as it should.



Why is your Minecraft server tutorial so long, and yet others are only 2 lines long? !



We tried to make the tutorial as simple as possible and easy for beginners. We also showed you how to make the Minecraft server persistent and start it automatically at boot, we showed you how to configure your server and everything. I mean, sure, you can start a Minecraft server with a couple of lines, but it would definitely suck, for more than one reason.



I don't know Linux or anything you wrote about here, how do I make a Minecraft server?



You can simply read our article and then copy the commands. If you don't know what to do, we can help you or you can hire a managed server provider to do it for your benefit.



How do I install mods on my server? How do plugins be installed?



This article is intended as a guide. You should check the Minecraft wiki for more info, or just google it. There are many tutorials on the internet.


Read More: https://mundoimg.com/
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.