How to setup a Minecraft server on a VPS or a Dedicated Server

42,251
0
Published 2019-06-05
hetzner link: hetzner.cloud/?ref=MQOXjHdKUP9r

to create start.sh
1. execute nano start.sh on the folder you have your .jar
2. paste this
#!/bin/bash
while true; do
java -server -Xmx10G -XX:MaxPermSize=10240M -jar spigot-1.8.8.jar
echo "You have 5 seconds to stop the server using Ctrl-C. Server will restart otherwise"
sleep 5
done
3. do sudo chmod +x start.sh
4. execute with sh start.sh or ./start.sh

Website: purevanilla.co/

All Comments (16)
  • @crazzzi4u68
    Thanks for the tutorial, worked like a charm!
  • @norden.shifen
    please help! it said this All configured authentication methods failed
  • @mr_infinix3503
    To install java use this instead for mc 1.20+ : apt-get install openjdk-21-jre
  • @flint7653
    Hey, I was wondering if I needed to buy multiple of these to have like a hub, gamemodes and stuff or just one. Please help. Thanks!
  • Start.sh: Copy code in description (java -server -Xmx10G -XX:MaxPermSize=10240M -jar spigot-1.8.8.jar) open text document paste code and save as start.sh.bat
  • @Supercraft2022
    what i need a vps or a dedicated server for one single survival server wth 150 players in 1.16.3
  • @naze6654
    Gracias , se nota que eres español xd
  • Hey bro! Awesome vid ;) Can you help me with this error tho? start.sh: 8: start.sh: Syntax error: end of file unexpected (expecting "do") (this is when you do sh start.sh)
  • start.sh: 6: start.sh: Syntax error: "done" unexpected (expecting "do")
  • @lasi_eisbaer
    I could probably also pay an Indian on fiverr to do it for me