View the status ("q" to go out of the view): Sudo gedit /lib/systemd/system/rviceĭescription=start and stop the minecraft-serverĮxecStart=/usr/bin/java -Xms1536M -Xmx1536M -jar server.jar -nogui In this example, the player has created a user, as shown by Cel1ne. If that doesn't help, just contact me: User:Cel1ne With systemd Sudo tail /var/log/upstart/minecraft-server.log If you get an error saying the file does not exist, try moving the minecraft-server file to /etc/init.d/Īlso, if after running sudo start minecraft-server says that they is no job for it, try running "sudo /etc/init.d/minecraft-server start" Now, install the start/stop to the default runlevels by running.Following step does not work since depcrication of upstart in ubuntu 16+. '-nogui' > Tells minecraft-server.jar to run without a GUI. '-jar server.jar' > Tells Java to run the jarfile server.jar '-Xmx2048M' > Sets MAXIMUM allowable memory limit. '-Xms1536M' > Sets minimum allocated memory limit. # description "start and stop the minecraft-server" Executes command # description "start and stop the minecraft-server"Įxec /usr/bin/java -Xms1536M -Xmx2048M -jar server.jar -noguiĪbove Explained (Note, this script isn't usable.): Don't forget to change the directory after "chdir" to your installation. Sudo nano /etc/init/nfĪnd pasting the following into it. d) ) make sure that you save the file as nf
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |