Voir le texte source
De WikiCinéjeu.
pour
Minecraft: The Best Indie Match Nevertheless!
Aller à :
Navigation
,
rechercher
Keep it saved in a precise [http://www.dailystrength.org/people/3176484/journal/6896676 Your Own Minecraft Server on a Linode VPS] folder which in long term would consist of all your Minecraft information. Execute underneath commands below root or making use of sudo.# aptitude update# aptitude set up openjdk-6-jre-headlessDownload and Put in Minecraft ServerWe are heading to down load and put in into '/usr/neighborhood/minecraft' as for each the Debian FilesystemHierarchyStandard.# mkdir /usr/neighborhood/[http://en.netlog.com/covingtongarland/blog/blogid=28608732 Totally free Minecraft Hosting: What Ought to You Know?] style="color:blackbackground-color:#ffff66">minecraft# cd /usr/neighborhood/minecraft/# wget ht tp://dl.bukkit.org/newest-rb/craftbukkit.jarWe are putting in the bukkit minecraft variation fairly then the vanilla 1, it is fully comptabible with the vanilla server but lets your operate plugins to effectivley deal with your server Compared that what is posted on the Minecraft Wiki the below is a straightforward startup script utilizing Debians/Ubuntus start off-stop-deamon utility, it does not have the update server, or operate file technique in memory choice in my viewpoint Java+Linux do a good task program caching on demand from customers and any speeds from working in memoryThe server is operate beneath consumer 'minecraft-server' and team 'daemon' to increase protection - this account and group is developed as follows:# useradd --residence-dir /usr/regional/minecraft-server --no-develop-home -g daemon --shell /bin/fake minecraft-server# groupadd daemonProduce the startup script as follows# cd /and many others/init.d/# contact minecraft-server# chmod +x minecraft-serverPaste the adhering to code into the script and make sure to modify the DAEMON_ARGS location to replicate your memory allocation.#!/bin/bash### Get started INIT Info# Supplies: minecraft_server# Essential-Commence: $nearby_fs $distant_fs $network# Needed-End: $nearby_fs $distant_fs $network# Default-Commence: 2 three four five# Default-Stop: one 6# Description: Minecraft server debian init script.# Creator: Daniel Sokolowski#### Finish INIT Information# You can use this as a template or symbolic hyperlink it into `/and so forth/init.d` on Debian program# Route ought to only consist of /usr/* if it operates right after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/neighborhood/bin DESC="Minecraft Server"Name=minecraft_server.jar SCREENNAME=minecraft-server # the session display match givenDAEMON="/usr/bin/screen"DAEMONUSER=minecraft-serverDAEMONGROUP=daemon# the -Xincgc alternatives allow incremental garbage collector which slows # execution but can make more memory efficient. # -Xmx1024M is the recommended minimumDAEMON_ARGS="-DmS $SCREENNAME java -Xincgc -Xms32M -Xmx304M -jar /usr/regional/minecraft-server/$Identify nogui"# Least expensive memory limit employed was about 80M on refreshing start off.# For screen we use `-DmS` instead of -dmS considering that -D doesn't detach the display screen so our pid# file developed by begin-end-deamon is proper. PIDFILE=/usr/nearby/minecraft-server/$Identify.pid A final vacation resort is to# slumber for some time.commence-end-daemon --stop --tranquil --oknodo --retry=/thirty/Eliminate/five --exec $DAEMON[ "$?" = 2 ] && return 2# A lot of daemons really don't delete their pidfiles when they exit.rm -f $PIDFILErest 5sreturn "$RETVAL"## Operate that sends a SIGHUP to the daemon/provider#do_reload() ## If the daemon can reload its configuration without# restarting (for case in point, when it is despatched a SIGHUP),# then apply that right here.#begin-cease-daemon --stop --signal 1 --silent --pidfile $PIDFILE --name $Namereturn scenario "$1" inbegin)[ "$VERBOSE"!= no ] && log_daemon_msg "Beginning $DESC" "$NAME"do_begincircumstance "$?" in|1) [ "$VERBOSE"!= no ] && log_conclude_msg two) [ "$VERBOSE"!= no ] && log_stop_msg 1esaccease)[ "$VERBOSE"!= no ] && log_daemon_msg "Halting $DESC" "$NAME"do_quitscenario "$?" in|one) [ "$VERBOSE"!= no ] && log_stop_msg 2) [ "$VERBOSE"!= no ] && log_end_msg 1esac#reload|drive-reload)## If do_reload() is not executed then leave this commented out# and go away 'force-reload' as an alias for 'restart'.##log_daemon_msg "Reloading $DESC" "$NAME"#do_reload#log_end_msg $?#restart|pressure-reload)## If the "reload" option is carried out then get rid of [http://www.picowiki.com/noodle5event/index.php/Your%20Own%20Minecraft%20Server%20on%20a%20Linode%20VPS Free Minecraft Internet hosting: What Really should You Know?] the# 'force-reload' alias#log_daemon_msg "Restarting $DESC" "$NAME"do_ceasesituation "$?" in|1)do_commencescenario "$?" in) log_end_msg one) log_conclude_msg 1 # Old process is nevertheless working*) log_conclude_msg 1 # Failed to commenceesac*)# Failed to endlog_end_msg oneesac*)#echo "Use: $SCRIPTNAME force-reload" >&2echo "Use: $SCRIPTNAME commence" >&2exit threeesacActivate the startup script and commence the server by executing the subsequent instructions:# update-rc.d minecraft-server defaults# /etc/init.d/minecraft-server commenceMuch more Resources
Revenir à la page
Minecraft: The Best Indie Match Nevertheless!
.
Affichages
Page
Discussion
Voir le texte source
Historique
Outils personnels
Créer un compte ou se connecter
Navigation
Accueil
Cinéjeu
Forum
Modifications récentes
Page au hasard
Aide
Rechercher
Boîte à outils
Pages liées
Suivi des pages liées
Pages spéciales