We’ll download the source code from GitHub and build the mcrcon binary. RCON is a protocol that allows you to connect to the Minecraft servers and execute commands. The server directory will contain the actual Minecraft server and its data.The tools directory will store the mcrcon client and the backup script.You can later synchronize this directory to your remote backup server. The backups directory will store your server backup.Installing Minecraft on CentOS #īefore starting with the installation process, make sure you switch to user minecraft: sudo su - minecraftĬreate three new directories inside the user home directory using the following command: mkdir -p ~/ To change to the minecraft user you’ll need to be logged in to the server as root or user with sudo privileges. This is good security practice because this user will not be able to login via SSH. We are not going to set a password for this user. Running services as Minecraft under the root user is not recommended for security reasons.Īnd group minecraft with home directory /opt/minecraft that will run the Minecraft server: sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode) OpenJDK Runtime Environment (build 1.8.0_191-b12) : java -version openjdk version "1.8.0_191" Verify the installation by printing the Java version Is pretty simple, just run: sudo yum install java-1.8.0-openjdk-headless This version is more suitable for server applications since it has fewer dependencies and uses less system resources. Because the Minecraft Server doesn’t need a graphical user interface, we’ll install the headless version of the openjdk. Install the packages required to build the mcrcon tool: sudo yum install git sudo yum group install "Development Tools" Installing Java Runtime Environment # The user you are logged in as must have sudo privileges ![]() We’ll also show you how to schedule automated server backups using a Cron job. We’ll use Systemd to run the Minecraft server and the mcrcon utility for connecting to the running instance. In this tutorial, we’ll go through the steps necessary to install and configure Minecraft Server on CentOS 7. It is a sandbox video game about placing blocks and going on adventures. Minecraft is one of the most popular games of all time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |