Recently roommate Ubuntu On the run MC,I helped take a moment,However, due to his own packageTo turn over,It may not be a specific process running GM,But the overall environment configuration is quite common。
Prepare the environment
MC is running in the first java Environment,To make it run more smoothly,We still have to be installed on UbuntuOracleThe java environment:
1 2 3 4 5 6 7 |
apt-get install python-software-properties add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java7-installer |
verification
Installed after,You can use this command to verify your java version: java -version
If all things go well,Then you should see this result:
1 2 3 4 |
:~# java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) |
Deployment Server
I'm using here is a roommate before on a Windows server has been equipped with good news,It is no longer a separate download,The server package scp To the vps can extract。
but,To run mc,So may not always start,Command too difficult to remember,We wrote a script to start it easy: we mc.sh
1 2 3 4 |
#!/bin/sh BINDIR=$(dirname "$(readlink -fn "$0")") cd "$BINDIR" java -Xmx768M -Xms768M -jar Start.jar nogui |
among them,768M is the memory size to a row,See you demand,Since I am here to load a bunch of mod,So I changed it to 2048M,General enough to use the default。
Here Start.jar My server is the main program,You may encounter specific name different from mine,To distinguish between,Last nogui Parameters then the blanket start (after all, the end ah Hey!)
Give permission
Remember to use the command chmod +x mc.sh To give mc.sh Executable permission - otherwise your script may fail to execute。
Installation Mod
It is said to use the Mod,Require special server? In short,You may need to mod developed into a directory,For example, my situation is the same directory on the server Mods Directory,and Forge It may be your home directory .minecraft Directory,To carefully treasure hunt。
The background
Now you are ready to use mc.sh to perform server - but,Since we are on a remote ssh vps,Once the exit,Server will kneel。so,To a way to make it the background,But unfortunately it does not support background mc form of services,Fortunately, we have the artifact --screen
Installation Tools
Use the command apt-get install screen Install Screen
Use the command screen -dmS mc To create a file called mc Window
Then use the command screen -r mc To access this window
This is where you can execute commands inside sh mc.sh To start the server mc,And other server up and running,You can use the key combination to Control + Athen Control + D To hide the window。
To see running in the background of those windows? Use the command screen -ls .。
At this point,All configuration is complete!
Reference Reading
linux / ubuntu set up minecraft server tutorial
Original article written by LogStudio:R0uter's Blog » Minecraft server set up in Ubuntu and mount Mod
Reproduced Please keep the source and description link:https://www.logcg.com/archives/1693.html
Pixels will not play this game,But then someone out there play out new tricks:Create a computer's 8bit?
It is it is it,It's hanging,I do not play,Play roommate,I helped him take the hey。My IQ is not enough ~ ~ ~
Saying ...... your site review e-mail alert is not hung up /(¨Ò o ¨Ò)/~~
Really? I migrated to the vps,Well this one did not check
Yes,Since the entry in question vps firewall to intercept me go,,,already fixed。
I catch the worm called small expert can be friends????
No, no,Catch the worm Little Prince ~
Bugs that my little princess it?
????As a young man - Prince,Your true love to find means wheel of fate has rotated ~,Everything will come ........................
Said makes sense,Probably the princess into a frog,Just waiting for my kiss ...... right,The Frog Prince is not it?
????