> For the complete documentation index, see [llms.txt](https://docs.nullcraft.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nullcraft.org/tutorial/mindustry-server.md).

# 像素工厂(Mindustry)开服教程

Mindustry Server

{% hint style="warning" %}
注意

本教程面&#x5411;**《灵工艺像素工厂开服器》**&#x8F6F;件用户。 如果你不是使用此软件来开服，那么本教程的内容可能不适用于你。
{% endhint %}

## 开始

### 准备必要内容

#### 下载官方服务端

前往作者代码仓库下载服务端程序 `server-release.jar` 文件

{% embed url="<https://github.com/Anuken/Mindustry/releases>" %}

#### 下载灵工艺像素工厂开服工具

前往灵工艺官方发布页面可以下载开服工具

{% embed url="<https://nullcraft.org/d/107>" %}

### 开始部署服务器

{% stepper %}
{% step %}

### 运行《灵工艺像素工厂开服器》

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FyUsY5Wujg5zkTBxMNeO2%2Ftutorial_mindustry-server_main.png?alt=media&amp;token=e7612844-ddeb-4009-b038-eec04e551969" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 进入本体设置导入服务端

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2F54ksMGd2d7hIHv50l6XV%2Ftutorial_mindustry-server_install_jar.png?alt=media&amp;token=836a484d-3010-4d75-8fd5-0a5fca682d5e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FMCs7H8mACMlGF3EGajTA%2Ftutorial_mindustry-server_select_jar.png?alt=media&amp;token=9c7de01d-2eea-4365-a04d-3f640027e318" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 配置服务端与Java环境

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FONYgjVnxLSPy3SlExZ1i%2Ftutorial_mindustry-server_settings.png?alt=media&amp;token=78a06828-f9fb-4d0d-a202-cde5901cd668" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 返回控制中心启动服务器

因服务端策略为启动与主持地图游戏，仅启动服务器未主持游戏时是不会在游戏内访问到的

启动服务器后可以输入 `host [地图名称] [游戏模式]` 的命令并主持游戏

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FkxPCwedVEXK2HIIbh000%2Ftutorial_mindustry-server_start.png?alt=media&amp;token=5194e8a8-787c-4a44-ae4e-0d339ec6a706" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 启动并主持游戏后可在游戏本地服务器内显示并加入

<figure><img src="https://3120800205-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBw0VwoV0yDZshBzmKvNc%2Fuploads%2FcfA74YVbyO562QgDSez5%2Ftutorial_mindustry-server_start_done.png?alt=media&amp;token=4ce4707a-b248-4c75-9b64-c5d6719c7e4b" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### 参考内容

#### 官方维基

{% embed url="<https://mindustrygame.github.io/wiki/>" %}
