Port details on branch 2025Q3 |
- minecraft-server Dedicated server for the game Minecraft
- 1.21.7 games
=0 1.21.7Version of this port present on the latest quarterly branch. - Maintainer: freebsd@jonathanprice.org
 - Port Added: 2025-07-12 00:51:05
- Last Update: 2025-07-12 00:48:26
- Commit Hash: c80bf36
- Also Listed In: java
- License: minecraft
- WWW:
- http://www.minecraft.net/
- Description:
- This is the dedicated server for the popular block building game Minecraft.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- minecraft-server>0:games/minecraft-server
- To install the port:
- cd /usr/ports/games/minecraft-server/ && make install clean
- We doubt a package is available for this port because we see it marked as as:
-
Packages are normally not provided for ports that are marked as above.
- To add the package, run one of these commands:
- pkg install games/minecraft-server
- pkg install minecraft-server
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: there is no package for this port: _LICENSE_RESTRICTED = delete-package delete-distfiles
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1751958383
SHA256 (minecraft-server-1.21.7/server.jar) = b955b8f75d811cc326179472174941358eeaf97a68999ee119ccd3873350c4ee
SIZE (minecraft-server-1.21.7/server.jar) = 57556704
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Runtime dependencies:
-
- java : java/openjdk21
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for minecraft-server-1.21.7:
====> Options available for the single RUN: you have to select exactly one of them
DAEMON=off: Run as a service
STANDALONE=on: Run the .jar file directly
===> Use 'make config' to modify these settings
- Options name:
- games_minecraft-server
- USES:
- java
- pkg-message:
- For install:
- When you first run minecraft-server, it will populate the file
/usr/local/etc/minecraft-server/eula.txt
It is required to read the EULA, and then set eula=true
- Configuration files can be found in /usr/local/etc/minecraft-server/
- Log and debug output files can be found in /var/log/minecraft-server/
- World files can be found in /var/db/minecraft-server/
Without daemon option:
- To run the server, run /usr/local/bin/minecraft-server
- To edit java's parameters, edit /usr/local/etc/minecraft-server/java-args.txt
- To run with a specific version of Java, set environment variable JAVA_VERSION,
for example:
export JAVA_VERSION=22
/usr/local/bin/minecraft-server
or:
JAVA_VERSION=22 /usr/local/bin/minecraft-server
With daemon option:
- The service has been installed with the name 'minecraft'
- To adjust maximum memory usage (-Xmx), use minecraft_memx= in /etc/rc.conf
- To adjust initial memory usage (-Xms), use minecraft_mems= in /etc/rc.conf
- To add other java parameters, use minecraft_args= in /etc/rc.conf
- To run with a specific version of Java, use minecraft_java_version= in /etc/rc.conf
- To see the interactive console, type service minecraft console
- Master Sites:
|