Ugurlu.de
WebsiteDiscordImpressum
  • Startseite
  • ROOTSERVER
    • PhpMyAdmin Installation
    • Nextcloud Installation
    • Java 8 Installation
    • MongoDB Installation
    • Docker Installation
    • Teamspeak3 Server Installation
    • Nginx Proxy Manager Installation
    • Portainer Installation
    • Apache2 Installation
    • Nginx Installation
    • Virtualhost (Apache2)
    • Virtualhost Redirect (Apache2)
    • SSL Zertifikat Installation
    • Python3 Installation
  • Scripts
    • Minecraft Auto Start
  • Automatically Script
    • LAMPP (Apache2, MySQL und PHP8.2)
    • Lemp (Nginx, MySQL und PHP8.3)
    • Docker (Docker, Composer)
    • Nextcloud (Apache2, MySQL, phpMyAdmin and PHP8.2)
    • Python3.11
    • Java8
    • Java11
    • Java21
    • Minecraft Server 1.21
  • Windows
    • OEMInformation einrichten
Powered by GitBook
On this page

Was this helpful?

  1. Scripts

Minecraft Auto Start

  • Damit dein Minecraft Server nach einem Crash Automatisch Hochfährt

  • Erstelle eine start.sh datei:

nano start.sh
  • Füge diesen code ein und drücke STRG + O Danach Enter

  • Um das gespeicherte Terminal zu schließen, drücke Strg + X

while true
do
  Dein_Java_File/java -jar spigot.jar
  echo 'Willst Du den Server komplett stoppen, drücke STRG+C!'
  echo "Neustart in:"
  for i in 5 4 3 2 1
  do
  echo "$i..."
  sleep 1
  done
  echo 'Server neustart!'
done
  • Ein Beispiel für einen Pfad

/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin/java -jar spigot.jar
  • Nun gebe deiner Startdatei Rechte zum Ausführen

chmod +x start.sh
  • Nun kannst du dein Server starten:

./start.sh
  • Falls du dein Server im Hintergrund laufen lassen möchtest:

screen -AmdS Session_Name ./start.sh
PreviousPython3 InstallationNextLAMPP (Apache2, MySQL und PHP8.2)

Last updated 1 year ago

Was this helpful?