Miecraft server - comand

I made the server according to the instructions from this page. linuxconfig.org/how-to-setup-minecraft-server-on-ubuntu-18-04-bionic-beaver-linux

How do I fire command lines to the minecraft server?
I do not know how to execute the minecraft server commands.

Please help.


Welcome to our forums:

Start new Minecraft server:
$ sudo systemctl start minecraft@survival

Check for a status:
sudo systemctl status minecraft@survival

● minecraft@survival.service
	 - Minecraft Server: survival
   Loaded: loaded (/etc/systemd/system/minecraft@.service; disabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-01-22 12:46:37 AEDT; 16s ago
 Main PID: 7751 (screen)
    Tasks: 21 (limit: 4915)
   CGroup: /system.slice/system-minecraft.slice/minecraft@survival.service
           ├─7751 /usr/bin/SCREEN -DmS mc-survival /usr/bin/java -Xmx2G -jar minecraft_server.jar nogui
           └─7757 /usr/bin/java -Xmx2G -jar minecraft_server.jar nogui

Jan 22 12:46:37 ubuntu systemd[1]: Started Minecraft Server: survival.

Ultimately test if the default minecraft port is open:
$ nmap -p 25565 localhost

Starting Nmap 7.60 ( https://nmap.org ) 
Nmap scan report for localhost (
Host is up (0.00054s latency).
Other addresses for localhost (not scanned): ::1

25565/tcp open  minecraft

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

For more info visit:

Hope this helps


1 Like