Thin installation was tested on CentOS 7 nad CentOS 8
Prepare system
You will need java:
Create dedicated user
or shorter
Configure firewall
Create new service mincecraft-server file:
Then reload to read new service, enable it and reload to apply changes.
Prepare directories
Download JAR files
I'm preparing two versions: 1.12.2 and 1.15.2:
Now you have to chose one. In my example 1.12.2:
later you can remove this link and create it to another version, ie:
Configure RCON
Not necessary. Run all command as a "root" user.
Install packages
Download and compile
If you want to use RCON you have to adjust /opt/minecraft/server/server.properties file:
of course change strong-password to some strong password ;-)
Startup script
Create serivce file as root:
Run
You can check /opt/minecraft/server/logs/latest.log to see what is happening.
You should see something like this:
As you can see first start took more than 22s (not to bad - it's Core 2 Duo and iSCSI disk on 1GB network card - CentOS 8 version of Diskless computer using PXE and iSCSI)
Configure autostart
If you want to start Minecraf server automatically when system starts, just enable this service:
That's all.
Add comment