How to Install a Minecraft Server on CentOS 7.6



I’m going to show you how to install a Minecraft Server on a VPS using CentOS 7.6 x64.

Linode $100 Credit: https://linode.com/seekaplayer (This is for new accounts, the credit expires in 60 days so use it!)

INSTRUCTIONS

Create a VPS Server with at least 512MB of Ram but I would suggest at least 1GB

Open your choice of an SSH Client. There are many choices out there. PuTTY is very popular https://www.putty.org/

Connect to your Server by typing in: [email protected] and then you’ll be prompted for a password.

Once you connect (If you use Digital Ocean they will have you change your password once you login) you are set to get started.

First, you’ll want to update your server. Type the following:

yum update -y
yum upgrade -y

Then you’ll want to install some other tools (You may not need all of them but it’s good to have them):

yum install nano -y
yum install screen -y
yum install wget -y
yum install zip -y
yum install unzip -y

Install Java SDK 1.8.0: yum install java-1.8.0-openjdk -y

Next create a folder called Minecraft: mkdir minecraft

Then enter into the folder: cd minecraft

Once in there, you’ll need to download the Minecraft Server: wget https://launcher.mojang.com/v1/objects/d0d0fe2b1dc6ab4c65554cb734270872b72dadd6/server.jar

next type: ls to see what the name of the file is. This could either be minecraft_server.versionnumber.jar or it might just be server.jar

Now start a screen session so you can leave without the server shutting down: screen -S mcserver

To get the server started type: java -Xmx512M -Xms512M -jar server.jar nogui (please note you can chose the amount of RAM you want to use by changing the 1024M to something else).

This will then say you need to accept the EULA in order to run the server. To do this type in: Nano eula.txt

Once in the document change: false to: true then clixk ctrl x and then type: y and then hit: enter

run the java -Xmx512M -Xms512M -jar server.jar nogui again and this time the server will run

Now Detatch from your screen session: ctl + A + D

If you ever forget the name of the screen session you can type in screen -ls

If you ever want to reattach to the screen session you can type in: screen -r mcserver

Thanks for watching and remember to Like, Share and Subscribe.

Social Links

https://twitch.tv/seekaplayer

https://instagram.com/seekaplayer_
https://facebook.com/seekaplayer
https://discord.gg/010uPYg0wGrHGKC4F

Referral Links

Linode $100 Credit: https://linode.com/seekaplayer (This is for new accounts, the credit expires in 60 days so use it!)
Don’t have a Gaming PC? Try out Cloud Gaming: Get $10 in Credit! https://paperspace.io/&R=5I0SBI
Web Hosting: https://inmotion-hosting.evyy.net/6RZmq
Humble Monthly: https://www.humblebundle.com/monthly?partner=seekaplayer
Epidemic Sound: https://www.epidemicsound.com/referral/2msj1d/

#Minecraft #CentOS #Server

Leave a Reply

Your email address will not be published.