Debian установка сервера minecraft

minecraft
Установка сервера Minecraft под Debian, начем с создания директории под сервер

# mkdir /home/minecraft/

выкачиваем сам сервер

# cd /home/minecraft/
# wget https://s3.amazonaws.com/Minecraft.Download/versions/1.7.4/minecraft_server.1.7.4.jar

установим java

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java7-installer

проверим версию

# java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Запускаем

# cd /home/minecraft && /usr/bin/screen -dmS minecraft /usr/bin/java -Xms1024M -Xmx1024M -jar /home/minecraft/minecraft_server.1.7.4.jar -nogui

в скрине можно проверить

# screen -r
[12:58:09] [Server thread/INFO]: Starting minecraft server version 1.7.4
[12:58:09] [Server thread/INFO]: Loading properties
[12:58:09] [Server thread/WARN]: server.properties does not exist
[12:58:09] [Server thread/INFO]: Generating new properties file
[12:58:09] [Server thread/INFO]: Default game type: SURVIVAL
[12:58:09] [Server thread/INFO]: Generating keypair
[12:58:10] [Server thread/INFO]: Starting Minecraft server on *:25565
[12:58:10] [Server thread/WARN]: Failed to load operators list: java.io.FileNotFoundException: ./ops.txt (Нет такого файла или каталога)
[12:58:10] [Server thread/WARN]: Failed to load white-list: java.io.FileNotFoundException: ./white-list.txt (Нет такого файла или каталога)
[12:58:10] [Server thread/INFO]: Preparing level "world"
[12:58:10] [Server thread/INFO]: Preparing start region for level 0
[12:58:11] [Server thread/INFO]: Preparing spawn area: 8%
[12:58:12] [Server thread/INFO]: Preparing spawn area: 19%
[12:58:13] [Server thread/INFO]: Preparing spawn area: 32%
[12:58:14] [Server thread/INFO]: Preparing spawn area: 39%
[12:58:15] [Server thread/INFO]: Preparing spawn area: 52%
[12:58:16] [Server thread/INFO]: Preparing spawn area: 65%

Для сохранения изменений в мире:

/usr/bin/screen -p 0 -S minecraft -X eval 'stuff "/save-all"15'

Для остановки сервера:

/usr/bin/screen -p 0 -S minecraft -X eval 'stuff "/stop"15'

Для установки плагинов, надо использовать модифицированную версию minecraft
качать тут http://dl.bukkit.org/downloads/craftbukkit/
За сим откланяюсь.

Похожие посты

Комментировать

Комментировать email не будет опубликован