minecraft服务器_如何运行简单的本地Minecraft服务器(带和不带Mod)

minecraft服务器

minecraft服务器

While it’s easy enough to share a Minecraft map with other local players on your network, it’s nice to be able to run a dedicated server so people can come and go without the original game host loading up Minecraft. Today we’re looking at how to run a simple local Minecraft server both with and without mods.

与网络上的其他本地玩家共享Minecraft地图很容易,但是能够运行专用服务器让人们可以在没有原始游戏主机加载Minecraft的情况下来去去去也很好。 今天,我们正在研究如何运行带有和不带有mod的简单本地Minecraft服务器。

为什么要运行Minecraft服务器? (Why Run a Minecraft Server?)

One of the most frustrating elements of the Minecraft local multiplayer experience (both for the PC and the PE edition) is that the original game host has to be active to access previous creations. If there are two parents and two kids playing Minecraft in a household for example, and they spend a few hours one weekend working on a big structure hosted by Kid #2, then anytime anyone wants to work on that world/structure again they need Kid #2 to fire up their game and share it with everyone else by opening it to the LAN. Factor in that each world resides on each separate computer and suddenly it becomes a real hassle for more than one person to work on a given map.

Minecraft本地多人游戏体验(PC版和PE版)中最令人沮丧的元素之一是原始游戏主机必须活跃才能访问以前的作品。 例如,如果有两个父母和两个孩子在一个家庭中玩《我的世界》,而他们每个周末花几个小时在由#2号孩子主持的大型建筑上工作,那么任何时候只要有人想再次在这个世界/结构上工作,他们都需要Kid #2通过将其打开到LAN来激发他们的游戏并与其他人共享。 每个世界都驻留在每台单独的计算机上,突然间,一个多人在一张给定的地图上工作变得非常麻烦。

A much more efficient way to go about doing things is to host a stand-alone server on the local network. This way players can come and go as they please without any one person needing to log in and share their world. Even better, you can host a Minecraft server on a machine that isn’t well suited for actually playing Minecraft (we’ve run modest Minecraft servers off little Raspberry Pi boxes without a problem).

一种更有效的处理方法是在本地网络上托管一台独立服务器。 这样,玩家就可以随心所欲来去去,而无需任何人登录并分享自己的世界。 甚至更好的是,您可以将Minecraft服务器托管在不太适合实际玩Minecraft的机器上(我们已经在较小的Raspberry Pi盒子上运行了适中的Minecraft服务器,没有问题)。

Let’s take a look at how to setup a basic local Minecraft server both with and without mods.

让我们看一下如何设置带有和不带有mod的基本本地Minecraft服务器。

设置简单的Vanilla Minecraft服务器 (Setting Up a Simple Vanilla Minecraft Server)

There are two ways to approach installing the simple vanilla Mojang-supplied Minecraft server. One method is very Windows-centric as you simply download an .EXE file and run it, with a convenient little graphical user window. That method doesn’t necessarily help OS X and Linux users however, so we’re going to use the .JAR based method which will help expand the process across all the platforms with only very minor tweaks necessary to shift between operating systems.

有两种方法可以安装由Mojang提供的简单香草Minecraft服务器。 一种方法是非常以Windows为中心的,因为您只需下载一个.EXE文件并运行它,并使用一个方便的图形用户窗口即可。 但是,该方法不一定对OS X和Linux用户有所帮助,因此,我们将使用基于.JAR的方法,该方法将有助于在所有平台上扩展该过程,而仅需很小的调整即可在操作系统之间进行切换。

The first order of business is to download the official Minecraft server JAR file. As of this tutorial the version is 1.7.10. You can find it at the bottom of the official Minecraft.net download page. Regardless of your operating system, you want the .JAR file.

首先要下载官方的Minecraft服务器JAR文件。 截至本教程为止,版本为1.7.10。 您可以在Minecraft.net官方下载页面的底部找到它。 无论使用哪种操作系统,都需要.JAR文件。

After the file has finished downloading, move the .JAR file to a more permanent location. We placed the file in a /HTG Test Server/. You can place it anywhere you want but label it clearly, place it somewhere safe, and be aware that once you run the .JAR file all the server-related stuff will be downloaded/unpacked in folder the .JAR is located in, so don’t place it somewhere like a drive root or a home folder.

文件下载完成后,将.JAR文件移动到更永久的位置。 我们将文件放在/ HTG测试服务器/中。 您可以将其放置在所需的任何位置,但要清楚地标记出来,将其放置在安全的位置,并且要注意,一旦运行.JAR文件,所有与服务器相关的内容都将在.JAR所在的文件夹中下载/解压缩。请勿将其放置在驱动器根目录或主文件夹之类的位置。

Execute the server for the first time by running the following command at the command prompt from the directory the .JAR file is located in, of course:

当然,通过在.JAR文件所在目录的命令提示符处运行以下命令,首次执行服务器:

Windows: java -Xmx1024M -Xms1024M -jar minecraft_server.1.7.10.jar nogui

Windows:Java -Xmx1024M -Xms1024M -jar minecraft_server.1.7.10.jar nogui

OS X: java -Xms1G -Xmx1G -jar minecraft_server. 1.7.10.jar nogui

OS X:java -Xms1G -Xmx1G -jar minecraft_server。 1.7.10.jar n

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值