首页 > 其他分享 >启动 Minecraft Forge 服务器

启动 Minecraft Forge 服务器

时间:2024-05-01 23:44:06浏览次数:14  
标签:java NAME jar server Forge 服务器 Minecraft

This page will teach the player how to install a Forge server.

1.6 to 1.20.2

Text version

Firstly, you need the Forge installer, which can be downloaded from the official Forge download page. Once downloaded, launch it and choose option "Install server". If you're installing Forge on a headless server with no graphical interface, run the following command in the directory where you downloaded the jar installer (replace "x.xx.x" with the correct version number for the installer you downloaded):

java -jar forge-x.xx.x-installer.jar --installServer

If you get an error about "Downloading Minecraft server failed, invalid e-tag checksum.", you will need to install a vanilla Minecraft server and then run Forge installer. The vanilla server can be downloaded in its respective page.

If you get an error about "There are already files at the target directory", click on the three dots to choose the current location of your Minecraft server (the video shows this).

Once you started vanilla server (don't forget to change EULA), install Forge and you are done. Now you can launch Forge server by double clicking "forge-version-xx.xx.x.xxxx-version.universal.jar" or using the command below.

Video version

This tutorial is intended for Windows users, but may be of some use to users who use other operating systems (Mac, Linux).

Information

  • Minecraft Forge page from video
  • Minecraft Forge Files/Releases
  • Minecraft Forge website
  • Server start text used in the video:
java -Xmx1024M -Xms1024M -jar FORGE_FILE_NAME.jar --nogui
PAUSE

1.5 and prior

This tutorial is intended for Windows users, but may be of some use to users who use other operating systems (Mac, Linux)

Information

  • Latest Minecraft Server
  • Minecraft Forge 1.5.2
  • Minecraft Forge 1.5.1
  • Minecraft Forge 1.5
  • Minecraft Forge 1.4.7
  • Minecraft Forge website
  • Server start text:
java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar --nogui
PAUSE

you can give the server more memory by changing the 1024 to a multiple of 1024

Notice

If the server start text doesn't work then try renaming the SERVER_FILE_NAME to 'SERVER_FILE_NAME.jar' without the apostrophes. Or you could use this server start text instead:

java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar --nogui
PAUSE

If you receive the "Java is not recognized" message, replace "java" with its file location. (e.g.: "C:\Program Files (x86)\Java\jre7\bin\javaw.exe") The full string would be:

"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1G -Xms1G -jar FORGE_FILE_NAME.jar --nogui
PAUSE

If you receive the "A problem occured running the Server launcher.java.lang.reflect.InvocationTargetException" message, try downloading and installing JRE 8 and point to it's destination on run. This would look like:

"C:\Program Files (x86)\Java\jre1.8.0_321\bin\java.exe" -Xmx1G -Xms1G -jar FORGE_FILE_NAME.jar --nogui

1.16.5 to now

Information

  • Latest Minecraft Server
  • Minecraft Forge 1.5.2
  • Minecraft Forge 1.5.1
  • Minecraft Forge 1.5
  • Minecraft Forge 1.4.7
  • Minecraft Forge website
  • Server start text:
java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar --nogui
PAUSE

you can give the server more memory by changing the 1024 to a multiple of 1024

Notice

If the server start text doesn't work then try renaming the SERVER_FILE_NAME to 'SERVER_FILE_NAME.jar' without the apostrophes. Or you could use this server start text instead:

java -Xmx1024M -Xms1024M -jar SERVER_FILE_NAME.jar --nogui
PAUSE

If you receive the "Java is not recognized" message, replace "java" with its file location. (e.g.: "C:\Program Files (x86)\Java\jre7\bin\javaw.exe") The full string would be:

"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx1G -Xms1G -jar FORGE_FILE_NAME.jar --nogui
PAUSE

If you receive the "A problem occured running the Server launcher.java.lang.reflect.InvocationTargetException" message, try downloading and installing JRE 8 and point to it's destination on run. This would look like:

"C:\Program Files (x86)\Java\jre1.8.0_321\bin\java.exe" -Xmx1G -Xms1G -jar FORGE_FILE_NAME.jar --nogui

原文:https://minecraft.fandom.com/wiki/Tutorials/Setting_up_a_Minecraft_Forge_server

标签:java,NAME,jar,server,Forge,服务器,Minecraft
From: https://www.cnblogs.com/mcayear/p/18169819

相关文章

  • 一次scp连接服务器无响应但ssh正常的问题
    背景这个问题在Linux上出现了很久,具体表现是用work账户进行scp时,输入密码后就一直不动;用ssh登录没任何问题;用root账户进行scp能成功。网上找了很多资料,这篇文章使用execzsh导致该问题的出现。我在.bashrc最后加上了exec$HOME/zsh-5.9/bin/zsh使得work账户能用zsh。最根本的原......
  • 原样压缩conda环境,并迁移环境至另一服务器
    原样压缩conda环境,并迁移环境至另一服务器压缩原环境pipinstallconda-packorcondainstallconda-pack安装好conda-pack后,使用下列命令压缩环境为tar.gz压缩包condapack-nmy_envcondapack-nmy_env-oout_name.tar.gzcondapack-p/explicit/path/to/my_env......
  • 多人同时导出 Excel 干崩服务器!新来的阿里大佬给出的解决方案太优雅了!
    来源:juejin.cn/post/7259249904777838629前言业务诉求:考虑到数据库数据日渐增多,导出会有全量数据的导出,多人同时导出可以会对服务性能造成影响,导出涉及到mysql查询的io操作,还涉及文件输入、输出流的io操作,所以对服务器的性能会影响的比较大;结合以上原因,对导出操作进行排队;刚开......
  • 给Qt搭建一个简单的Json服务器用于软件调试
    一.vscode+nodejs+npm安装二.nodejs服务器开启打开vscode-终端-新建终端进入json_server目录cdD:\json_server运行启动命令,启动json-server服务器npmrunjson:server效果如下:PSD:\json_server>npmrunjson:server>[email protected]:se......
  • 服务器部署在国外,测试过程中要注意哪些方面?
    当服务器部署在国外时,在测试过程中需要特别注意以下方面:网络延迟和稳定性:由于服务器在国外,网络延迟可能较高,测试过程中需要考虑网络延迟对测试结果的影响,并确保网络连接稳定。可以使用网络监控工具来实时监测网络延迟和丢包率,以评估网络的稳定性。时区和时间差异:国外服务器......
  • 测试环境服务器比生产环境服务器差怎么等比换算?
    将测试环境服务器的性能转换为相当于生产环境服务器的性能需要一些考虑和估算,因为测试环境和生产环境可能有不同的配置、负载和性能要求。但是,以下是一种常见的方法:确定关键指标:首先,确定用于评估服务器性能的关键指标,例如CPU性能、内存容量、磁盘I/O速度等。性能评估:对测试......
  • 海外服务器真的比国内的香吗?
    很多人会有个疑惑,海外服务器为什么会比国内的贵呢,是海外服务器的性能比国内的好吗?其实海外服务器如美国服务器、日本服务器的性能不一定比国内的服务器要高,两者各有优劣,小编带大家来了解一下,海外服务器与国内服务器的区别。一、服务器的备案备案是工信部对国内网站的要求,只要网......
  • mORMot 1.18 第08章 Delphi中的服务器端JavaScript
    mORMot1.18第8章Delphi中的服务器端JavaScript在mORMot框架中,对JavaScript脚本的支持被称为MonkeyOnRails(版权归PavelMashlyakovsky所有,邮箱:[email protected]),它借助了Mozilla基金会的SpiderMonkey类。mORMot允许程序员编写功能强大的应用程序,但如果客户希望自定义应用......
  • 5分钟教你搭建邮件服务器的实用指南
    今天我写了一篇实用的文章,重点是教你如何免费搭建一个邮件服务器,这个服务器不仅可以用于发送邮件,还可以供我的待办机器人使用。一开始我试图找一些免费的API接口来实现这个功能,但遗憾的是,并没有找到合适的。对于程序员来说,能自己动手实现绝对是最好的选择,幸运的是,我有一台空闲的......
  • Windows 防火墙是Windows操作系统中内置的网络安全功能,用于保护服务器免受网络攻击和
    Windows 防火墙是Windows 操作系统中内置的网络安全功能,用于保护服务器免受网络攻击和未经授权的访问。它可以帮助管理员限制进入和离开服务器的网络流量,以及监控网络通信并采取相应的安全措施。以下是Windows 防火墙的一些特点和功能:网络流量过滤:防火墙可以根据管......