DownloadUbuntu (Linux) : https://www.minecraft.net/en-us/download/server/bedrock
mkdir bedrock-server
unzip bedrock-server-1.21.100.7.zip -d bedrock-server- Start the server on boot automatically
- Easily start, stop, restart with simple commands
- Run the server in the background without needing
screenortmux - Manage logs more cleanly
- Create the service file
Run:
sudo nano /etc/systemd/system/bedrock.servicePaste the following, adjust paths if needed:
[Unit]
Description=Minecraft Bedrock Server
After=network.target
[Service]
WorkingDirectory=/root/projects/bedrock-server
ExecStart=/root/projects/bedrock-server/bedrock_server
Restart=always
RestartSec=10
User=root
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target- Reload systemd to apply the new service
sudo systemctl daemon-reload- Start the Bedrock server service
sudo systemctl start bedrock.service- Check status/logs
sudo systemctl status bedrock.servicesudo journalctl -u bedrock.service -f- Enable it to start on boot
sudo systemctl enable bedrock.service-
Start server:
sudo systemctl start bedrock.service -
Stop server:
sudo systemctl stop bedrock.service -
Restart server:
sudo systemctl restart bedrock.service -
See logs live:
sudo journalctl -u bedrock.service -f
- Download the latest Linux binary:
wget https://github.com/playit-cloud/playit-agent/releases/latest/download/playit-linux-amd64- Make it executable:
chmod +x playit-linux-amd64- Move it to a directory in your PATH:
sudo mv playit-linux-amd64 /usr/local/bin/playit- Now you can run:
playitRun:
sudo nano /etc/systemd/system/playit.servicePaste this in:
[Unit]
Description=Playit Agent for Port Forwarding
After=network.target
[Service]
ExecStart=/usr/local/bin/playit
Restart=always
RestartSec=10
User=root
StandardOutput=journal
StandardError=journal
WorkingDirectory=/root
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reloadsudo systemctl start playit.servicesudo systemctl enable playit.servicesudo systemctl status playit.service
sudo journalctl -u playit.service -fAdjust port and protocol as needed.