Download
Ubuntu (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
screen
ortmux
- Manage logs more cleanly
- Create the service file
Run:
sudo nano /etc/systemd/system/bedrock.service
Paste 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.service
sudo 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:
playit
Run:
sudo nano /etc/systemd/system/playit.service
Paste 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.target
sudo systemctl daemon-reload
sudo systemctl start playit.service
sudo systemctl enable playit.service
sudo systemctl status playit.service
sudo journalctl -u playit.service -f
Adjust port and protocol as needed.