NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

How To Set Up A Minecraft Server On CentOS 7

This guide will help you set up Minecraft (version 1.16.5), on CentOS7 64bit. It includes handy shutdown and startup scripts to make management easy.



A CentOS 7 64-bit server, if you do not have a server then spin up a super fast Minecraft server today!



Setting up a Minecraft Server on CentOS 7



We first install our prerequisite software.



Now we need to create and enter the directory where the server will reside:



Next, we download the actual Minecraft server application and make it executable:



Agree to the EULA that you definitely read:



Next, we will create a handy script to allow us to start the server from scratch without having to remember any screen CLI syntax or Java.



You may need to adjust the "Xmx", and "Xms", values depending on the server's size. These are the amount of RAM allocated to the Minecraft server instance. Mojang recommends 1GB RAM for Minecraft server instances. If you have few users, you can use less. You can edit the startcraft command with "nano" if the server is to be upgraded in the future.



Now, we can make "startcraft" practical:



Now let's test that this half of the setup is working:



Sample output



Now you should see text indicating that the server is currently starting/has begun. To disconnect from the screen, use Control +A then D.



For the final step of the basic setup, we open up the default Minecraft port on the firewall:



To gracefully end the server processing, we will need to enter a screen session.



Although we are not at a prompt, we can still type Minecraft server commands here (/give, /op, etc). The command to stop the server is simply "stop." Once the shutdown is complete, the screen session will be terminated. Just type "startcraft", to start the server again.



We can also set up a simple script to insert the "stop" command in the screen session.



To stop the server, just run "stopcraft", anytime.



Now you can start and stop the server with single commands without ever having to type out java stuff or jump into screen!
Screamyguy's Blog


Remember to change your username's OP status. This can be done by simply touching the screen using the following command



Replace "USERNAME" with your username. Once you have it you can use any commands including "/op" while playing. Depending on your circumstances, you might need to log in to the Minecraft server before you can OP.



If you wish to have the "startcraft" script run when the server starts, simply run this command:



The next step you will likely want to take is to point a DNS record to your server's IP for easy connecting/distribution. You can read about using our cloud DNS manager here: https://www.atlantic.net/community/howto/manage-cloud-dns-records/



Finished! This page details all of the options you can modify in your "/Minecraft/server.properties" file: http://minecraft.gamepedia.com/Server.properties



Happy crafting! For all your VPS hosting needs, don't hesitate to contact us!


My Website: https://www.screamyguy.net/
     
 
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.