在ubuntu安装minecraft server

(其实很早就想写了…但是太懒了…

//查看目前 java 版本
java –version
// if “The program ‘java’ can be found” 使用以下语句以加入 PPA 库,并更新来源列表列表安
装 java
apt-add-repository ppa:webupd8team/java
//软件资料库同步
apt-get update
//安装 java (you can change version to insrtall other java version)
apt-get install oracle-java7-installer
//转到你希望下载到的文件夹(if you No such this directory ,try “mkdir –p /etc/mc-server/
“ to Create this directory)
cd /etc/mc-server/
//下载 Multiplayer Server (you can find Download Page and latest minecraft_server url in
https://minecraft.net/download)
wget https://s3.amazonaws.com/
Minecraft.Download/versions/1.8.8
/minecraft_server.1.8.8.jar

//启动它! (if you not want to use gui,set “java -Xms512M -Xmx1024M -jar minecraft_server.jar
nogui“)
java -Xms512M -Xmx1024M -jar minecraft_server.1.8.8.jar
//if “[Server thread/INFO]: You need to agree to the EULA in order to run t he server. Go to
eula.txt for more info.” 退 出 并 且 使 用 文本编辑器 打 开 eula.txt 将 eula=false 改 为
eula=true >>进行启动
nano eula.txt
//if “[Server thread/INFO]: Done (14.099s)! For help, type “help” or “?”” seems minecraft_server
is running,Good! Then change server.properties to make your server more good see
http://minecraft-zh.gamepedia.com/Server.properties , if you want to make it running with gui but
not in the main command line. try “screen” you can find how to use it in Google

Leave a Reply

Your email address will not be published. Required fields are marked *